Gettext support merged
Hi,
I merged gettext support into trunk, with a proof-of-concept Catalan translation of a single string.
Note to translators: Code needs to be prepared before we're ready to accept new translations. We'll need your help, but not yet! :-)
Note to developers: Feel free to add gettext support to new GRUB utilities. It is desireable for everything (or almost everything) under util/. Existing C and shell gettextizations could be useful as examples:
$ bzr diff -r 1840..1841 util/i386/pc/grub-mkimage.c \
util/grub.d/10_kfreebsd.inAs a special exception (in order to avoid tedious, repetitive work), wrapping strings with _() function can be summarized with a single entry per file when documenting in ChangeLog, e.g.:
* util/something.c: Include `<grub/i18n.h>'. (main): Gettext initialization.
Wrap translatable strings with _().
As for files outside util/, these shouldn't be translated yet, even if they're used by some of GRUB utilities. When Carles Pina's gettext-in-grub work is complete, we can discuss about which ones are important enough for the wrap overhead to pay off (at the least, this would include the ones shown in main menu screen).
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Quoted 7 lines · Robert Millan
Note to developers: Feel free to add gettext support to new GRUB utilities. It is desireable for everything (or almost everything) under util/. Existing C and shell gettextizations could be useful as examples:
$ bzr diff -r 1840..1841 util/i386/pc/grub-mkimage.c \ util/grub.d/10_kfreebsd.in
I forgot to mention: the gettext manual has some useful information for determining which strings are translatable or need some adjustment in order to be translator-friendly:
http://www.gnu.org/software/gettext/manual/gettext.html#Preparing-Strings
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Handling of translations
In reply to Robert MillanQuoted 2 lines · Robert Millan
Note to translators: Code needs to be prepared before we're ready to accept new translations. We'll need your help, but not yet! :-)
We need to decide what to do about translators though. The GNU way is to delegate this to the Translation Project. This helps having translations disclaimed, and the GRUB release manager only needs to sync the po tree with the latest files from the TP prior to a release, or periodically as they find convenient.
See http://translationproject.org/html/maintainers.html for some interesting info for upstream authors.
Signature · 3 lines
Jordi Mallach Pérez -- Debian developer http://www.debian.org/ [email protected] [email protected] http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/
Re: Handling of translations
Quoted 6 lines · Jordi Mallach
Quoted 2 lines · Robert Millan
Note to translators: Code needs to be prepared before we're ready to accept new translations. We'll need your help, but not yet! :-)
We need to decide what to do about translators though. The GNU way is to delegate this to the Translation Project.
Definitely. That's a lot less work for us! :-)
Quoted 2 lines
See http://translationproject.org/html/maintainers.html for some interesting info for upstream authors.
Thanks. I just sent a request with the new POT file.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."