]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add missing i18n call
authorMelanie Genz <melanie.terri.genz@gmail.com>
Sun, 13 May 2018 11:23:58 +0000 (13:23 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 13 May 2018 11:25:18 +0000 (13:25 +0200)
The string was already part of dolphin but was not exposed for
translation.

BUG: 394194

src/dolphinviewcontainer.cpp

index dc9b4538fcd13d56d5d3c4d6818f7f69c3d64e69..bf8ac8812f611a33039576b34b00078a13062827 100644 (file)
@@ -90,7 +90,7 @@ DolphinViewContainer::DolphinViewContainer(const QUrl& url, QWidget* parent) :
     KUrlComboBox* editor = m_urlNavigator->editor();
     editor->setCompletionMode(KCompletion::CompletionMode(settings->urlCompletionMode()));
 
-    m_emptyTrashButton = new QPushButton(QIcon::fromTheme(QStringLiteral("user-trash")), "&Empty Trash", this);
+    m_emptyTrashButton = new QPushButton(QIcon::fromTheme(QStringLiteral("user-trash")), i18nc("@action:button", "Empty Trash"), this);
     m_emptyTrashButton->setFlat(true);
     connect(m_emptyTrashButton, &QPushButton::clicked, this, [this]() { Trash::empty(this); });
     connect(&Trash::instance(), &Trash::emptinessChanged, m_emptyTrashButton, &QPushButton::setDisabled);