@@ -4387,23 +4387,23 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
4387
4387
}
4388
4388
4389
4389
if (!gArgs .GetArg (" -addresstype" , " " ).empty () && !ParseOutputType (gArgs .GetArg (" -addresstype" , " " ), walletInstance->m_default_address_type )) {
4390
- chain.initError (strprintf (" Unknown address type '%s'" , gArgs .GetArg (" -addresstype" , " " )));
4390
+ chain.initError (strprintf (_ ( " Unknown address type '%s'" ). translated , gArgs .GetArg (" -addresstype" , " " )));
4391
4391
return nullptr ;
4392
4392
}
4393
4393
4394
4394
if (!gArgs .GetArg (" -changetype" , " " ).empty () && !ParseOutputType (gArgs .GetArg (" -changetype" , " " ), walletInstance->m_default_change_type )) {
4395
- chain.initError (strprintf (" Unknown change type '%s'" , gArgs .GetArg (" -changetype" , " " )));
4395
+ chain.initError (strprintf (_ ( " Unknown change type '%s'" ). translated , gArgs .GetArg (" -changetype" , " " )));
4396
4396
return nullptr ;
4397
4397
}
4398
4398
4399
4399
if (gArgs .IsArgSet (" -mintxfee" )) {
4400
4400
CAmount n = 0 ;
4401
4401
if (!ParseMoney (gArgs .GetArg (" -mintxfee" , " " ), n) || 0 == n) {
4402
- chain.initError (AmountErrMsg (" mintxfee" , gArgs .GetArg (" -mintxfee" , " " )));
4402
+ chain.initError (AmountErrMsg (" mintxfee" , gArgs .GetArg (" -mintxfee" , " " )). translated );
4403
4403
return nullptr ;
4404
4404
}
4405
4405
if (n > HIGH_TX_FEE_PER_KB) {
4406
- chain.initWarning (AmountHighWarn (" -mintxfee" ) + " " +
4406
+ chain.initWarning (AmountHighWarn (" -mintxfee" ). translated + " " +
4407
4407
_ (" This is the minimum transaction fee you pay on every transaction." ).translated );
4408
4408
}
4409
4409
walletInstance->m_min_fee = CFeeRate (n);
@@ -4417,7 +4417,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
4417
4417
return nullptr ;
4418
4418
}
4419
4419
if (nFeePerK > HIGH_TX_FEE_PER_KB) {
4420
- chain.initWarning (AmountHighWarn (" -fallbackfee" ) + " " +
4420
+ chain.initWarning (AmountHighWarn (" -fallbackfee" ). translated + " " +
4421
4421
_ (" This is the transaction fee you may pay when fee estimates are not available." ).translated );
4422
4422
}
4423
4423
walletInstance->m_fallback_fee = CFeeRate (nFeePerK);
@@ -4430,19 +4430,19 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
4430
4430
return nullptr ;
4431
4431
}
4432
4432
if (nFeePerK > HIGH_TX_FEE_PER_KB) {
4433
- chain.initWarning (AmountHighWarn (" -discardfee" ) + " " +
4433
+ chain.initWarning (AmountHighWarn (" -discardfee" ). translated + " " +
4434
4434
_ (" This is the transaction fee you may discard if change is smaller than dust at this level" ).translated );
4435
4435
}
4436
4436
walletInstance->m_discard_rate = CFeeRate (nFeePerK);
4437
4437
}
4438
4438
if (gArgs .IsArgSet (" -paytxfee" )) {
4439
4439
CAmount nFeePerK = 0 ;
4440
4440
if (!ParseMoney (gArgs .GetArg (" -paytxfee" , " " ), nFeePerK)) {
4441
- chain.initError (AmountErrMsg (" paytxfee" , gArgs .GetArg (" -paytxfee" , " " )));
4441
+ chain.initError (AmountErrMsg (" paytxfee" , gArgs .GetArg (" -paytxfee" , " " )). translated );
4442
4442
return nullptr ;
4443
4443
}
4444
4444
if (nFeePerK > HIGH_TX_FEE_PER_KB) {
4445
- chain.initWarning (AmountHighWarn (" -paytxfee" ) + " " +
4445
+ chain.initWarning (AmountHighWarn (" -paytxfee" ). translated + " " +
4446
4446
_ (" This is the transaction fee you will pay if you send a transaction." ).translated );
4447
4447
}
4448
4448
walletInstance->m_pay_tx_fee = CFeeRate (nFeePerK, 1000 );
@@ -4457,7 +4457,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
4457
4457
{
4458
4458
CAmount nMaxFee = 0 ;
4459
4459
if (!ParseMoney (gArgs .GetArg (" -maxtxfee" , " " ), nMaxFee)) {
4460
- chain.initError (AmountErrMsg (" maxtxfee" , gArgs .GetArg (" -maxtxfee" , " " )));
4460
+ chain.initError (AmountErrMsg (" maxtxfee" , gArgs .GetArg (" -maxtxfee" , " " )). translated );
4461
4461
return nullptr ;
4462
4462
}
4463
4463
if (nMaxFee > HIGH_MAX_TX_FEE) {
@@ -4471,9 +4471,10 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
4471
4471
walletInstance->m_default_max_tx_fee = nMaxFee;
4472
4472
}
4473
4473
4474
- if (chain.relayMinFee ().GetFeePerK () > HIGH_TX_FEE_PER_KB)
4475
- chain.initWarning (AmountHighWarn (" -minrelaytxfee" ) + " " +
4474
+ if (chain.relayMinFee ().GetFeePerK () > HIGH_TX_FEE_PER_KB) {
4475
+ chain.initWarning (AmountHighWarn (" -minrelaytxfee" ). translated + " " +
4476
4476
_ (" The wallet will avoid paying less than the minimum relay fee." ).translated );
4477
+ }
4477
4478
4478
4479
walletInstance->m_confirm_target = gArgs .GetArg (" -txconfirmtarget" , DEFAULT_TX_CONFIRM_TARGET);
4479
4480
walletInstance->m_spend_zero_conf_change = gArgs .GetBoolArg (" -spendzeroconfchange" , DEFAULT_SPEND_ZEROCONF_CHANGE);
0 commit comments