From 0b5c66ad0de94386f75df728e5a4d1e8de391ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Tue, 19 May 2015 16:02:57 +0200 Subject: Improve strings --- .../keychain/ui/SettingsKeyServerActivity.java | 2 +- .../ui/dialog/AddKeyserverDialogFragment.java | 7 +-- OpenKeychain/src/main/res/values/strings.xml | 54 ++++++++++++++-------- .../src/main/res/xml/cloud_search_prefs.xml | 19 ++++---- 4 files changed, 48 insertions(+), 34 deletions(-) (limited to 'OpenKeychain/src') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsKeyServerActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsKeyServerActivity.java index 8f025c769..dc203756f 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsKeyServerActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsKeyServerActivity.java @@ -177,7 +177,7 @@ public class SettingsKeyServerActivity extends BaseActivity implements OnClickLi // Create a new Messenger for the communication back Messenger messenger = new Messenger(returnHandler); AddKeyserverDialogFragment dialogFragment = AddKeyserverDialogFragment - .newInstance(messenger, R.string.add_keyserver_dialog_title); + .newInstance(messenger); dialogFragment.show(getSupportFragmentManager(), "addKeyserverDialog"); } diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java index cbef5950f..cfad76fc3 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddKeyserverDialogFragment.java @@ -58,7 +58,6 @@ import javax.net.ssl.HttpsURLConnection; public class AddKeyserverDialogFragment extends DialogFragment implements OnEditorActionListener { private static final String ARG_MESSENGER = "messenger"; - private static final String ARG_TITLE = "title"; public static final int MESSAGE_OKAY = 1; public static final int MESSAGE_VERIFICATION_FAILED = 2; @@ -85,10 +84,9 @@ public class AddKeyserverDialogFragment extends DialogFragment implements OnEdit * @param messenger to communicate back after setting the passphrase * @return */ - public static AddKeyserverDialogFragment newInstance(Messenger messenger, int title) { + public static AddKeyserverDialogFragment newInstance(Messenger messenger) { AddKeyserverDialogFragment frag = new AddKeyserverDialogFragment(); Bundle args = new Bundle(); - args.putInt(ARG_TITLE, title); args.putParcelable(ARG_MESSENGER, messenger); frag.setArguments(args); @@ -103,12 +101,11 @@ public class AddKeyserverDialogFragment extends DialogFragment implements OnEdit public Dialog onCreateDialog(Bundle savedInstanceState) { final Activity activity = getActivity(); - int title = getArguments().getInt(ARG_TITLE); mMessenger = getArguments().getParcelable(ARG_MESSENGER); CustomAlertDialogBuilder alert = new CustomAlertDialogBuilder(activity); - alert.setTitle(title); + alert.setTitle(R.string.add_keyserver_dialog_title); LayoutInflater inflater = activity.getLayoutInflater(); View view = inflater.inflate(R.layout.add_keyserver_dialog, null); diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index 98d91d3cf..f01b2cace 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -16,7 +16,7 @@ "Edit Key" "Settings" "Apps" - "Keyservers" + "OpenPGP keyservers" "Change Password" "Share fingerprint with…" "Share key with…" @@ -135,7 +135,7 @@ "Cache passwords by subkey" "Text compression" "File compression" - "Keyservers" + "Select OpenPGP keyservers" "Key ID" "Key created %s" "Creation" @@ -155,13 +155,13 @@ "Enable compression" "Encrypt filenames" "Hide recipients" - "Verify Keyserver" - "Enter Keyserver URL" + "Verify keyserver" + "Enter keyserver URL" - "Search Keyserver" - "Search HKP keyserver" - "Search Keybase.io" - "Search Keybase.io index" + "OpenPGP keyservers" + "Search keys on selected OpenPGP keyservers (HKP protocol)" + "keybase.io" + "Search keys on keybase.io" "<no name>" "<none>" @@ -331,7 +331,7 @@ "revoking subkeys…" "stripping subkeys…" "adding subkeys…" - "changing passwords…" + "changing password…" "exporting key…" @@ -414,7 +414,7 @@ "Place your camera over the QR Code!" - "No search parameter found. You may still attempt manually searching the keyserver." + "No search query defined. You can still manually search on this keyserver." "Details" @@ -657,7 +657,7 @@ "<none>" - "Add Keyserver" + "Add keyserver" "Keyserver verified!" "Keyserver added without verification." "Invalid URL!" @@ -801,7 +801,7 @@ "Marked secret subkey %s as available, with empty password" "Marked secret subkey %s as available, with PIN" "Marked secret subkey %s as stripped" - "Marked secret subkey %s as 'divert to smartcard/NFC'" + "Marked secret subkey %s as 'divert-to-card'" "Keyring contains no new data, nothing to do" "Successfully imported secret keyring" @@ -908,8 +908,8 @@ "Modifying keyring %s" - "Will divert to card/nfc for crypto operations" - "The serial number of a divert-to-card key must be 16 bytes! This is a programming error, please file a bug report!" + "Will divert to smart card for crypto operations" + "The serial number of a 'divert-to-card' key must be 16 bytes! This is a programming error, please file a bug report!" "Encoding exception!" "Actual key fingerprint does not match the expected one!" "No key ID. This is an internal error, please file a bug report!" @@ -925,6 +925,12 @@ "Internal OpenPGP error!" "Signature exception!" "Tried to operate on missing subkey %s!" +<<<<<<< HEAD +======= + "Cannot move key to smart card in same operation that creates an on-card signature." + "Smart card supports only one slot per key type." + "Inappropriate key flags for smart card key." +>>>>>>> 0f52097... Improve strings "Modifying master certifications" "Adding empty notation packet" "Adding PIN notation packet" @@ -936,13 +942,18 @@ "Generating new certificate for new primary user ID" "Changing to restricted operation mode" "Modifying subkey %s" - "Diverting to card/nfc for crypto operations" + "Diverting to smart card for crypto operations" "Password required for operations" "Adding new subkey of type %s" "New subkey ID: %s" "Expiry date cannot be in the past!" "Revoking subkey %s" "Stripping subkey %s" +<<<<<<< HEAD +======= + "Moving subkey %s to smart card" + "Moved %1$s to smart card %2$s" +>>>>>>> 0f52097... Improve strings "Keyring successfully modified" "Adding user ID %s" "Changing primary user ID to %s" @@ -997,11 +1008,11 @@ "Promoting public key to secret key" - "Promoting all subkeysp" + "Promoting all subkeys" "Key not found!" "Fetching key to modify (%s)" "Promoting subkey: %s" - "Subkey not on Yubikey: %s" + "Subkey not on YubiKey: %s" "Key successfully promoted" @@ -1117,7 +1128,7 @@ "Error unlocking master key!" "Certifying keyrings" "Fetching certifying master key" - "Returning for NFC input" + "Returning to NFC screen" "Saving certified key %s" "Saving keyrings" "Unlocking master key" @@ -1217,6 +1228,11 @@ "Import key from file" "Use YubiKey NEO" "Skip Setup" +<<<<<<< HEAD +======= + "Blank smart card / YubiKey detected" + "Would you like to generate a smart card compatible key?" +>>>>>>> 0f52097... Improve strings "Certifier" @@ -1234,7 +1250,7 @@ "Key not found!" "Error processing key!" "stripped" - "divert to smartcard/NFC" + "divert to smart card" "no password" "unavailable" "Your own keys can only be deleted individually!" diff --git a/OpenKeychain/src/main/res/xml/cloud_search_prefs.xml b/OpenKeychain/src/main/res/xml/cloud_search_prefs.xml index 08855fa22..d14f0bc40 100644 --- a/OpenKeychain/src/main/res/xml/cloud_search_prefs.xml +++ b/OpenKeychain/src/main/res/xml/cloud_search_prefs.xml @@ -1,20 +1,21 @@ - - - + android:title="@string/pref_keyserver" /> + + + \ No newline at end of file -- cgit v1.2.3