User: Password:
|
|
Subscribe / Log in / New account

A kernel message catalog

A kernel message catalog

Posted Aug 9, 2008 10:07 UTC (Sat) by dark (guest, #8483)
In reply to: A kernel message catalog by erwbgy
Parent article: A kernel message catalog

Embedding the text in the source code needn't make it harder to translate -- gettext solves exactly this problem and I'm sure the technique could be adapted for the kernel. The drawback is that if the kernel outputs translated messages directly then the English-language version is not available when submitting bug reports or asking kernel developers for help. For that, a unique identifier would help.


(Log in to post comments)

A kernel message catalog

Posted Aug 9, 2008 16:31 UTC (Sat) by giraffedata (subscriber, #1954) [Link]

The drawback is that if the kernel outputs translated messages directly then the English-language version is not available when submitting bug reports or asking kernel developers for help. For that, a unique identifier would help.

Note that the current proposal works the other way around: the kernel produces English and a unique identifier, then the user looks up the identifier separately and finds a more complete explanation possibly in another language. And in mine, the difference is that the English part is longer and many users don't need the additional step.

"harder to translate" might mean harder for someone to generate the other-language message repository, as compared to where the English version is in a separate file of message text. But in the current proposal, I believe the full English text is in the source file anyway; it's just in comments instead of in the actual message. A program extracts this text from throughout the kernel and a translator uses that extract to generate a message repository.


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