I just added a switch [UseEnvLocale] to the preference mechanism
with the intent of using the various posix environment variables
when set to override the various locale settings that I have in
the "_builtin_" preferences scheme. I have everything in place
(in all three version) to support this.
**BUT** what I don't have is the information on the various
environment variable convensions used (LANG, LC_ALL, LC_...)
What I need is for someone with experience with these (and/or
the official reference material) to finish one function for
me...for unix. We can then adapt it to Win32 and BeOS as
appropriate. [do those platforms even have this as a convension??]
In abi/src/wp/ap/unix/ap_UnixPrefs.cpp::overlayEnvironmentPrefs(),
I've #if 0'd a block of code where I need help. The task is to
figure out which env vars to inspect (and in which order) and/or
use the various system locale-routines and map the result onto
one of my sets of strings.
I've included the code to set the 3 variables controlling
the language. If you want to include one to set "RulerUnits"
to "cm" when appropriate that would be cool too.
If you have any questions, please let me know.
thanks
jeff