From 7f21ccca2d6499563c043edf956f1a2881d020f0 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 24 Nov 2016 18:47:57 +0000 Subject: Extract network device creation error message to strings.xml --- src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 +- src/main/res/values-de/strings.xml | 1 + src/main/res/values/strings.xml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ Unbekannter Fehler. Kode %d Unbekannter Fehler. Grund: %s Es wurden keine gültigen IPv4-Nameserver erkannt + Das Tunnel-Netzwerkgerät konnte nicht erstellt werden Leerlauf Warnung Fehler 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 @@ Unknown Error. Code %d Unknown Error. Reason: %s No valid IPv4 name servers detected + Failed to create tunnel network device Idle Warning Error -- cgit v1.2.1