summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2016-02-04 11:54:09 +0100
committerDanny Baumann <dannybaumann@web.de>2016-02-04 12:14:12 +0100
commitc4c1bbc23624b850469c289b07ae2c67a8473653 (patch)
treee62c0da7152939da033f5645d6ae9013c5a53949 /main/src
parent15b5c7316b118dfc1ae2f3f1085532f9582ecd1d (diff)
Move hardcoded string to string resources.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/LaunchVPN.java4
-rw-r--r--main/src/main/java/de/blinkt/openvpn/fragments/InlineFileTab.java2
-rwxr-xr-xmain/src/main/res/values/strings.xml4
3 files changed, 6 insertions, 4 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java b/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java
index 1a037824..152755a5 100644
--- a/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java
+++ b/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java
@@ -131,8 +131,8 @@ public class LaunchVPN extends Activity {
entry.setTransformationMethod(new PasswordTransformationMethod());
AlertDialog.Builder dialog = new AlertDialog.Builder(this);
- dialog.setTitle("Need " + getString(type));
- dialog.setMessage("Enter the password for profile " + mSelectedProfile.mName);
+ dialog.setTitle(getString(R.string.pw_request_dialog_title, getString(type)));
+ dialog.setMessage(getString(R.string.pw_request_dialog_prompt, mSelectedProfile.mName));
if (type == R.string.password) {
((EditText)userpwlayout.findViewById(R.id.username)).setText(mSelectedProfile.mUsername);
diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/InlineFileTab.java b/main/src/main/java/de/blinkt/openvpn/fragments/InlineFileTab.java
index 798f432d..efba038f 100644
--- a/main/src/main/java/de/blinkt/openvpn/fragments/InlineFileTab.java
+++ b/main/src/main/java/de/blinkt/openvpn/fragments/InlineFileTab.java
@@ -53,7 +53,7 @@ public class InlineFileTab extends Fragment
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
- menu.add(0, MENU_SAVE, 0, "Use inline data")
+ menu.add(0, MENU_SAVE, 0, R.string.menu_use_inline_data)
.setIcon(android.R.drawable.ic_menu_save)
.setAlphabeticShortcut('u')
.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM
diff --git a/main/src/main/res/values/strings.xml b/main/src/main/res/values/strings.xml
index 1ad2fe87..f88fbb8f 100755
--- a/main/src/main/res/values/strings.xml
+++ b/main/src/main/res/values/strings.xml
@@ -396,5 +396,7 @@
<string name="permission_revoked">VPN permission revoked by OS (e.g. other VPN program started), stopping VPN</string>
<string name="pushpeerinfo">Push Peer info</string>
<string name="pushpeerinfosummary">Send extra information to the server, e.g. SSL version and Android version</string>
-
+ <string name="pw_request_dialog_title">Need %1$s</string>
+ <string name="pw_request_dialog_prompt">Please enter the password for profile %1$s</string>
+ <string name="menu_use_inline_data">Use inline data</string>
</resources>