diff options
author | Sreeram Boyapati <sreeram.boyapati2011@gmail.com> | 2014-03-10 22:37:23 +0530 |
---|---|---|
committer | Sreeram Boyapati <sreeram.boyapati2011@gmail.com> | 2014-03-10 22:37:23 +0530 |
commit | a41ee31b6c5cfbef067efb0843593a2459861b9c (patch) | |
tree | ff04ddd018497b65bfc1b6d9121b492363d3e109 /OpenPGP-Keychain/src/main | |
parent | b47f291d1272954a27c5d1313480dd4cc4dbfe05 (diff) | |
download | open-keychain-a41ee31b6c5cfbef067efb0843593a2459861b9c.tar.gz open-keychain-a41ee31b6c5cfbef067efb0843593a2459861b9c.tar.bz2 open-keychain-a41ee31b6c5cfbef067efb0843593a2459861b9c.zip |
Added string reference for Issue #207
Diffstat (limited to 'OpenPGP-Keychain/src/main')
-rw-r--r-- | OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java | 8 | ||||
-rw-r--r-- | OpenPGP-Keychain/src/main/res/values/strings.xml | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java index 95a254bf2..ca5d8b262 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java @@ -92,10 +92,10 @@ public class SelectSecretKeyLayoutFragment extends Fragment { String userName, userEmail; if (userIdSplit[0] != null) { userName = userIdSplit[0]; } - else { userName = "No Name"; } + else { userName = getActivity().getResources().getString(R.string.user_id_no_name); } if (userIdSplit[1] != null) { userEmail = userIdSplit[1]; } - else { userEmail = "No Email"; } + else { userEmail = getActivity().getResources().getString(R.string.error_user_id_no_email); } mKeyMasterKeyIdHex.setText(masterkeyIdHex); mKeyUserId.setText(userName); @@ -104,7 +104,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment { mKeyUserIdRest.setVisibility(View.VISIBLE); } else{ - mKeyMasterKeyIdHex.setText("No key found for KeyRing"); + mKeyMasterKeyIdHex.setText(getActivity().getResources().getString(R.string.no_key)); mKeyUserId.setVisibility(View.GONE); mKeyUserIdRest.setVisibility(View.GONE); @@ -112,7 +112,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment { } else{ - mKeyMasterKeyIdHex.setText("No KeyRings found for MasterId: "+secretKeyId); + mKeyMasterKeyIdHex.setText(getActivity().getResources().getString(R.string.no_keys_added_or_updated)+" for master id: "+secretKeyId); mKeyUserId.setVisibility(View.GONE); mKeyUserIdRest.setVisibility(View.GONE); } diff --git a/OpenPGP-Keychain/src/main/res/values/strings.xml b/OpenPGP-Keychain/src/main/res/values/strings.xml index 99fc7c8a7..754d4cece 100644 --- a/OpenPGP-Keychain/src/main/res/values/strings.xml +++ b/OpenPGP-Keychain/src/main/res/values/strings.xml @@ -145,6 +145,7 @@ <string name="user_id_no_name"><no name></string> <string name="none"><none></string> <string name="no_key"><no key></string> + <string name="no_email"><No Email></string> <string name="unknown_status"></string> <string name="can_encrypt">can encrypt</string> <string name="can_sign">can sign</string> @@ -271,6 +272,7 @@ <string name="error_master_key_must_not_be_el_gamal">the master key cannot be an ElGamal key</string> <string name="error_unknown_algorithm_choice">unknown algorithm choice</string> <string name="error_user_id_needs_a_name">you need to specify a name</string> + <string name="error_user_id_no_email">no email found</string> <string name="error_user_id_needs_an_email_address">you need to specify an email address</string> <string name="error_key_needs_a_user_id">need at least one user id</string> <string name="error_main_user_id_must_not_be_empty">main user id must not be empty</string> |