aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2018-08-01 02:47:34 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-08-26 11:04:01 -0600
commitc38f6c471d640a73e9c512b64c22001cdec3ba65 (patch)
tree404fc99e6684998f39a6466b4581decbba3c4f4b /app/src/main/res
parentMonkeyedSnackbar: remove (diff)
downloadwireguard-android-c38f6c471d640a73e9c512b64c22001cdec3ba65.tar.xz
wireguard-android-c38f6c471d640a73e9c512b64c22001cdec3ba65.zip
Extract error messages to string resources
Useful for validation errors and localisation later on Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/strings.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 991ac98d..6f4af561 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -97,6 +97,18 @@
<string name="tunnel_name">Tunnel Name</string>
<string name="tunnel_rename_error">Unable to rename tunnel: %s</string>
<string name="tunnel_rename_success">Successfully renamed tunnel to ā€œ%sā€</string>
+ <string name="tunnel_error_invalid_name">Invalid name</string>
+ <string name="tunnel_error_already_exists">Tunnel %s already exists</string>
+ <string name="tunnel_error_empty_inetaddress">Empty address</string>
+ <string name="tunnel_error_empty_interface_address">Address is empty</string>
+ <string name="tunnel_error_interface_parse_failed">Unable to parse line: ā€œ%sā€</string>
+ <string name="tunnel_error_forbidden_endpoint_chars">Forbidden characters in endpoint</string>
+ <string name="tunnel_error_empty_peer_public_key">Peer public key may not be empty</string>
+ <string name="tunnel_error_invalid_config_line">Invalid configuration line: %s</string>
+ <string name="tunnel_error_no_config_information">Could not find any config information</string>
+ <string name="key_length_base64_exception_message">WireGuard base64 keys must be 44 characters encoding 32 bytes</string>
+ <string name="key_length_exception_message">WireGuard keys must be 32 bytes</string>
+ <string name="key_length_hex_exception_message">WireGuard hex keys must be 64 characters encoding 32 bytes</string>
<string name="version_title">WireGuard for Android v%s"</string>
<string name="version_summary">%s backend v%s</string>
<string name="version_summary_checking">Checking %s backend version</string>