[QGIS-Developer] Locale in settings

Richard Duivenvoorde rdmailings at duif.net
Sat Jan 22 04:36:08 PST 2022


On 1/22/22 12:28, Nicolas Godet wrote:
> 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.

Hi Nicola,

We decided this to minimize the number of translations: for example fr can be used in french speaking Canada AND in France.

The other way around, there are countries with >3 or 4 languages (Switzerland etc?). So the number of 'locales' would explode.

So focussing on one French translation (instead of 5(?) for every country) seems to us the best way to use our translator-resources?
ONLY if a languages is different enough in 2 countries, it is sometimes split up (portugese for Portugal and Brazil the most notable one)..

Your other question I dare not to answer. But is the locale/Userlocale param not defined by Qt itself (instead of QGIS?). Are you sure it should be possible to override it in that way?

Hope this helps

Regards,

Richard Duivenvoorde


More information about the QGIS-Developer mailing list