summaryrefslogtreecommitdiffstats
path: root/kverbos/kverbos/kverbos.kcfg
blob: 4da6bd36793edfe34a2141d1ea045226c2e333e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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");
    		TQString m_language = globalConf->readEntry("Language", "en");
    		//keep only the first 2 characters
		m_language = m_language.left(2);
		kdDebug()&lt;&lt; m_language &lt;&lt;endl;
		//later, scan for present languages
		if (m_language!="de")
			m_language = "en";
    	    </code>
	    <default code="true">m_language</default>
    </entry> 
    </group>
</kcfg>