From c5239d6e9b138925718e031df8da86f57035947a Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Tue, 23 Sep 2014 16:23:13 +0200 Subject: [PATCH] be more precise on importresult overall error --- .../keychain/service/results/ImportKeyResult.java | 2 +- OpenKeychain/src/main/res/values/strings.xml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/results/ImportKeyResult.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/results/ImportKeyResult.java index 3c07e8667..b5174bc63 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/results/ImportKeyResult.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/results/ImportKeyResult.java @@ -165,7 +165,7 @@ public class ImportKeyResult extends OperationResult { ? R.string.import_error_nothing_cancelled : R.string.import_error_nothing); } else { - str = activity.getString(R.string.import_error); + str = activity.getResources().getQuantityString(R.plurals.import_error, mBadKeys); } } diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index c77c50b72..3478acbbd 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -395,15 +395,18 @@ "Successfully updated %1$d keys%2$s." - "Import failed for one key." - "Import failed for %d keys." + "Import failed for one key!" + "Import failed for %d keys!" "View Log" "Nothing to import." "Import cancelled." - "Error importing keys!" ", with warnings" ", until cancelled" + + "Import failed!" + "Import of %d keys failed!" + "Decrypt File with OpenKeychain"