diff options
author | Torsten Grote <t@grobox.de> | 2020-04-23 11:52:04 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-04-23 11:52:04 -0300 |
commit | ffc78da700c5665786d2838752d8465e1b07c72f (patch) | |
tree | 9c02a258253392644cdb47b8caffc1652b3f6464 /cashier/src/main/res/values | |
parent | a99932be13e415d542658696f1281eac8a1c48f0 (diff) | |
download | taler-android-ffc78da700c5665786d2838752d8465e1b07c72f.tar.gz taler-android-ffc78da700c5665786d2838752d8465e1b07c72f.tar.bz2 taler-android-ffc78da700c5665786d2838752d8465e1b07c72f.zip |
[cashier] add offline detection to all failing HTTP requests
and show a better error message in these cases
Diffstat (limited to 'cashier/src/main/res/values')
-rw-r--r-- | cashier/src/main/res/values/strings.xml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cashier/src/main/res/values/strings.xml b/cashier/src/main/res/values/strings.xml index d0ac3ae..b4964d8 100644 --- a/cashier/src/main/res/values/strings.xml +++ b/cashier/src/main/res/values/strings.xml @@ -7,12 +7,13 @@ <string name="config_button_save">Save</string> <string name="config_bank_url_error">The address is invalid.</string> <string name="config_username_error">Please enter your username!</string> - <string name="config_error">Error retrieving configuration%s</string> + <string name="config_error">Error retrieving configuration: %s</string> <string name="config_error_auth">Invalid username or password!</string> + <string name="config_error_offline" translatable="false">@string/balance_offline</string> <string name="config_demo_hint" tools:ignore="StringFormatInvalid">For testing, you can <![CDATA[<a href="%s">create a test account at the demo bank</a>]]>.</string> <string name="balance_current_label">Current balance</string> - <string name="balance_error">ERROR%s</string> + <string name="balance_error">ERROR: %s</string> <string name="balance_offline">Offline. Please connect to the Internet.</string> <string name="action_reconfigure">Reconfigure</string> <string name="action_lock">Lock</string> @@ -21,14 +22,15 @@ <string name="withdraw_into">How much e-cash should be withdrawn?</string> <string name="withdraw_error_zero">Enter positive amount!</string> <string name="withdraw_error_insufficient_balance">Insufficient balance</string> - <string name="withdraw_error_fetch">Error communicating with bank%s</string> + <string name="withdraw_error_fetch">Error communicating with bank: %s</string> <string name="withdraw_error_timeout">No wallet tried to withdraw. Please try again.</string> + <string name="withdraw_error_offline" translatable="false">@string/balance_offline</string> <string name="withdraw_button_confirm">Withdraw</string> - <!-- "to get" refers to the amount that will be withdrawn, e.g. to get 12 EUR --> - <string name="transaction_intro">Scan code with the Taler wallet app to get</string> - <!-- "to get" refers to the amount that will be withdrawn, e.g. to get 12 EUR --> - <string name="transaction_intro_nfc">Scan code or use NFC with the Taler wallet app to get</string> + <!-- "to withdraw" refers to the amount that will be withdrawn, e.g. to withdraw 12 EUR --> + <string name="transaction_intro">Scan code with the Taler wallet app to withdraw:</string> + <!-- "to withdraw" refers to the amount that will be withdrawn, e.g. to withdraw 12 EUR --> + <string name="transaction_intro_nfc">Scan code or use NFC with the Taler wallet app to withdraw:</string> <string name="transaction_intro_scanned">Please confirm the transaction!</string> <string name="transaction_confirm">Confirm</string> <string name="transaction_abort">Abort</string> |