Dear devs,
Before raising a bug (if it's really a bug), I was wondering why the
`userLocale` in QgsSettings is stored using a short string, eg. `fr` for french
instead of `fr_FR` ?
`globaleLocale` is OK with `fr_FR` for french.
Seconde question
I tried, using a .ini file with QGIS_GLOBAL_SETTINGS_FILE env var, to force
locale settings when creating a new profile.
Plugins complains because the setting `userLocale` is not defined.
.ini file :
[locale]
userLocale=fr
overrideFlag=true
globalLocale=fr_FR
showGroupSeparator=false
When QGIS starts, Python error:
QSettings().value("locale/userLocale")[0:2]
NoneType is not scriptable.
And in Python console, if I execute the above command, the return is empty but
in settings, the setting `locale/userLocale` is set to `fr`.
Regards,
Nicolas
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer