Browse Source

Merge #9460: Fix a few typos in translated strings

d45b21e qt: Fill in English numerusforms (Wladimir J. van der Laan)
a9d6151 qt,wallet: Fix a few typos in messages (Wladimir J. van der Laan)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
e0dc3d70c6
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/qt/bitcoinstrings.cpp
  2. 4
      src/qt/guiutil.cpp
  3. 78
      src/qt/locale/bitcoin_en.ts
  4. 2
      src/wallet/wallet.cpp

2
src/qt/bitcoinstrings.cpp

@ -191,7 +191,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
"included in share/rpcuser. This option can be specified multiple times"), "included in share/rpcuser. This option can be specified multiple times"),
QT_TRANSLATE_NOOP("bitcoin-core", "" QT_TRANSLATE_NOOP("bitcoin-core", ""
"Wallet will not create transactions that violate mempool chain limits " "Wallet will not create transactions that violate mempool chain limits "
"(default: %u"), "(default: %u)"),
QT_TRANSLATE_NOOP("bitcoin-core", "" QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: Unknown block versions being mined! It's possible unknown rules are " "Warning: Unknown block versions being mined! It's possible unknown rules are "
"in effect"), "in effect"),

4
src/qt/guiutil.cpp

@ -961,11 +961,11 @@ QString formateNiceTimeOffset(qint64 secs)
const int YEAR_IN_SECONDS = 31556952; // Average length of year in Gregorian calendar const int YEAR_IN_SECONDS = 31556952; // Average length of year in Gregorian calendar
if(secs < 60) if(secs < 60)
{ {
timeBehindText = QObject::tr("%n seconds(s)","",secs); timeBehindText = QObject::tr("%n second(s)","",secs);
} }
else if(secs < 2*HOUR_IN_SECONDS) else if(secs < 2*HOUR_IN_SECONDS)
{ {
timeBehindText = QObject::tr("%n minutes(s)","",secs/60); timeBehindText = QObject::tr("%n minute(s)","",secs/60);
} }
else if(secs < 2*DAY_IN_SECONDS) else if(secs < 2*DAY_IN_SECONDS)
{ {

78
src/qt/locale/bitcoin_en.ts

@ -1085,17 +1085,17 @@
<message numerus="yes"> <message numerus="yes">
<location line="+9"/> <location line="+9"/>
<source>%n GB of free space available</source> <source>%n GB of free space available</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>%n GB of free space available</numerusform>
<numerusform></numerusform> <numerusform>%n GB of free space available</numerusform>
</translation> </translation>
</message> </message>
<message numerus="yes"> <message numerus="yes">
<location line="+3"/> <location line="+3"/>
<source>(of %n GB needed)</source> <source>(of %n GB needed)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>(of %n GB needed)</numerusform>
<numerusform></numerusform> <numerusform>(of %n GB needed)</numerusform>
</translation> </translation>
</message> </message>
</context> </context>
@ -1792,18 +1792,18 @@
</message> </message>
<message numerus="yes"> <message numerus="yes">
<location line="+18"/> <location line="+18"/>
<source>%n seconds(s)</source> <source>%n second(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>%n second</numerusform>
<numerusform></numerusform> <numerusform>%n seconds</numerusform>
</translation> </translation>
</message> </message>
<message numerus="yes"> <message numerus="yes">
<location line="+4"/> <location line="+4"/>
<source>%n minutes(s)</source> <source>%n minute(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>%n minute</numerusform>
<numerusform></numerusform> <numerusform>%n minutes</numerusform>
</translation> </translation>
</message> </message>
<message numerus="yes"> <message numerus="yes">
@ -2807,9 +2807,9 @@
<message numerus="yes"> <message numerus="yes">
<location line="+67"/> <location line="+67"/>
<source>%n block(s)</source> <source>%n block(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>%n block</numerusform>
<numerusform></numerusform> <numerusform>%n blocks</numerusform>
</translation> </translation>
</message> </message>
<message> <message>
@ -2820,9 +2820,9 @@
<message numerus="yes"> <message numerus="yes">
<location line="+25"/> <location line="+25"/>
<source>Estimated to begin confirmation within %n block(s).</source> <source>Estimated to begin confirmation within %n block(s).</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>Estimated to begin confirmation within %n block.</numerusform>
<numerusform></numerusform> <numerusform>Estimated to begin confirmation within %n blocks.</numerusform>
</translation> </translation>
</message> </message>
<message> <message>
@ -3175,9 +3175,9 @@
<message numerus="yes"> <message numerus="yes">
<location filename="../transactiondesc.cpp" line="+30"/> <location filename="../transactiondesc.cpp" line="+30"/>
<source>Open for %n more block(s)</source> <source>Open for %n more block(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>Open for %n more block</numerusform>
<numerusform></numerusform> <numerusform>Open for %n more blocks</numerusform>
</translation> </translation>
</message> </message>
<message> <message>
@ -3238,9 +3238,9 @@
<message numerus="yes"> <message numerus="yes">
<location line="+2"/> <location line="+2"/>
<source>, broadcast through %n node(s)</source> <source>, broadcast through %n node(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>, broadcast through %n node</numerusform>
<numerusform></numerusform> <numerusform>, broadcast through %n nodes</numerusform>
</translation> </translation>
</message> </message>
<message> <message>
@ -3305,9 +3305,9 @@
<message numerus="yes"> <message numerus="yes">
<location line="-144"/> <location line="-144"/>
<source>matures in %n more block(s)</source> <source>matures in %n more block(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>matures in %n more block</numerusform>
<numerusform></numerusform> <numerusform>matures in %n more blocks</numerusform>
</translation> </translation>
</message> </message>
<message> <message>
@ -3444,9 +3444,9 @@
<message numerus="yes"> <message numerus="yes">
<location line="+58"/> <location line="+58"/>
<source>Open for %n more block(s)</source> <source>Open for %n more block(s)</source>
<translation type="unfinished"> <translation>
<numerusform></numerusform> <numerusform>Open for %n more block</numerusform>
<numerusform></numerusform> <numerusform>Open for %n more blocks</numerusform>
</translation> </translation>
</message> </message>
<message> <message>
@ -4014,7 +4014,12 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+31"/> <location line="+12"/>
<source>Wallet will not create transactions that violate mempool chain limits (default: %u)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+19"/>
<source>You need to rebuild the database using -reindex-chainstate to change -txindex</source> <source>You need to rebuild the database using -reindex-chainstate to change -txindex</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -4719,12 +4724,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location line="+4"/> <location line="+7"/>
<source>Wallet will not create transactions that violate mempool chain limits (default: %u</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Unknown block versions being mined! It&apos;s possible unknown rules are in effect</source> <source>Warning: Unknown block versions being mined! It&apos;s possible unknown rules are in effect</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

2
src/wallet/wallet.cpp

@ -3399,7 +3399,7 @@ std::string CWallet::GetWalletHelpString(bool showDebug)
strUsage += HelpMessageOpt("-dblogsize=<n>", strprintf("Flush wallet database activity from memory to disk log every <n> megabytes (default: %u)", DEFAULT_WALLET_DBLOGSIZE)); strUsage += HelpMessageOpt("-dblogsize=<n>", strprintf("Flush wallet database activity from memory to disk log every <n> megabytes (default: %u)", DEFAULT_WALLET_DBLOGSIZE));
strUsage += HelpMessageOpt("-flushwallet", strprintf("Run a thread to flush wallet periodically (default: %u)", DEFAULT_FLUSHWALLET)); strUsage += HelpMessageOpt("-flushwallet", strprintf("Run a thread to flush wallet periodically (default: %u)", DEFAULT_FLUSHWALLET));
strUsage += HelpMessageOpt("-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)", DEFAULT_WALLET_PRIVDB)); strUsage += HelpMessageOpt("-privdb", strprintf("Sets the DB_PRIVATE flag in the wallet db environment (default: %u)", DEFAULT_WALLET_PRIVDB));
strUsage += HelpMessageOpt("-walletrejectlongchains", strprintf(_("Wallet will not create transactions that violate mempool chain limits (default: %u"), DEFAULT_WALLET_REJECT_LONG_CHAINS)); strUsage += HelpMessageOpt("-walletrejectlongchains", strprintf(_("Wallet will not create transactions that violate mempool chain limits (default: %u)"), DEFAULT_WALLET_REJECT_LONG_CHAINS));
} }
return strUsage; return strUsage;

Loading…
Cancel
Save