summaryrefslogtreecommitdiffstats
path: root/src/linguist/shared/xliff.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-10-12 16:21:08 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-10-14 15:59:16 +0000
commit7e4f32ef0850c3a49a3dbf49e0ef76dd6036cc92 (patch)
treebf7c35068c535275743dfb03956241ce3f251b9c /src/linguist/shared/xliff.cpp
parent30bbaae2dd02197997c8b2953b1f2d257935fc82 (diff)
Linguist: Delay translations of the file format descriptions
The various init() functions are called before translations are loaded; thus the descriptions appeared untranslated. Use QT_TRANSLATE_NOOP to delay the translation. Task-number: QTBUG-56374 Change-Id: I9eb130f10a10e39011759c16a99ee4cf3a5dac99 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/linguist/shared/xliff.cpp')
-rw-r--r--src/linguist/shared/xliff.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/shared/xliff.cpp b/src/linguist/shared/xliff.cpp
index 1478cd42c..025b222b4 100644
--- a/src/linguist/shared/xliff.cpp
+++ b/src/linguist/shared/xliff.cpp
@@ -833,7 +833,7 @@ int initXLIFF()
{
Translator::FileFormat format;
format.extension = QLatin1String("xlf");
- format.description = FMT::tr("XLIFF localization files");
+ format.untranslatedDescription = QT_TRANSLATE_NOOP("FMT", "XLIFF localization files");
format.fileType = Translator::FileFormat::TranslationSource;
format.priority = 1;
format.loader = &loadXLIFF;