From 0d6f5e22a4369a8e5211d89969e40eb4c913be66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Wed, 15 Apr 2015 17:45:16 +0200 Subject: [PATCH] add xgettext:no-c-format not to confuse i18n() --- plugins/share/share_config.cpp | 4 +++- plugins/share/share_config.ui | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/share/share_config.cpp b/plugins/share/share_config.cpp index 818748b69..84a9b1738 100644 --- a/plugins/share/share_config.cpp +++ b/plugins/share/share_config.cpp @@ -33,6 +33,8 @@ ShareConfig::ShareConfig(QWidget *parent, const QVariantList& args) , m_ui(new Ui::ShareConfigUi()) { m_ui->setupUi(this); + // xgettext:no-c-format + m_ui->commentLabel->setText(i18n("%1 in the path will be replaced with the specific device name.")); connect(m_ui->kurlrequester, SIGNAL(textChanged(QString)), this, SLOT(changed())); } @@ -55,7 +57,7 @@ void ShareConfig::load() { KCModule::load(); - m_ui->kurlrequester->setUrl(config()->get("incoming_path", QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)))); + m_ui->kurlrequester->setUrl(QUrl::fromLocalFile(config()->get("incoming_path", QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)))); Q_EMIT changed(false); } diff --git a/plugins/share/share_config.ui b/plugins/share/share_config.ui index ef919f953..f86aab34d 100644 --- a/plugins/share/share_config.ui +++ b/plugins/share/share_config.ui @@ -48,11 +48,7 @@ - - - %1 in the path will be replaced with the specific device name. - - +