Subject: RE: Location vs Language
From: Henrik Berg (henrik@lansen.se)
Date: Fri Apr 14 2000 - 04:36:27 CDT
> >Today, an interesting issue was brought up by the following bug report
> >http://www.abisource.com/bugzilla/show_bug.cgi?id=809
> >
> >This bug reports that on a system with english as the language, but sweden
> >as the locale, AbiWord runs in swedish. I think this is an example of us
> >looking at the wrong component of the enviroment. for example, linux (at
> >least rh 6.1) has an enviroment variable for language, and one for locale.
> >AbiWord looks at the locale. If dealing with the language is workable on
> >all platforms, then this bug suggests that we should change.
>
> Justin/Henrik,
>
> What do you think of this? It sounds plausible to me, but since you guys
> originally coded the feature, I'll defer to your judgement.
>
> Paul
The code in ap_UnixPrefs.cpp talks about
// locale categories:
// LC_COLLATE - collation of strings (functions strcoll and strxfrm)
// LC_CTYPE - classification and conversion of characters
// LC_MONETARY - formatting monetary values
// LC_NUMERIC - formatting numeric values that are not monetary
// LC_TIME - formatting date and time values
// LC_MESSAGES - language of messages and look of affirmative/negative answer
If one is in Swedish and another in English, perhaps we should use LC_MESSAGES instead of LC_CTYPE as we do now.
--hb
This archive was generated by hypermail 2b25 : Fri Apr 14 2000 - 05:05:11 CDT