From 7e4f32ef0850c3a49a3dbf49e0ef76dd6036cc92 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 12 Oct 2016 16:21:08 +0200 Subject: 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 --- src/linguist/shared/xliff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/linguist/shared/xliff.cpp') 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; -- cgit v1.2.3