mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-09 23:22:16 -04:00
fix language support on changing language
This commit is contained in:
parent
02eb2fb005
commit
da0f4f4652
21 changed files with 27 additions and 28 deletions
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue