Unix Programming - Quick L10N question

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2005 > Quick L10N question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Quick L10N question
Rich Teer

2005-07-26, 7:59 am

Hi all,

I have a quick L10N question: even when user messages are printed in
a localized manner, is it usual to syslog() messages also localized,
or does convention dictate that the latter are printed in English only?

TIA,

--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
Gianni Mariani

2005-07-26, 7:59 am

Rich Teer wrote:
> Hi all,
>
> I have a quick L10N question: even when user messages are printed in
> a localized manner, is it usual to syslog() messages also localized,
> or does convention dictate that the latter are printed in English only?


Most apps with use localized messages for both, however, this may not be
the right thing to do depending on application. If you have a
multilanguage computer (users of multiple locales) you may want to
define the locate of the computer (syslog) and the locale of the user as
2 separate things.

>
> TIA,
>

Rich Teer

2005-07-26, 5:57 pm

On Mon, 25 Jul 2005, Gianni Mariani wrote:

> Most apps with use localized messages for both, however, this may not be
> the right thing to do depending on application. If you have a


Right.

> multilanguage computer (users of multiple locales) you may want to
> define the locate of the computer (syslog) and the locale of the user as
> 2 separate things.


I thought of that this morning. But is there an easy way to know the
"system's locale"? The only way I can think of is to look at the LANG
and LC_MESSAGES variables in /etc/default/init (on Solaris at least,
which is my target platform).

--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
Laurent Blume

2005-07-26, 5:57 pm

Rich Teer wrote:
> I thought of that this morning. But is there an easy way to know the
> "system's locale"? The only way I can think of is to look at the LANG
> and LC_MESSAGES variables in /etc/default/init (on Solaris at least,
> which is my target platform).


This is the right way to do it; IMO.
From my experience, I'm always using fr_FR.UTF-8 for myself, but I leave the
system's to C (ie, no LANG or LC_* in /etc/default/init).
Note that dtlogin uses either the system's or if different, /etc/dt/Xconfig, and
gdm yet something else, not sure yet exactly what, and they might be considered
system, too.

Laurent
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com