From 77c07d89faad6d765786dc21a0a797604858b89e Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 29 Jul 2022 23:50:28 +0200 Subject: [PATCH] Make all status messages in `TagEditorWidget` translatable --- gui/tageditorwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/tageditorwidget.cpp b/gui/tageditorwidget.cpp index 868565c..a426573 100644 --- a/gui/tageditorwidget.cpp +++ b/gui/tageditorwidget.cpp @@ -1352,7 +1352,7 @@ void TagEditorWidget::fileChangedOnDisk(const QString &path) void TagEditorWidget::closeFile() { if (isFileOperationOngoing()) { - emit statusMessage("Unable to close the file because the current process hasn't been finished yet."); + emit statusMessage(tr("Unable to close the file because the current process hasn't been finished yet.")); return; } @@ -1509,11 +1509,11 @@ void TagEditorWidget::addParsingNotificationLine(const QString &line) void TagEditorWidget::addTag(const function &createTag) { if (isFileOperationOngoing()) { - emit statusMessage("Unable to add a tag because the current process hasn't been finished yet."); + emit statusMessage(tr("Unable to add a tag because the current process hasn't been finished yet.")); return; } if (!m_fileInfo.isOpen()) { - emit statusMessage("Unable to add a tag because no file is opened."); + emit statusMessage(tr("Unable to add a tag because no file is opened.")); return; }