From: Christian Biesinger (cbiesinger@web.de)
Date: Tue Apr 30 2002 - 03:34:43 EDT
On Tue, Apr 30, 2002 at 08:20:57AM +0100, Andrew Dunbar wrote:
> --- Christian Biesinger <cbiesinger@web.de> wrote: >
> > In general, it should be possible to do
> > setlocale(LC_MESSAGES,
> > "your_locale"), unless the approach above is used.
>
> The problem is the OS doesn't necessarily support
> the locale as a whole. I'm not sure if this will be
> a problem or not.
This might indeed be a problem... I don't know what setlocale does if it
doesn't know the locale.
> For example, our current system
> makes GUI strings possible in Welsh but if we do a
> setlocale() call, what will happen for dates,
> collation, etc?
That depends on how you call setlocale(); if you do it as in my example,
only messages/strings will be changed. That's what the LC_MESSAGES means.
From the manpage:
LC_MESSAGES
for localizable natural-language messages.
-- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin
This archive was generated by hypermail 2.1.4 : Tue Apr 30 2002 - 03:37:09 EDT