From 2fff683110385047bd20fb5f0b68a008b48320dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chusslove=20Illich=20=28=D0=A7=D0=B0=D1=81=D0=BB=D0=B0?= =?UTF-8?q?=D0=B2=20=D0=98=D0=BB=D0=B8=D1=9B=29?= Date: Mon, 22 Jun 2015 15:12:58 +0200 Subject: Support translation domain in 'kde' translation system In applications translations can be looked up in the globally set translation domain, but in libraries it is necessary to link every i18n call to the library's own translation domain. A new code generation option TranslationDomain= is added to enable this. It has effect only if TranslationSystem=kde is set. Added unit tests to check generated translation calls. CHANGELOG: New code generation option TranslationDomain=, for use with TranslationSystem=kde; normally needed in libraries. REVIEW: 123872 --- autotests/kconfig_compiler/test_translation_kde.kcfgc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 autotests/kconfig_compiler/test_translation_kde.kcfgc (limited to 'autotests/kconfig_compiler/test_translation_kde.kcfgc') diff --git a/autotests/kconfig_compiler/test_translation_kde.kcfgc b/autotests/kconfig_compiler/test_translation_kde.kcfgc new file mode 100644 index 00000000..402250c1 --- /dev/null +++ b/autotests/kconfig_compiler/test_translation_kde.kcfgc @@ -0,0 +1,6 @@ +# Code generation options for kconfig_compiler_kf5 +File=test_translation.kcfg +NameSpace=TestNameSpace +ClassName=TestTranslationKde +SetUserTexts=true +TranslationSystem=kde -- cgit v1.2.1