[pim/kleopatra] src/crypto: Use plural also for encrypt and sign&encrypt result
Ingo Klöcker <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 7086db73a5b45618792e4f74209acaffe5401661 by Ingo Klöcker, on behalf of Ingo Klöcker.
Committed on 10/08/2026 at 10:04.
Pushed by kloecker into branch 'master'.
Use plural also for encrypt and sign&encrypt result
If two or more files are (signed and) encrypted then I think we need to
use the plural, i.e. "saved them as" instead of "saved it as".
GnuPG-bug-id: 8349
M +9 -9 src/crypto/signencrypttask.cpp
https://invent.kde.org/pim/kleopatra/-/commit/7086db73a5b45618792e4f74209acaffe5401661
diff --git a/src/crypto/signencrypttask.cpp b/src/crypto/signencrypttask.cpp
index 4a68c2a73..78a865e0b 100644
--- a/src/crypto/signencrypttask.cpp
+++ b/src/crypto/signencrypttask.cpp
@@ -222,15 +222,15 @@ static QString formatResultLine(const QStringList &inputs,
output);
}
if (inputs.size() == 2) {
- return xi18nc("@info Successfully signed and encrypted <file> and <file> and saved it as <file>.",
- "Successfully signed and encrypted <filename>%1</filename> and <filename>%2</filename> and saved it as <filename>%3</filename>.",
+ return xi18nc("@info Successfully signed and encrypted <file> and <file> and saved them as <file>.",
+ "Successfully signed and encrypted <filename>%1</filename> and <filename>%2</filename> and saved them as <filename>%3</filename>.",
inputs[0],
inputs[1],
output);
}
return xi18ncp("@info Successfully signed and encrypted <file> and <n> other(s) as <file>.",
- "Successfully signed and encrypted <filename>%2</filename> and %1 other and saved it as <filename>%3</filename>.",
- "Successfully signed and encrypted <filename>%2</filename> and %1 others and saved it as <filename>%3</filename>.",
+ "Successfully signed and encrypted <filename>%2</filename> and %1 other and saved them as <filename>%3</filename>.",
+ "Successfully signed and encrypted <filename>%2</filename> and %1 others and saved them as <filename>%3</filename>.",
inputs.size() - 1,
inputs[0],
output);
@@ -272,15 +272,15 @@ static QString formatResultLine(const QStringList &inputs,
output);
}
if (inputs.size() == 2) {
- return xi18nc("@info Successfully encrypted <file> and <file> and saved it as <file>.",
- "Successfully encrypted <filename>%1</filename> and <filename>%2</filename> and saved it as <filename>%3</filename>.",
+ return xi18nc("@info Successfully encrypted <file> and <file> and saved them as <file>.",
+ "Successfully encrypted <filename>%1</filename> and <filename>%2</filename> and saved them as <filename>%3</filename>.",
inputs[0],
inputs[1],
output);
}
- return xi18ncp("@info Successfully encrypted <file> and <n> other(s) and saved it as <file>.",
- "Successfully encrypted <filename>%2</filename> and %1 other and saved it as <filename>%3</filename>.",
- "Successfully encrypted <filename>%2</filename> and %1 others and saved it as <filename>%3</filename>.",
+ return xi18ncp("@info Successfully encrypted <file> and <n> other(s) and saved them as <file>.",
+ "Successfully encrypted <filename>%2</filename> and %1 other and saved them as <filename>%3</filename>.",
+ "Successfully encrypted <filename>%2</filename> and %1 others and saved them as <filename>%3</filename>.",
inputs.size() - 1,
inputs[0],
output);