No translation when loading Monteverdi.app in MacOSX binary packages
Mantis Issue 1269, reported by gpasero, assigned to rkanavath, created: 2016-08-29
When I open Monteverdi using the "Monteverdi.app" launcher, the translation is not loaded (french platform). Howeverdi, when loading Monteverdi from a terminal (./bin/monteverdi), the translation is correctly loaded.
2016-09-02 10:26 - rashadkm: can you look at env on terminal? for me, i have
... LANG=en_US.UTF-8 ...
2016-09-02 10:53 - rashadkm: the issue comes from export LC_NUMERIC=C
monteverdi.app is simple a wrapper for running ./bin/monteverdi with some environment variables set here is the contents of script in Monteverdi.app which is written when running .run file.
#!/usr/bin/env bash
export LC_NUMERIC=C
export OTB_APPLICATION_PATH=/Users/otbval/OTB-5.6.1-Darwin64/lib/otb/applications
export GDAL_DATA=/Users/otbval/OTB-5.6.1-Darwin64/share/gdal
export GEOTIFF_CSV=/Users/otbval/OTB-5.6.1-Darwin64/share/epsg_csv
/Users/otbval/OTB-5.6.1-Darwin64/bin/monteverdi "$@"
If you simply copy-paste this to terminal. the language is english on a french system.
if you didn't set export LC_NUMERIC=C then you get a french locale depending on the system locale.
Wondering why LC_NUMERIC is affecting the whole language in Mac OSX.
Did they really changed it?
2016-09-07 16:59 - salbert: I added a small patch (507cee3c) which traces the QLocale::system().language() and .country() strings detected by Qt.
2016-10-25 14:36 - rashadkm: the issue is from mac osx taking LC_NUMERIC and setting that as language which is incorrect. could we force LC_NUMERIC=C only when reading/writing data?