diff options
| author | Antonio Rojas <[email protected]> | 2018-04-12 22:49:05 +0200 |
|---|---|---|
| committer | Antonio Rojas <[email protected]> | 2018-04-12 22:49:05 +0200 |
| commit | ed5102a5fd7ad3fa569f7e0af66171c0b19c2a3b (patch) | |
| tree | 06be340e8b1e051b1686f5d591ece2e02fe036bd | |
| parent | 9b36f00162215a86af97546595060676a075fc84 (diff) | |
Fix untranslated places panel entries
Load the places panel entries strings from the kio5 catalog, where they live now
BUG: 392822
Differential Revision: https://phabricator.kde.org/D12119
| -rw-r--r-- | src/panels/places/placesitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp index ff81e8e63..ee168e4a3 100644 --- a/src/panels/places/placesitem.cpp +++ b/src/panels/places/placesitem.cpp @@ -139,7 +139,7 @@ void PlacesItem::setBookmark(const KBookmark& bookmark) const QString udi = bookmark.metaDataItem(QStringLiteral("UDI")); if (udi.isEmpty()) { setIcon(bookmark.icon()); - setText(i18nc("KFile System Bookmarks", bookmark.text().toUtf8().constData())); + setText(i18ndc("kio5", "KFile System Bookmarks", bookmark.text().toUtf8().constData())); setUrl(bookmark.url()); setSystemItem(bookmark.metaDataItem(QStringLiteral("isSystemItem")) == QLatin1String("true")); } else { @@ -245,7 +245,7 @@ void PlacesItem::updateBookmarkForRole(const QByteArray& role) // // NOTE: It is important to use "KFile System Bookmarks" as context // (see PlacesItemModel::createSystemBookmarks()). - if (text() != i18nc("KFile System Bookmarks", m_bookmark.text().toUtf8().data())) { + if (text() != i18ndc("kio5", "KFile System Bookmarks", m_bookmark.text().toUtf8().data())) { m_bookmark.setFullText(text()); } } else if (role == "url") { |
