Skip to content

Commit c6f4bce

Browse files
authored
Merge pull request #1448 from cyrossignol/1446-miner-status
Fix tranlatable phrases and regenerate translation units
2 parents fd6c47d + a97e2b5 commit c6f4bce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+16652
-18103
lines changed

src/miner.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ class COrphan
7171
//!
7272
//! \return Always \false - suitable for returning from the call directly.
7373
//!
74-
bool BreakForNoCoins(CMinerStatus& status, const char* message)
74+
bool BreakForNoCoins(CMinerStatus& status, const std::string& message)
7575
{
7676
LOCK(status.lock);
7777

7878
status.Clear();
79-
status.ReasonNotStaking += _(message);
79+
status.ReasonNotStaking += message;
80+
status.ReasonNotStaking += "; ";
8081

8182
if (fDebug) {
8283
LogPrintf("CreateCoinStake: %s", MinerStatus.ReasonNotStaking);
@@ -443,15 +444,15 @@ bool CreateCoinStake( CBlock &blocknew, CKey &key,
443444
//Request all the coins here, check reserve later
444445

445446
if (BalanceToStake <= 0) {
446-
return BreakForNoCoins(MinerStatus, "No coins; ");
447+
return BreakForNoCoins(MinerStatus, _("No coins"));
447448
} else if (!wallet.SelectCoinsForStaking(BalanceToStake*2, txnew.nTime, CoinsToStake, nValueIn)) {
448-
return BreakForNoCoins(MinerStatus, "Waiting for coins to mature; ");
449+
return BreakForNoCoins(MinerStatus, _("Waiting for coins to mature"));
449450
}
450451

451452
BalanceToStake -= nReserveBalance;
452453

453454
if (BalanceToStake <= 0) {
454-
return BreakForNoCoins(MinerStatus, "Entire balance reserved; ");
455+
return BreakForNoCoins(MinerStatus, _("Entire balance reserved"));
455456
}
456457

457458
if(fDebug2) LogPrintf("CreateCoinStake: Staking nTime/16= %d Bits= %u",

src/qt/bitcoinstrings.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Block Version"),
123123
QT_TRANSLATE_NOOP("bitcoin-core", "Block creation options:"),
124124
QT_TRANSLATE_NOOP("bitcoin-core", "Block not in index"),
125125
QT_TRANSLATE_NOOP("bitcoin-core", "Block read failed"),
126+
QT_TRANSLATE_NOOP("bitcoin-core", "Blocks Loaded"),
127+
QT_TRANSLATE_NOOP("bitcoin-core", "Blocks Verified"),
126128
QT_TRANSLATE_NOOP("bitcoin-core", "Boinc Mining"),
127129
QT_TRANSLATE_NOOP("bitcoin-core", "Boinc Public Key"),
128130
QT_TRANSLATE_NOOP("bitcoin-core", "Boinc Reward"),
@@ -146,6 +148,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Discover own IP address (default: 1 when list
146148
QT_TRANSLATE_NOOP("bitcoin-core", "Done loading"),
147149
QT_TRANSLATE_NOOP("bitcoin-core", "Duration"),
148150
QT_TRANSLATE_NOOP("bitcoin-core", "ERROR"),
151+
QT_TRANSLATE_NOOP("bitcoin-core", "Entire balance reserved"),
149152
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading blkindex.dat"),
150153
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat"),
151154
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted"),
@@ -200,7 +203,6 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Message Data"),
200203
QT_TRANSLATE_NOOP("bitcoin-core", "Message Length"),
201204
QT_TRANSLATE_NOOP("bitcoin-core", "Message Type"),
202205
QT_TRANSLATE_NOOP("bitcoin-core", "Message"),
203-
QT_TRANSLATE_NOOP("bitcoin-core", "Messate Type"),
204206
QT_TRANSLATE_NOOP("bitcoin-core", "Miner: "),
205207
QT_TRANSLATE_NOOP("bitcoin-core", "Mining"),
206208
QT_TRANSLATE_NOOP("bitcoin-core", "Name"),
@@ -209,14 +211,16 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Network Date"),
209211
QT_TRANSLATE_NOOP("bitcoin-core", "Neural Contract Binary Size"),
210212
QT_TRANSLATE_NOOP("bitcoin-core", "Neural Hash"),
211213
QT_TRANSLATE_NOOP("bitcoin-core", "No Attached Messages"),
212-
QT_TRANSLATE_NOOP("bitcoin-core", "No coins; "),
214+
QT_TRANSLATE_NOOP("bitcoin-core", "No coins"),
215+
QT_TRANSLATE_NOOP("bitcoin-core", "No current polls"),
213216
QT_TRANSLATE_NOOP("bitcoin-core", "Offline; "),
214217
QT_TRANSLATE_NOOP("bitcoin-core", "Only connect to nodes in network <net> (IPv4, IPv6 or Tor)"),
215218
QT_TRANSLATE_NOOP("bitcoin-core", "Options:"),
216219
QT_TRANSLATE_NOOP("bitcoin-core", "Organization"),
217-
QT_TRANSLATE_NOOP("bitcoin-core", "Out of rance exception while parsing Transaction Message -> "),
220+
QT_TRANSLATE_NOOP("bitcoin-core", "Out of range exception while parsing Transaction Message -> "),
218221
QT_TRANSLATE_NOOP("bitcoin-core", "Output extra debugging information. Implies all other -debug* options"),
219222
QT_TRANSLATE_NOOP("bitcoin-core", "Output extra network debugging information"),
223+
QT_TRANSLATE_NOOP("bitcoin-core", "POR Blocks Verified"),
220224
QT_TRANSLATE_NOOP("bitcoin-core", "Password for JSON-RPC connections"),
221225
QT_TRANSLATE_NOOP("bitcoin-core", "Please wait for new user wizard to start..."),
222226
QT_TRANSLATE_NOOP("bitcoin-core", "Prepend debug output with timestamp"),
@@ -275,6 +279,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"),
275279
QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections"),
276280
QT_TRANSLATE_NOOP("bitcoin-core", "Verifying database integrity..."),
277281
QT_TRANSLATE_NOOP("bitcoin-core", "Vote"),
282+
QT_TRANSLATE_NOOP("bitcoin-core", "Waiting for coins to mature"),
278283
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet %s resides outside data directory %s."),
279284
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet locked; "),
280285
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart Gridcoin to complete"),

0 commit comments

Comments
 (0)