aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyril Rossi <cyril.rossi@enioka.com>2021-07-07 15:05:44 +0200
committerCyril Rossi <cyril.rossi@enioka.com>2021-07-12 15:11:19 +0200
commit530f9490749505221d137343f1bd556821b820da (patch)
tree1fe17f6710129f5b133862bf97098f16a4365335 /src
parentbd53bb3eb4d88c1b9919a3073df8914de01acf1a (diff)
downloadkconfig-530f9490749505221d137343f1bd556821b820da.tar.gz
kconfig-530f9490749505221d137343f1bd556821b820da.tar.bz2
Update kconfig_compiler documentation with translation options
Diffstat (limited to 'src')
-rw-r--r--src/kconfig_compiler/README.dox29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/kconfig_compiler/README.dox b/src/kconfig_compiler/README.dox
index 89b29520..671e9c5b 100644
--- a/src/kconfig_compiler/README.dox
+++ b/src/kconfig_compiler/README.dox
@@ -272,6 +272,19 @@ The following options are read from the kcfgc file:
settings discovery and handle the deallocation.
Note this parameter is incompatible with <b>Singleton</b> set to true.
</dd>
+
+ <dt>TranslationSystem=\<string\></dt>
+ <dd>
+ Default: qt \n
+ Set the translation system for label, tooltip and whatsthis text in generated KConfigSkeleton.
+ Set the value to <b>kde</b> to use the KDE Framework translation system, see KI18n.
+ </dd>
+
+ <dt>TranslationDomain=\<value\></dt>
+ <dd>
+ When <b>TranslationSystem=kde</b> is set, allow to specify the domain in which to look for translations.
+ </dd>
+
</dl>
@@ -512,4 +525,20 @@ for a signal, the signal name will suffice.
You can also use the generic configChanged() signal from KConfigSkeleton to notify your application
about configuration changes.
+
+\subsection translation_context Translation context
+
+In the kcfg file you can specify the translation's context for \<tooltip\>, \<whatsthis\> and \<label\> element for an entry.
+
+\code{.xml}
+<entry type="Bool" key="Auto Save">
+ <label>Enable automatic saving of calendar</label>
+ <whatsthis context="@info:whatsthis">Enable automatic saving of calendars to have calendars saved automatically.</whatsthis>
+ <default>false</default>
+</entry>
+\endcode
+
+For more information on translation context and how to write good translatable text,
+please refer to https://api.kde.org/frameworks/ki18n/html/prg_guide.html
+
*/