mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 20:24:24 -04:00
replace variations of btc with xmr in app resources
This commit is contained in:
parent
fe543e7c58
commit
222af4768b
62 changed files with 2077 additions and 2101 deletions
|
@ -237,7 +237,7 @@ public class WalletAppSetup {
|
|||
private String getXmrNetworkAsString() {
|
||||
String postFix;
|
||||
if (config.ignoreLocalXmrNode)
|
||||
postFix = " " + Res.get("mainView.footer.localhostBitcoinNode");
|
||||
postFix = " " + Res.get("mainView.footer.localhostMoneroNode");
|
||||
else if (preferences.getUseTorForXmr().isUseTorForXmr())
|
||||
postFix = " " + Res.get("mainView.footer.usingTor");
|
||||
else
|
||||
|
|
|
@ -109,9 +109,9 @@ public class Res {
|
|||
public static String get(String key) {
|
||||
try {
|
||||
return resourceBundle.getString(key)
|
||||
.replace("BTC", baseCurrencyCode)
|
||||
.replace("Bitcoin", baseCurrencyName)
|
||||
.replace("bitcoin", baseCurrencyNameLowerCase);
|
||||
.replace("XMR", baseCurrencyCode)
|
||||
.replace("Monero", baseCurrencyName)
|
||||
.replace("monero", baseCurrencyNameLowerCase);
|
||||
} catch (MissingResourceException e) {
|
||||
log.warn("Missing resource for key: {}", key);
|
||||
if (DevEnv.isDevMode()) {
|
||||
|
|
|
@ -97,7 +97,7 @@ public class XmrValidator extends NumberValidator {
|
|||
try {
|
||||
final BigInteger amount = HavenoUtils.parseXmr(input);
|
||||
if (maxTradeLimit != null && amount.compareTo(maxTradeLimit) > 0)
|
||||
return new ValidationResult(false, Res.get("validation.btc.exceedsMaxTradeLimit", HavenoUtils.formatXmr(maxTradeLimit, true)));
|
||||
return new ValidationResult(false, Res.get("validation.xmr.exceedsMaxTradeLimit", HavenoUtils.formatXmr(maxTradeLimit, true)));
|
||||
else
|
||||
return new ValidationResult(true);
|
||||
} catch (Throwable t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue