0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 12:02:28 +02:00

Move hardcoded string to string resources.

This commit is contained in:
Danny Baumann 2016-02-04 11:54:09 +01:00
parent 15b5c7316b
commit c4c1bbc236
3 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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

View File

@ -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>