diff options
author | Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net> | 2015-06-22 15:12:58 +0200 |
---|---|---|
committer | Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net> | 2015-06-22 15:12:58 +0200 |
commit | 2fff683110385047bd20fb5f0b68a008b48320dd (patch) | |
tree | 36c47220c0c69c6096515284a4d5750014d6edc1 /autotests/kconfig_compiler/test_translation_kde.cpp.ref | |
parent | 173b33592739f9a671f34eb816499ef32fe65c06 (diff) | |
download | kconfig-2fff683110385047bd20fb5f0b68a008b48320dd.tar.gz kconfig-2fff683110385047bd20fb5f0b68a008b48320dd.tar.bz2 |
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
Diffstat (limited to 'autotests/kconfig_compiler/test_translation_kde.cpp.ref')
-rw-r--r-- | autotests/kconfig_compiler/test_translation_kde.cpp.ref | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_translation_kde.cpp.ref b/autotests/kconfig_compiler/test_translation_kde.cpp.ref new file mode 100644 index 00000000..5c11133d --- /dev/null +++ b/autotests/kconfig_compiler/test_translation_kde.cpp.ref @@ -0,0 +1,25 @@ +// This file is generated by kconfig_compiler_kf5 from test_translation.kcfg. +// All changes you do to this file will be lost. + +#include "test_translation_kde.h" + +#include <klocalizedstring.h> + +using namespace TestNameSpace; + +TestTranslationKde::TestTranslationKde( ) + : KConfigSkeleton( QLatin1String( "test_translation_rc" ) ) +{ + setCurrentGroup( QLatin1String( "General" ) ); + + KConfigSkeleton::ItemBool *itemAutoSave; + itemAutoSave = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Auto Save" ), mAutoSave, false ); + itemAutoSave->setLabel( i18n("Enable automatic saving of calendar") ); + itemAutoSave->setWhatsThis( i18nc("@info:whatsthis", "Enable automatic saving of calendars to have calendars saved automatically.") ); + addItem( itemAutoSave, QLatin1String( "AutoSave" ) ); +} + +TestTranslationKde::~TestTranslationKde() +{ +} + |