[Qgis-developer] Locale in Python console

Chris Crook ccrook at linz.govt.nz
Wed Mar 3 15:05:30 EST 2010


Hi

I'm trying to determine the users Locale in the python console.  I've changed the quantum locale to "fr" and restarted, and as expected menus etc are French.  However this does not seem to be reflected in the python console window:

>>> from PyQt4.QtCore import QLocale
>>> q = QLocale()
>>> q.name()
PyQt4.QtCore.QString(u'en_NZ')
>>> 

Am I using the wrong function to determine the locale()?  Or is this a problem with the Python console.  And if so, will it also be a problem with plugins?

Thanks
Chris
______________________________________________________________________________________________________

This message contains information, which is confidential and may be subject to legal privilege. 
If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ.

Thank you.
______________________________________________________________________________________________________


More information about the Qgis-developer mailing list