Re: help request -- help finish UseEnvLocale.

Justin Bradford (justin@ukans.edu)
Mon, 20 Sep 1999 13:21:56 -0500 (CDT)


> I need a volunteer (for Unix and maybe one for win32 and beos)
> to help me finish a feature that I just added. This shouldn't
> take more than a few minutes (at most an hour).

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



This archive was generated by hypermail 1.03b2.