From c81f88d7d7009e6c3e77ce7e59f20f41bf9bba69 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 3 Feb 2020 13:41:35 +0100 Subject: [PATCH] TechDraw: [skip ci] user visible text should be translated --- src/Mod/TechDraw/Gui/TaskRichAnno.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Mod/TechDraw/Gui/TaskRichAnno.cpp b/src/Mod/TechDraw/Gui/TaskRichAnno.cpp index 3eeebcd57e..1f5eae0f55 100644 --- a/src/Mod/TechDraw/Gui/TaskRichAnno.cpp +++ b/src/Mod/TechDraw/Gui/TaskRichAnno.cpp @@ -206,10 +206,9 @@ void TaskRichAnno::setUiPrimary() ui->teAnnoText->setFontPointSize(mre.getDefFontSizeNum()); // set a placeholder text to inform the user // (QTextEdit has no placeholderText property in Qt4) - #if QT_VERSION >= 0x050200 - ui->teAnnoText->setPlaceholderText(QString::fromLatin1("Input the annotation text directly or start the rich text editor")); - #else - #endif +#if QT_VERSION >= 0x050200 + ui->teAnnoText->setPlaceholderText(tr("Input the annotation text directly or start the rich text editor")); +#endif } void TaskRichAnno::enableTextUi(bool b)