add xgettext:no-c-format not to confuse i18n()

This commit is contained in:
Lukáš Tinkl 2015-04-15 17:45:16 +02:00
parent a51283b62b
commit 0d6f5e22a4
2 changed files with 4 additions and 6 deletions

View file

@ -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);
}

View file

@ -48,11 +48,7 @@
</layout>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>%1 in the path will be replaced with the specific device name.</string>
</property>
</widget>
<widget class="QLabel" name="commentLabel"/>
</item>
</layout>
</widget>