Re: localisation in system wide daemons
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, Jan 15, 2007 at 06:54:24PM +0100, Andrea Bolognani wrote:
> On Mon, 15 Jan 2007 18:38:29 +0100
> Wouter Verhelst <email@example.com> wrote:
> > At the very least, if we're going to translate log messages, then there
> > should be an easy switch to disable such translation for log messages
> > alone (while not for the rest of the system).
> If we want to provide our non-English-speaking users with localized log
> messages, wouldn't it be possible to create a program which translates the
> logs on the fly, based on the message catalog we should write anyway?
A=program that logs (cpu temp monitor for FAN #1, FAN #2,...)
B=data that is logged (current temp data set like [30,40,..])
C=formating "FAN #%d is %d"
D=current log file "FAN #1 is 30c\nFAN #2 is 40c\n..."
To translate D is very hard but that seems what most programs output.
So D needs to exists for backwards compatibility.
If B is also created as a 'data' log file, then a program can be created
to use localization base upon C to produce localized logs.
I suppose that a program can use a 'tee' to produce 2 logs, one standard
and the other localized.
A->B-C->D (the standard english one)
+->E (the localized one)
But then there is an issue about how to solve problems based upon log
messages. A localized message can help the user to understand the problem,
but then if used to search say google, should they use the standard
english one or the localized one? 100% of google results will find the
english one currently. If more than one languages is used, the ability
to find results is signfigantly reduced.
[disregard if not useful, flames not appreciated]
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal | 'under construction' |
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keysever: subkeys.pgp.net | my NPO: cfsg.org |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----