lkml.org 
[lkml]   [1997]   [Jan]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 16 Jan 1997 13:15:06 +0000 (GMT)
FromMike Bristow <>
SubjectRe: Jive -> Kernel (International Linux)

On Wed, 15 Jan 1997, Adam D. Bradley wrote:
[snip - international kernel messages are good]
> This isn't a bad idea, really.  We could do it as a compile thing, or 
> maybe even at run-time with modules...(hmm)...
> 
> For compiled-in language support:
> 
> In each directory, create a file "printk_strings.h" like this:
> 
> #ifndef LINUX_LANGUAGE
> #define LINUX_LANGUAGE_ENGLISH
> #endif
> #ifdef LINUX_LANGUAGE_ENGLISH
> #define FD_DISK_CHANGE_DETECTED "Disk Change Detected"
> #define FD_DISK_SCREWED "Your Disk is Screwed"
> /* etc etc etc */
> #elifdef LINUX_LANGUAGE_JIVE
> #define FD_DISK_CHANGE_DETECTED "Yo dis be diff'd"
> #define FD_DISK_SCREWED "Yo disk be like yo mama!"
> /* etc etc etc */
> #endif
> 

But that would require that all possible kernel messages are available in  
every language.  It would probably be better to have a automagically
created message database that could default a given message to English if
it's not available in Timbucktooise.

IE a program that is run at compile time that would create prink_strings.h
like this:

#define FD_DISK_CHANGE_DETECTED "Yo dis be diff'd"
#define FD_DISK_SCREWED "Your disk is screwed" /* noone has translated
that message yet */
> To get more clever, we could do it at run-time.  Have a universal "text 
> constants heap" somewhere in the kernel/ directory, say a new file 
> called "language.c":
> 
[snip details]

I don't know how much kernel bloat that'd cause, but I think that
defaulting to English in the absence of a translation for a given string
might be harder to do well.

--
Mike Bristow: 			mike@shivan.demon.co.uk   
The best UK M:tG tourney page: 	http://www.shivan.demon.co.uk/tourney/ 
My public PGP key:		http://www.shivan.demon.co.uk/pgp/pgp.txt




\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008