summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2017-07-26 15:44:33 +0200
committerAndre Heinecke <[email protected]>2017-07-26 15:44:33 +0200
commit55a9e9ae454442f4de0bca9e8af3731f5f0fa018 (patch)
treeb1e348d3f0ea089f340a89e45e99b37c9df4ed71
parentc0bd73a734d7111092e91f2df025a1c6566e6233 (diff)
Some wording fixes to profiles
-rw-r--r--src/conf/cryptooperationsconfigwidget.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/conf/cryptooperationsconfigwidget.cpp b/src/conf/cryptooperationsconfigwidget.cpp
index 2d9a797..e2b1e7f 100644
--- a/src/conf/cryptooperationsconfigwidget.cpp
+++ b/src/conf/cryptooperationsconfigwidget.cpp
@@ -117,7 +117,7 @@ void CryptoOperationsConfigWidget::applyProfile(const QString &profile)
{
qCDebug(KLEOPATRA_LOG) << "Applying profile " << profile;
- if (profile == "default") {
+ if (profile == i18n("default")) {
if (KMessageBox::warningYesNo(
this,
i18n("This means that every configuration option of the GnuPG System will be reset to its default."),
@@ -141,7 +141,7 @@ void CryptoOperationsConfigWidget::applyProfile(const QString &profile)
gpgconf->setArguments(QStringList() << QStringLiteral("--apply-profile") << path.toLocal8Bit());
connect(gpgconf, static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished),
- this, [this, gpgconf] () {
+ this, [this, gpgconf, profile] () {
if (gpgconf->exitStatus() != QProcess::NormalExit) {
KMessageBox::error(this, QStringLiteral("<pre>%1</pre>").arg(QString::fromLocal8Bit(gpgconf->readAll())));
delete gpgconf;
@@ -149,8 +149,9 @@ void CryptoOperationsConfigWidget::applyProfile(const QString &profile)
}
delete gpgconf;
KMessageBox::information(this,
- i18nc("@info", "The configuration profile is now applied."),
- i18n("Configuration profile applied"));
+ i18nc("%1 is the name of the profile",
+ "The configuration profile \"%1\" was applied.", profile),
+ i18n("GnuPG Profile - Kleopatra"));
auto config = QGpgME::cryptoConfig();
if (config) {
config->clear();
@@ -196,12 +197,12 @@ void CryptoOperationsConfigWidget::setupProfileGui(QBoxLayout *layout)
// We don't translate "default" here because the other profile names are
// also not translated as they are taken directly from file.
- combo->addItem(QStringLiteral("default"));
+ combo->addItem(i18n("default"));
for (const auto &profile: profiles) {
combo->addItem(profile.baseName());
}
- auto btn = new QPushButton("Apply");
+ auto btn = new QPushButton(i18n("Apply"));
profLayout->addWidget(profLabel);
profLayout->addWidget(combo);