<div>Hi all !</div>
<div>as I'm new in PyQt, I cannot understand which way program become localized. My first program does not work quite correctly and I'm not sure why.</div>
<div> </div>
<div>Maybe first queston is about this :</div>
<div> </div>
<div>Simple program</div>
<div>from PyKDE4 import kdecore<br /><br /></div>
<div> </div>
<div>def main():<br /> kde_locale = kdecore.KGlobal.locale()<br /> print kde_locale.language()</div>
<div> </div>
<div>### return "en_US"<br /><br /></div>
<div> print locale.getlocale()</div>
<div> </div>
<div>### return "('cs_CZ', 'UTF-8')"</div>
<div>---------------------------------------</div>
<div> </div>
<div> </div>
<div>but my enviroment is cs_CZ.</div>
<div> </div>
<div>using python 2.7.7, qt 4.8.5, openSuSE 13.1</div>
<div> </div>
<div>how can I achieve to pyqt will know my locale setting ? What i must to do ?</div>
<div> </div>
<div>my amateur attempts not work :</div>
<div> </div>
<div>kde_locale.setLanguage( "cs" ) - does not effect</div>
<div> </div>
<div>kde_locale.setLanguage( QString("cs") ) - has effect - sigsegv</div>
<div> </div>
<div>thanks for any help</div>
<div> </div>
<div> </div>