lkml.org 
[lkml]   [1997]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Jive -> Kernel (International Linux)
On Sat, 18 Jan 1997, Bryn Paul Arnold Jones wrote:

> Why not just make it simple, and have a config option that appends a
> '-D<lang>' to the cflags, and then have the printk's like this:
>
> printk(KERN_DEBUG,
> #ifdef LANG1
> "Message that %s said %d in lang 1\n"
> #else /* not in LANG1 */
> #ifdef LANG2
> "Message that %s said %d in lang 2\n"
> else /* not in LANG2 */
> "Message that %s said %d in english\n"
> #endif /* LANG2 */
> #endif /* LANG1 */
> , device->name, status);
>
> That way if the printk hasn't been translated to the perticular
> language yet, the english is used, it dosn't use memory for each
> additional language, and you also don't have all that messing
> with loading, and searching through, lists of translations.

That would be the worst thing, because it clutters up the source code
something chronic. We do _not_ want that to happen. Internationalisation
belongs somewhere else.

P.


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