[lkml]   [1997]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Jive -> Kernel (International Linux)

There are two options here - either allow for dynamic changing of
language, which presents a few problems, not of which are insurmountable,
or compile the new language directly into the kernel. Personally, I'd
prefer the latter option, as it will be simpler to implement and maintain.

All source files with text constants in a particular section can include a
header file, something along the following lines...

#include <linux/config.h>

#define IDE_PANIC_MSG_1 "Yo disc be like yo mama!"
/* ... */

/* ... */

/* followed by */
#ifndef IDE_PANIC_MSG_1
#define IDE_PANIC_MSG_1 "Disc shagged"
#ifndef IDE_PANIC_MSG_2
#define IDE_PANIC_MSG_2 "Disc drive on fire"


So the strings are kept with the kernel source for the part they're
relevant to, not in a single global text file, and there's a backup
of the English string in case of any string not given a definition in the
correct language.

No kernel bloat (at least only in the source), and not as difficult to
set up _and maintain_ as some of the alternatives.

---- ------------------------------------------------ ----
David Woodhouse, WWW:
Robinson College, Email:
Cambridge, Tel: +44 (0) 976 658355
CB3 9AN, (n)talk:
England. PGP KEY: finger
---- ------------------------------------------------ ----

 \ /
  Last update: 2005-03-22 13:38    [W:0.034 / U:19.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site