I just committed an updated file for you. I've left it #if 0'd out, as I
wasn't able to test it well. Also, I'm not sure what happens when set
the language to one not currently supported in Abiword.
> 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 just use setlocale to get the user's prefs (it takes care of checking
the various enviroment variables, resolving aliases, etc), and extract the
language ID, which is very similar to the Abiword ID.
> 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.
Didn't get to that. I have to run to a lecture now.
Justin