Skip to content

Commit

Permalink
[#1421] Initial es translation structure
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaR committed Oct 23, 2024
1 parent 5410cc2 commit bcd2455
Show file tree
Hide file tree
Showing 38 changed files with 661 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pluginManager.withPlugin("com.android.application") {
// The rest of the locales provides an explicit list of the languages to keep in the
// final app. Doing this will strip out additional locales from libraries like
// Google Play Services and Firebase, which add unnecessary bloat.
resourceConfigurations.addAll(listOf("en", "en-rUS", "en-rGB", "en-rAU", "en_XA", "ar_XB"))
resourceConfigurations.addAll(listOf("en", "en-rUS", "en-rGB", "en-rAU", "es", "en_XA", "ar_XB"))

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -39,7 +39,7 @@ pluginManager.withPlugin("com.android.library") {
// If we add other localizations, they should be included in this list.
// By explicitly setting supported locales, we strip out unused localizations from third party
// libraries (e.g. play services)
resourceConfigurations.addAll(listOf("en", "en-rUS", "en-rGB", "en-rAU", "en_XA", "ar_XB"))
resourceConfigurations.addAll(listOf("en", "en-rUS", "en-rGB", "en-rAU", "es", "en_XA", "ar_XB"))

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("proguard-consumer.txt")
Expand Down Expand Up @@ -68,7 +68,7 @@ pluginManager.withPlugin("com.android.test") {
// If we add other localizations, they should be included in this list.
// By explicitly setting supported locales, we strip out unused localizations from third party
// libraries (e.g. play services)
resourceConfigurations.addAll(listOf("en", "en-rUS", "en-rGB", "en-rAU", "en_XA", "ar_XB"))
resourceConfigurations.addAll(listOf("en", "en-rUS", "en-rGB", "en-rAU", "es", "en_XA", "ar_XB"))

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

Expand Down
6 changes: 6 additions & 0 deletions ui-design-lib/src/main/res/ui/common/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="amount_with_fiat_currency_symbol" formatted="true"><xliff:g id="fiat_currency_symbol" example="$">%1$s</xliff:g><xliff:g id="amount" example="123">%2$s</xliff:g></string>
<string name="hide_balance_placeholder">-----</string>
<string name="back_navigation_content_description">Back</string>
<string name="triple_dots">…</string>
</resources>
14 changes: 14 additions & 0 deletions ui-lib/src/main/res/ui/about/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="about_title">About</string>
<string name="about_version_format" formatted="true">Zashi Version <xliff:g example="1" id="version">%s</xliff:g></string>
<string name="about_debug_menu_app_name">App name:<xliff:g example="Zashi" id="app_name">%1$s</xliff:g></string>
<string name="about_debug_menu_build">Build: <xliff:g example="635dac0eb9ddc2bc6da5177f0dd495d8b76af4dc" id="git_commit_hash">%1$s</xliff:g></string>
<string name="about_description">Send and receive ZEC on Zashi!\nZashi is a minimal-design, self-custody, ZEC-only shielded wallet that keeps your transaction history and wallet balance private. Built by Zcashers, for Zcashers. Developed and maintained by Electric Coin Co., the inventor of Zcash, Zashi features a built-in user-feedback mechanism to enable more features, more quickly.</string>

<string name="about_pp_part_1">See our Privacy Policy\u0020</string>
<string name="about_pp_part_2">here</string>
<string name="about_pp_part_3">.</string>
<string name="about_unable_to_web_browser">Unable to find a web browser app.</string>
<string name="about_button_whats_new">What\'s new</string>
<string name="about_button_privacy_policy">Privacy Policy</string>
</resources>
2 changes: 1 addition & 1 deletion ui-lib/src/main/res/ui/about/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
<string name="about_unable_to_web_browser">Unable to find a web browser app.</string>
<string name="about_button_whats_new">What\'s new</string>
<string name="about_button_privacy_policy">Privacy Policy</string>
</resources>
</resources>
30 changes: 30 additions & 0 deletions ui-lib/src/main/res/ui/account/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

<string name="account_history_empty">No transaction history</string>

<string name="account_history_item_sent">Sent</string>
<string name="account_history_item_received">Received</string>
<string name="account_history_item_sending">Sending…</string>
<string name="account_history_item_receiving">Receiving…</string>
<string name="account_history_item_receive_failed">Receive failed</string>
<string name="account_history_item_send_failed">Send failed</string>
<string name="account_history_item_shielded">Shielded transaction</string>
<string name="account_history_item_sent_prefix">-</string>
<string name="account_history_item_received_prefix">+</string>
<string name="account_history_item_tap_to_copy">Tap to copy</string>
<string name="account_history_item_save_address">Save address</string>
<plurals name="account_history_item_message">
<item quantity="one">Message</item>
<item quantity="other">Messages</item>
<item quantity="many">Messages</item>
</plurals>
<string name="account_history_item_collapse_transaction">Collapse transaction</string>
<string name="account_history_item_transaction_id">Transaction ID</string>
<string name="account_history_item_transaction_fee">Transaction Fee</string>
<string name="account_history_item_transaction_fee_typical">Typical Fee &lt; <xliff:g id="fee_amount"
example="0.001">%1$s</xliff:g></string>

<string name="account_history_memo_clipboard_tag">Transaction message</string>
<string name="account_history_id_clipboard_tag">Transaction ID</string>
<string name="account_history_address_clipboard_tag">Transaction address</string>
</resources>
2 changes: 1 addition & 1 deletion ui-lib/src/main/res/ui/account/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<string name="account_history_item_received_prefix">+</string>
<string name="account_history_item_tap_to_copy">Tap to copy</string>
<string name="account_history_item_save_address">Save address</string>
n <plurals name="account_history_item_message">
<plurals name="account_history_item_message">
<item quantity="one">Message</item>
<item quantity="other">Messages</item>
</plurals>
Expand Down
4 changes: 4 additions & 0 deletions ui-lib/src/main/res/ui/add_contact/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="add_new_contact_title">Add New Contact</string>
<string name="add_new_contact_primary_btn">Save</string>
</resources>
8 changes: 8 additions & 0 deletions ui-lib/src/main/res/ui/address_book/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="address_book_title">Address Book</string>
<string name="address_book_add">Add New Contact</string>
<string name="address_book_empty">Your address book is empty</string>
<string name="address_book_version">Version <xliff:g example="1" id="version">%s</xliff:g></string>
<string name="address_book_scan_btn">Scan QR code</string>
<string name="address_book_manual_btn">Manual entry</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="advanced_settings_title">Advanced Settings</string>
<string name="advanced_settings_recovery">Recovery Phrase</string>
<string name="advanced_settings_export">Export Private Data</string>
<string name="advanced_settings_choose_server">Choose a Server</string>
<string name="advanced_settings_currency_conversion">Currency Conversion</string>
<string name="advanced_settings_info">You will be asked to confirm on the next screen</string>
<string name="advanced_settings_delete_button">Delete Zashi</string>
</resources>
32 changes: 32 additions & 0 deletions ui-lib/src/main/res/ui/authentication/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="authentication_system_ui_title">
Authentication for <xliff:g id="app_name" example="Zashi">%1$s</xliff:g>
</string>
<string name="authentication_system_ui_subtitle">
Use biometric or device credential to access <xliff:g id="use_case" example="Recovery Phrase">%1$s</xliff:g>.
</string>

<string name="authentication_use_case_delete_wallet">Delete Wallet feature</string>
<string name="authentication_use_case_export_data">Export Private Data feature</string>
<string name="authentication_use_case_seed_recovery">Seed Recovery feature</string>
<string name="authentication_use_case_send_funds">Send Funds feature</string>

<string name="authentication_toast_canceled">Authentication canceled</string>
<string name="authentication_toast_failed">Authentication failed</string>

<string name="authentication_error_title">Authentication error</string>
<string name="authentication_error_text">Authentication failed for the following reason. Retry the authentication, or contact the support team for help.</string>
<string name="authentication_error_details">
Error code: <xliff:g id="code" example="-1">%1$d</xliff:g>\nError message: <xliff:g id="message" example="No device credential">%2$s</xliff:g>
</string>
<string name="authentication_error_button_retry">Retry</string>
<string name="authentication_error_button_support">Contact Support</string>

<string name="authentication_failed_title">Authentication failed</string>
<string name="authentication_failed_text">
Authentication was presented but not recognized. Retry authentication, or contact the support team for help.
</string>
<string name="authentication_failed_button_retry">Retry</string>
<string name="authentication_failed_button_support">Contact Support</string>
</resources>
61 changes: 61 additions & 0 deletions ui-lib/src/main/res/ui/balances/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="balances_title">Balances</string>
<string name="balances_shielded_spendable">Shielded zec (spendable)</string>
<string name="balances_change_pending">Change pending</string>
<string name="balances_pending_transactions">Pending transactions</string>
<string name="balances_transparent_balance">Transparent balance</string>
<string name="balances_transparent_balance_help" formatted="true">
<xliff:g id="app_name" example="Zashi">%1$s</xliff:g> uses the latest network upgrade and does not
support sending transparent (unshielded) <xliff:g id="currency" example="ZEC">%2$s</xliff:g>. Use the Shield
and Consolidate button to shield your funds, which will add to your available balance and make your <xliff:g
id="currency" example="ZEC">%2$s</xliff:g> spendable.</string>
<string name="balances_transparent_balance_help_close">I got it!</string>
<string name="balances_transparent_help_content_description">Show help</string>
<string name="balances_transparent_balance_shield">Shield and consolidate funds</string>
<string name="balances_transparent_balance_fee">(Typical Fee &lt; <xliff:g id="fee_amount" example="0.001">%1$s
</xliff:g>)</string>

<string name="balances_status_syncing" formatted="true">Syncing…</string>
<string name="balances_status_syncing_amount_suffix" formatted="true"><xliff:g id="amount_prefix" example="123$">%1$s</xliff:g> so far</string>
<string name="balances_status_syncing_percentage" formatted="true"><xliff:g id="synced_percent" example="50.25">
%1$s</xliff:g>%%</string> <!-- double %% for escaping -->
<string name="balances_status_synced">Synced</string>
<string name="balances_status_update">Please update <xliff:g id="app_name" example="Zashi">%1$s</xliff:g> using Google Play</string>
<string name="balances_status_error_simple"><xliff:g id="app_name" example="Zashi">%1$s</xliff:g> encountered an error while syncing, attempting to resolve…</string>
<string name="balances_status_restoring_text">The restore process can take several hours on lower-powered devices, and even on powerful devices is likely to take more than an hour.</string>

<string name="balances_shielding_successful">Shielding has been successfully submitted</string>

<string name="balances_status_error_dialog_title">Error</string>
<string name="balances_status_error_dialog_connection">
Disconnected. Please check your internet connection.
</string>
<string name="balances_status_error_dialog_cause" formatted="true">Error:
<xliff:g id="error_cause" example="Block scanning problem">%1$s</xliff:g>\n\nStacktrace:
<xliff:g id="error_stacktrace"
example="java.lang.IllegalStateException: Unsupported wallet state
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
Caused by: java.lang.RuntimeException: Failure from Rust backend">%2$s</xliff:g>
</string>
<string name="balances_status_error_dialog_cause_unknown">
Unknown cause. Please contact our support team if the problem persists.
</string>
<string name="balances_status_error_dialog_stacktrace_unknown">Unknown stacktrace.</string>
<string name="balances_status_dialog_stopped">Synchronization is stopped. It will resume soon.</string>
<string name="balances_status_dialog_ok_button">OK</string>
<string name="balances_status_dialog_report_button">Report</string>

<string name="balances_shielding_dialog_error_title">Transaction Failed</string>
<string name="balances_shielding_dialog_error_text">The attempt to shield the transparent funds failed. Try it
again, please.</string>
<string name="balances_shielding_dialog_error_btn">OK</string>
<string name="balances_shielding_dialog_report_btn">Report</string>
<string name="balances_shielding_dialog_error_text_below_threshold">The current transparent balance is zero or
below the allowed shielding limit.</string>

<string name="balances_shielding_dialog_error_grpc_title">Connection Error</string>
<string name="balances_shielding_dialog_error_grpc_text">Zashi encountered some connection issues when submitting
the shielding transaction to the network. It will retry during the next few minutes.</string>
<string name="balances_shielding_dialog_error_grpc_btn">OK</string>

</resources>
35 changes: 35 additions & 0 deletions ui-lib/src/main/res/ui/choose_server/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="choose_server_title">Server</string>
<string name="choose_server_default_label">default: <xliff:g id="server" example="example.com:123">%1$s</xliff:g></string>
<string name="choose_server_custom">custom</string>
<string name="choose_server_custom_delimiter">:</string>
<string name="choose_server_full_server_name">
<xliff:g id="hostname" example="example.com">%1$s</xliff:g>:
<xliff:g id="port" example="508">%2$d</xliff:g>
</string>
<string name="choose_server_full_server_name_text_field">
<xliff:g id="hostname" example="example.com">%1$s</xliff:g>:<xliff:g id="port" example="508">%2$d</xliff:g>
</string>
<string name="choose_server_textfield_hint">&lt;hostname&gt;:&lt;port&gt;</string>
<string name="choose_server_save">Save selection</string>

<string name="choose_server_validation_dialog_error_title">Invalid server endpoint</string>
<string name="choose_server_validation_dialog_error_text">Error: The attempt to switch endpoints failed.
Check that the hostname and port are correct, and are formatted as &lt;hostname&gt;:&lt;port&gt;.</string>
<string name="choose_server_validation_dialog_error_btn">OK</string>

<string name="choose_server_save_success_dialog_title">Server saved</string>
<string name="choose_server_save_success_dialog_text">The selected server endpoint has been
successfully saved.</string>
<string name="choose_server_save_success_dialog_btn">OK</string>
<string name="choose_server_save_default">Default</string>

<string name="choose_server_loading_title">Performing Server Test</string>
<string name="choose_server_loading_subtitle">This may take a moment…</string>

<string name="choose_server_fastest_servers">Fastest servers</string>
<string name="choose_server_other_servers">Other servers</string>
<string name="choose_server_refresh">Refresh</string>
<string name="choose_server_active">Active</string>
<string name="choose_server_default">Default</string>
</resources>
31 changes: 31 additions & 0 deletions ui-lib/src/main/res/ui/common/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- This is replaced by a resource overlay via app/build.gradle.kts -->
<string name="app_name">zashi-ui</string>

<string name="back_navigation">Back</string>
<string name="back_navigation_content_description">Back</string>

<string name="fiat_currency_conversion_rate_unavailable">Unavailable</string>
<string name="empty_char">-</string>
<string name="zcash_logo_content_description">Zcash logo</string>
<string name="settings_menu_content_description">Open Settings</string>
<string name="balance_widget_available">Available Balance:</string>

<string name="hide_balances_content_description">Hide balances</string>

<!-- This is replaced by a resource overlay via app/build.gradle.kts -->
<string name="support_email_address" />
<string name="unable_to_open_email">Unable to launch email app.</string>

<string name="restoring_wallet_label">[Restoring Your Wallet…]</string>
<string name="disconnected_label">[Disconnected…]</string>
<string name="unable_to_open_play_store">Unable to launch Google Play store app…</string>

<string name="server_disconnected_dialog_title">Heads up</string>
<string name="server_disconnected_dialog_message">Your current server is experiencing difficulties. Check your
device connection, and/or navigate to Advanced Settings to choose a different server.</string>
<string name="server_disconnected_dialog_switch_btn">Switch Server</string>
<string name="server_disconnected_dialog_ignore_btn">Ignore</string>

<string name="general_etc">…</string>
</resources>
11 changes: 11 additions & 0 deletions ui-lib/src/main/res/ui/contact/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="contact_name_label">Contact Name</string>
<string name="contact_name_hint">Enter contact name…</string>
<string name="contact_address_label">Wallet Address</string>
<string name="contact_address_hint">Enter Wallet Address…</string>

<string name="contact_name_error_not_unique">This contact name is already in use. Please choose a different name.</string>
<string name="contact_name_error_too_long">This contact name exceeds the 32-character limit. Please shorten the name.</string>
<string name="contact_address_error_not_unique">This wallet address is already in your Address Book.</string>
<string name="contact_address_error_invalid">Invalid address</string>
</resources>
23 changes: 23 additions & 0 deletions ui-lib/src/main/res/ui/delete_wallet/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="delete_wallet_title">
Delete <xliff:g id="app_name" example="Zashi">%1$s</xliff:g>
</string>

<string name="delete_wallet_text_1">
Please don\'t delete this app unless you\'re sure you understand the effects.
</string>
<string name="delete_wallet_text_2">
Deleting the <xliff:g id="app_name" example="Zashi">%1$s</xliff:g> app will delete the database and cached
data. Any funds you have in this wallet will be lost and can only be recovered by using your <xliff:g
id="app_name" example="Zashi">%1$s</xliff:g> secret recovery phrase in <xliff:g id="app_name"
example="Zashi">%1$s</xliff:g> or another Zcash wallet.
</string>

<string name="delete_wallet_acknowledge">I understand</string>

<string name="delete_wallet_button">
Delete <xliff:g id="app_name" example="Zashi">%1$s</xliff:g>
</string>

<string name="delete_wallet_failed">Wallet deletion failed. Try it again, please.</string>
</resources>
Loading

0 comments on commit bcd2455

Please sign in to comment.