[Qt-creator] Locale for plugin

Thomas Meyer public at meyer-thomas.com
Sat May 18 15:24:18 CEST 2013


Hi,
how can I get the locale for a plugin?
I need the decimal / grouping characters and date / time formats
(for MS Windows) in the chosen language.
I have tried something with 'Core::ICore::userInterfaceLanguage()' and
I found that the "qtc_locale" property is never set by
"English" or "C", because it is built-in. So, the
"qtc_locale" is empty.

Qt Creator version:

Qt Creator 2.7.0

Based on Qt 5.0.2 (32 bit)

Built on Apr 9 2013 at 09:32:03

 From revision b6257ef735


Thanks,
     Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130518/dec98226/attachment.html>


More information about the Qt-creator mailing list