diff options
author | Jon Atack <jon@atack.com> | 2021-02-23 18:11:42 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-02-28 19:14:35 +0100 |
commit | 6242beeb067139c01dd27c63ebcd24df5808cb15 (patch) | |
tree | dc1fccb501096f2b4ca6b1c7ed81a8e4ddd57626 /src/qt/rpcconsole.h | |
parent | 0f035c12fb0a5c5f98fc2b9907d475c08018df36 (diff) |
Hoist repeated translated strings to RPCConsole struct members
and add missing braces to the touched conditionals.
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Diffstat (limited to 'src/qt/rpcconsole.h')
-rw-r--r-- | src/qt/rpcconsole.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h index 27d4c42eb4..b9806e40c9 100644 --- a/src/qt/rpcconsole.h +++ b/src/qt/rpcconsole.h @@ -136,6 +136,11 @@ Q_SIGNALS: void cmdRequest(const QString &command, const WalletModel* wallet_model); private: + struct TranslatedStrings { + const QString yes{tr("Yes")}, no{tr("No")}, to{tr("To")}, from{tr("From")}, + ban_for{tr("Ban for")}, na{tr("N/A")}, unknown{tr("Unknown")}; + } const ts; + void startExecutor(); void setTrafficGraphRange(int mins); |