i18n: route explorer and shield status strings through TR()
Centralise the remaining hardcoded English literals in two otherwise fully-translated files (explorer_tab: 40 TR calls, shield_dialog: 23) so they join the i18n system with an English source key + fallback: - explorer_tab: the three search-error messages (invalid response, hash not found, not-connected) now use explorer_* keys. Also guards a hash lookup behind an active daemon connection and disables the block-detail prev/next nav while a fetch is in flight (both were the reason these error paths could fire). - shield_dialog: the operation status/error strings (submitting, submitted, failed, status, error-checking-status, shield/merge failed) now use shield_* keys. - i18n: add the new explorer_* and shield_* English source keys. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1501,6 +1501,15 @@ void I18n::loadBuiltinEnglish()
|
||||
strings_["shield_to_address"] = "To Address (Shielded):";
|
||||
strings_["shield_utxo_limit"] = "UTXO Limit:";
|
||||
strings_["shield_wildcard_hint"] = "Use '*' to shield from all transparent addresses";
|
||||
strings_["shield_submitting"] = "Submitting operation...";
|
||||
strings_["shield_op_submitted"] = "Operation submitted: ";
|
||||
strings_["shield_op_failed"] = "Operation failed: ";
|
||||
strings_["shield_error_prefix"] = "Error: ";
|
||||
strings_["shield_status_label"] = "Status: ";
|
||||
strings_["shield_status_check_error"] = "Error checking status: ";
|
||||
strings_["shield_unknown_error"] = "Unknown error";
|
||||
strings_["shield_send_failed"] = "Shield failed: ";
|
||||
strings_["merge_send_failed"] = "Merge failed: ";
|
||||
strings_["merge_description"] = "Merge multiple UTXOs into a single shielded address. This can help reduce wallet size and improve privacy.";
|
||||
strings_["merge_funds"] = "Merge Funds";
|
||||
strings_["merge_started"] = "Merge operation started";
|
||||
@@ -1568,6 +1577,9 @@ void I18n::loadBuiltinEnglish()
|
||||
strings_["explorer_tx_outputs"] = "Outputs";
|
||||
strings_["explorer_tx_size"] = "Size";
|
||||
strings_["explorer_invalid_query"] = "Enter a block height or 64-character hash";
|
||||
strings_["explorer_invalid_response"] = "Invalid response from daemon";
|
||||
strings_["explorer_hash_not_found"] = "No block or transaction found for this hash";
|
||||
strings_["explorer_not_connected"] = "Not connected to daemon — cannot look up a block or transaction hash";
|
||||
strings_["explorer_no_results"] = "No matching cached blocks";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user