lkml.org 
[lkml]   [1997]   [Jan]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 18 Jan 1997 13:34:30 +0000 (GMT)
FromPhilip Blundell <>
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 12:38    [W:0.140 / U:0.030 seconds]
©2003-2008 Jasper Spaans