@@ -20,14 +20,14 @@ bool VerifyWallets(interfaces::Chain& chain, const std::vector<std::string>& wal
2020 // The canonical path cleans the path, preventing >1 Berkeley environment instances for the same directory
2121 fs::path canonical_wallet_dir = fs::canonical (wallet_dir, error);
2222 if (error || !fs::exists (wallet_dir)) {
23- chain.initError (strprintf (_ (" Specified -walletdir \" %s\" does not exist" ). translated , wallet_dir.string ()));
23+ chain.initError (strprintf (_ (" Specified -walletdir \" %s\" does not exist" ), wallet_dir.string ()));
2424 return false ;
2525 } else if (!fs::is_directory (wallet_dir)) {
26- chain.initError (strprintf (_ (" Specified -walletdir \" %s\" is not a directory" ). translated , wallet_dir.string ()));
26+ chain.initError (strprintf (_ (" Specified -walletdir \" %s\" is not a directory" ), wallet_dir.string ()));
2727 return false ;
2828 // The canonical path transforms relative paths into absolute ones, so we check the non-canonical version
2929 } else if (!wallet_dir.is_absolute ()) {
30- chain.initError (strprintf (_ (" Specified -walletdir \" %s\" is a relative path" ). translated , wallet_dir.string ()));
30+ chain.initError (strprintf (_ (" Specified -walletdir \" %s\" is a relative path" ), wallet_dir.string ()));
3131 return false ;
3232 }
3333 gArgs .ForceSetArg (" -walletdir" , canonical_wallet_dir.string ());
@@ -49,7 +49,7 @@ bool VerifyWallets(interfaces::Chain& chain, const std::vector<std::string>& wal
4949 WalletLocation location (wallet_file);
5050
5151 if (!wallet_paths.insert (location.GetPath ()).second ) {
52- chain.initError (strprintf (_ (" Error loading wallet %s. Duplicate -wallet filename specified." ). translated , wallet_file));
52+ chain.initError (strprintf (_ (" Error loading wallet %s. Duplicate -wallet filename specified." ), wallet_file));
5353 return false ;
5454 }
5555
@@ -58,7 +58,7 @@ bool VerifyWallets(interfaces::Chain& chain, const std::vector<std::string>& wal
5858 bool verify_success = CWallet::Verify (chain, location, salvage_wallet, error_string, warnings);
5959 if (!warnings.empty ()) chain.initWarning (Join (warnings, " \n " , OpTranslated));
6060 if (!verify_success) {
61- chain.initError (error_string. translated );
61+ chain.initError (error_string);
6262 return false ;
6363 }
6464 }
@@ -75,14 +75,14 @@ bool LoadWallets(interfaces::Chain& chain, const std::vector<std::string>& walle
7575 std::shared_ptr<CWallet> pwallet = CWallet::CreateWalletFromFile (chain, WalletLocation (walletFile), error, warnings);
7676 if (!warnings.empty ()) chain.initWarning (Join (warnings, " \n " , OpTranslated));
7777 if (!pwallet) {
78- chain.initError (error. translated );
78+ chain.initError (error);
7979 return false ;
8080 }
8181 AddWallet (pwallet);
8282 }
8383 return true ;
8484 } catch (const std::runtime_error& e) {
85- chain.initError (e.what ());
85+ chain.initError (Untranslated ( e.what () ));
8686 return false ;
8787 }
8888}
0 commit comments