fix language support on changing language

This commit is contained in:
woodser 2023-05-23 18:39:37 -04:00
parent 02eb2fb005
commit da0f4f4652
21 changed files with 27 additions and 28 deletions

View file

@ -191,7 +191,7 @@ class CoreDisputeAgentsService {
String signature) {
Mediator mediator = new Mediator(nodeAddress,
keyRing.getPubKeyRing(),
languageCodes,
new ArrayList<>(languageCodes),
new Date().getTime(),
ecKey.getPubKey(),
signature,
@ -212,7 +212,7 @@ class CoreDisputeAgentsService {
String signature) {
RefundAgent refundAgent = new RefundAgent(nodeAddress,
keyRing.getPubKeyRing(),
languageCodes,
new ArrayList<>(languageCodes),
new Date().getTime(),
ecKey.getPubKey(),
signature,

View file

@ -115,11 +115,11 @@ public class VolumeUtil {
return formatVolume(volume, getMonetaryFormat(volume.getCurrencyCode()), false);
}
private static String formatVolume(Volume volume, MonetaryFormat fiatVolumeFormat, boolean appendCurrencyCode) {
private static String formatVolume(Volume volume, MonetaryFormat volumeFormat, boolean appendCurrencyCode) {
if (volume != null) {
Monetary monetary = volume.getMonetary();
if (monetary instanceof TraditionalMoney)
return FormattingUtils.formatTraditionalMoney((TraditionalMoney) monetary, fiatVolumeFormat, appendCurrencyCode);
return FormattingUtils.formatTraditionalMoney((TraditionalMoney) monetary, volumeFormat, appendCurrencyCode);
else
return FormattingUtils.formatCryptoVolume((CryptoMoney) monetary, appendCurrencyCode);
} else {