Re: help request -- help finish UseEnvLocale.

Jeff Hostetler (jeff@abisource.com)
Mon, 20 Sep 1999 17:56:05 -0500


Justin Bradford wrote:
> 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.

thanks! i'll have a look at it.

> > 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.

good. i enabled it in my build and it seemed to work fine, so
i'm going to enable it and check it in.

could someone in europe (and who routinely uses the LANG and
LC_ vars) give it a try ?? [if you've hand-edited you AbiWord.Profile,
it would probably be best to delete it and let AbiWord create a fresh
one for you.]

> > 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.

that's fine. we can get it later.
BTW, do the POSIX values give any indication
of which unit of measure is preferred ??

jeff



This archive was generated by hypermail 1.03b2.