replace variations of btc with xmr in app resources

This commit is contained in:
woodser 2023-10-09 15:52:55 -04:00
parent fe543e7c58
commit 222af4768b
62 changed files with 2077 additions and 2101 deletions

View file

@ -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

View file

@ -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()) {

View file

@ -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) {