diff options
author | Will Szumski <will@cowboycoders.org> | 2016-11-24 18:47:57 +0000 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2016-11-28 19:53:44 +0100 |
commit | 7f21ccca2d6499563c043edf956f1a2881d020f0 (patch) | |
tree | e3fa8e40f8358dd2815b9952a56d8859457e13b9 /src/main | |
parent | ae6bf9d84cc762185ab23678ebe1a18ffc7dc630 (diff) | |
download | andiodine-7f21ccca2d6499563c043edf956f1a2881d020f0.tar.gz andiodine-7f21ccca2d6499563c043edf956f1a2881d020f0.zip |
Extract network device creation error message to strings.xml
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 | ||||
-rw-r--r-- | src/main/res/values-de/strings.xml | 1 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/xapek/andiodine/IodineVpnService.java b/src/main/java/org/xapek/andiodine/IodineVpnService.java index e3c7858..3c61483 100644 --- a/src/main/java/org/xapek/andiodine/IodineVpnService.java +++ b/src/main/java/org/xapek/andiodine/IodineVpnService.java @@ -255,7 +255,7 @@ public class IodineVpnService extends VpnService implements Runnable { } catch (IllegalStateException e) { String errorMessage = "IllegalStateException"; if (e.getMessage().contains("Cannot create interface")) { - errorMessage = "Failed to create tunnel network device"; + errorMessage = getString(R.string.vpnservice_error_create_interface_string); } else { e.printStackTrace(); } diff --git a/src/main/res/values-de/strings.xml b/src/main/res/values-de/strings.xml index 9b98757..9ad840b 100644 --- a/src/main/res/values-de/strings.xml +++ b/src/main/res/values-de/strings.xml @@ -50,6 +50,7 @@ <string name="vpnservice_error_unknown_error_code">Unbekannter Fehler. Kode %d</string> <string name="vpnservice_error_unknown_error_string">Unbekannter Fehler. Grund: %s</string> <string name="vpnservice_error_dns_detect_failed">Es wurden keine gültigen IPv4-Nameserver erkannt</string> + <string name="vpnservice_error_create_interface_string">Das Tunnel-Netzwerkgerät konnte nicht erstellt werden</string> <string name="idle">Leerlauf</string> <string name="warning">Warnung</string> <string name="error">Fehler</string> diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index f584765..bd9709b 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -75,6 +75,7 @@ <string name="vpnservice_error_unknown_error_code">Unknown Error. Code %d</string> <string name="vpnservice_error_unknown_error_string">Unknown Error. Reason: %s</string> <string name="vpnservice_error_dns_detect_failed">No valid IPv4 name servers detected</string> + <string name="vpnservice_error_create_interface_string">Failed to create tunnel network device</string> <string name="idle">Idle</string> <string name="warning">Warning</string> <string name="error">Error</string> |