LWN.net Logo

Getting the message from the kernel

Getting the message from the kernel

Posted Jun 21, 2007 6:49 UTC (Thu) by michaeljt (subscriber, #39183)
Parent article: Getting the message from the kernel

What about a gettext-style scheme, with the actual translation done in the userspace logger? That way, all that needs to be changed in the kernel is adding tr() macros around the text in question, probably with a context parameter (there could also be a global per-file context to save typing time).


(Log in to post comments)

Getting the message from the kernel

Posted Jun 24, 2007 21:20 UTC (Sun) by k8to (subscriber, #15413) [Link]

Sure, and I think that is what is being considered, but it won't work unless the "source" messages are stable enough to look them up. Thus numbers are discussed because there is a problem with attempting to enforce message text stability.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds