Messages in this thread | | | From | Bernd Petrovitsch <> | Subject | Re: kernel support for non-english user messages | Date | Thu, 10 Apr 2003 23:08:17 +0200 |
| |
Chuck Ebbert <76306.1226@compuserve.com> wrote: >>> How about changing the way printk works, so that instead of >>> combining the format string, it just "prints" its args: >>> >>> printk("%s: name %p is %d\n", name, ptr, val); >>> >>> results in the following in the kernel buffer: >>> >>> "%s: name %p is %d\n", "stringval", 0x4790243, 44 [...] > The real problem I see is that this approach doesn't make it any >easier to translate the messages.
If you habe the above, you could use/copy/reuse gettext() since the format string is used a key/hash/unique id for the translation.
Bernd -- Bernd Petrovitsch Email : bernd@gams.at g.a.m.s gmbh Fax : +43 1 205255-900 Prinz-Eugen-Straße 8 A-1040 Vienna/Austria/Europe LUGA : http://www.luga.at
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |