diff options
Diffstat (limited to 'kverbos/kverbos/kverbos.kcfg')
-rw-r--r-- | kverbos/kverbos/kverbos.kcfg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kverbos/kverbos/kverbos.kcfg b/kverbos/kverbos/kverbos.kcfg new file mode 100644 index 00000000..c6ee326b --- /dev/null +++ b/kverbos/kverbos/kverbos.kcfg @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 + http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > + <kcfgfile name="kverbosrc"/> + <group name="Language"> + <entry name="UserLanguage" type="String"> + <label>The language selected by the user</label> + <code> + KConfigBase *globalConf = KGlobal::config(); + globalConf->setGroup("Locale"); + QString m_language = globalConf->readEntry("Language", "en"); + //keep only the first 2 characters + m_language = m_language.left(2); + kdDebug()<< m_language <<endl; + //later, scan for present languages + if (m_language!="de") + m_language = "en"; + </code> + <default code="true">m_language</default> + </entry> + </group> +</kcfg> |