feat(i18n,mining): translate warmup block/tx-type labels; fix the disconnected-solo mine tooltip
- Warmup/daemon status no longer appends a hardcoded English " (Block N)" — it uses a translated warmup_block_fmt key. - Recent-transaction type labels (Sent/Received/Mined) are now translated in the UI consumer (recentTypeLabel in balance_recent_tx.cpp) with a generic "Transaction" fallback, instead of the data layer's raw English getTypeDisplay(). - Mining: a disconnected solo miner hovering the dead Mine button now gets a "not connected to the node" tooltip instead of a misleading "Start Mining" (the tooltip chain had no branch for the solo !isConnected() disable). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -957,6 +957,8 @@ void RenderMiningControls(App* app, const WalletState& state, const MiningInfo&
|
||||
material::Tooltip("%s", isMiningActive ? TR("mining_stopping_tooltip") : TR("mining_starting_tooltip"));
|
||||
else if (isSyncing && !s_pool_mode)
|
||||
material::Tooltip(TR("mining_syncing_tooltip"), state.sync.verification_progress * 100.0);
|
||||
else if (!s_pool_mode && !poolStillRunning && !app->isConnected())
|
||||
material::Tooltip("%s", TR("mining_not_connected_tooltip")); // was falling through to "Start Mining" on a dead button
|
||||
else if (poolBlockedBySolo)
|
||||
material::Tooltip("%s", TR("mining_stop_solo_for_pool"));
|
||||
else if (poolNeedsPayout)
|
||||
|
||||
Reference in New Issue
Block a user