Commit 78b5d940 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher

Kwave I18N fix on the file properties UI

Summary:
I18N translation is not working for contextual help (popup & question mark helper) on the following screens under file properties:
- Compression tab on the compression parameters,
- Miscellaneous tab on the keywords management.

Test Plan:
- Validate if this patch is not having any side effect elsewhere and it is appropriate.
- Check if the English UI still fine.
- Check with another language, where the translation is completed e.g French, if the text is displayed correctly.

Reviewers: the

Reviewed By: the

Differential Revision: https://phabricator.kde.org/D7867
parent a3b9666b
......@@ -102,7 +102,7 @@ void Kwave::CompressionWidget::initInfo(QLabel *label, QWidget *widget,
Q_ASSERT(widget);
if (label) label->setText(i18n(info.name(property).toLatin1()) + _(":"));
describeWidget(widget, i18n(info.name(property).toLatin1()),
info.description(property));
i18n(info.description(property).toLatin1()));
}
//***************************************************************************
......
......@@ -549,7 +549,7 @@ void Kwave::FileInfoDialog::setupMiscellaneousTab()
lblKeywords->setText(i18n(m_info.name(Kwave::INF_KEYWORDS).toLatin1()));
lstKeywords->setWhatsThis(_("<b>") +
i18n(m_info.name(Kwave::INF_KEYWORDS).toLatin1()) +
_("</b><br>") + m_info.description(Kwave::INF_KEYWORDS));
_("</b><br>") + i18n(m_info.description(Kwave::INF_KEYWORDS).toLatin1()));
if (m_info.contains(Kwave::INF_KEYWORDS)) {
QString keywords = QVariant(m_info.get(Kwave::INF_KEYWORDS)).toString();
lstKeywords->setKeywords(keywords.split(_(";")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment