Added text

This commit is contained in:
M66B 2016-10-06 22:13:55 +02:00
parent db3afe9fca
commit dcdf9fb164
2 changed files with 3 additions and 2 deletions

View File

@ -416,7 +416,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
last_builder = getBuilder(listAllowed, listRule);
vpn = startVPN(last_builder);
if (vpn == null)
throw new IllegalStateException("VPN start failed");
throw new IllegalStateException(getString((R.string.msg_start_failed)));
startNative(vpn, listAllowed, listRule);
@ -492,7 +492,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
}
if (vpn == null)
throw new IllegalStateException("VPN start failed");
throw new IllegalStateException(getString((R.string.msg_start_failed)));
startNative(vpn, listAllowed, listRule);

View File

@ -165,6 +165,7 @@ For this reason, please allow a VPN connection in the next dialog.
Your internet traffic is not being sent to a remote VPN server.</string>
<string name="msg_autostart">NetGuard could not start automatically. This is likely because of a bug in your Android version.</string>
<string name="msg_error">An unexpected error has occurred: \'%s\'</string>
<string name="msg_start_failed">Android refused to start the VPN service at this moment. This is likely because of a bug in your Android version.</string>
<string name="msg_try">Try NetGuard</string>
<string name="msg_terms">By donating you agree to the <a href="http://www.netguard.me/#terms">terms &amp; conditions</a></string>
<string name="msg_dimming">If you cannot press OK in the next dialog, another (screen dimming) application is likely manipulating the screen.</string>