Re: [GIT PULL/RESEND] kernel message catalog patches

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Monday, October 27, 2008 - 9:03 am

> And as for the actual explanations: either they need to be totally outside 

You really don't want 32 languages in mixed left/right rendering with
multiple fonts in your kernel source. At least not with most editing and
viewing tools....

User space uses message catalogues and has tools for maintaining them
which make using any other format somewhat dumb. They extract strings
using _("hello") type wrappers to identify what are translatable strings
so if the kernel source has _() macros all the tooling just works and can
live outside and way from the kernel.

Just needs _() to do the right thing compiled into the kernel and a
printk formatting to do the right thing with the result. In truth you
don't even need a hash in printk just the ability to make it produce
either

	"Hello my name is 'fred3'"

and something like

	"Hello my name is '%s%d'\0Fred\0\000\000\000\003"

The kernel contains the English which should be a pretty passable hash.

Alan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] kernel message catalog patches, Martin Schwidefsky, (Thu Oct 16, 7:50 am)
Re: [GIT PULL] kernel message catalog patches, Martin Schwidefsky, (Fri Oct 17, 12:59 am)
[GIT PULL/RESEND] kernel message catalog patches, Heiko Carstens, (Tue Oct 21, 2:21 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Thu Oct 23, 8:35 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Heiko Carstens, (Thu Oct 23, 2:04 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Thu Oct 23, 2:37 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Heiko Carstens, (Fri Oct 24, 8:50 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Sun Oct 26, 12:12 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Sun Oct 26, 12:26 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Mon Oct 27, 3:01 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Mon Oct 27, 8:05 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Mon Oct 27, 8:52 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Alan Cox, (Mon Oct 27, 9:03 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Mon Oct 27, 9:10 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Theodore Tso, (Mon Oct 27, 9:19 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Randy Dunlap, (Mon Oct 27, 9:27 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Theodore Tso, (Mon Oct 27, 12:36 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Tue Oct 28, 1:25 am)