Translations under a language's main dialect are not found if LANGUAGE contains only the language code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gettext |
New
|
Undecided
|
|||
gettext (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gettext
gettext does not behave in accordance with this para in section 2.3.3
of the gettext docs:
"In the `LANGUAGE' environment variable, but not in the other
environment variables, `LL_CC' combinations can be abbreviated as `LL'
to denote the language's main dialect. For example, `de' is equivalent
to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
(Portuguese as spoken in Portugal) in this context."
This is how I reached that conclusion:
$ cat mytest.po
msgid "myTestWord\n"
msgstr "meinTestWort\n"
$ sudo msgfmt mytest.po -o /usr/share/
$ LANGUAGE=de_DE
$ gettext -d mytest myTestWord$'\n'
meinTestWort
$ LANGUAGE=de
$ gettext -d mytest myTestWord$'\n'
myTestWord
$
I would have expected the German translation also when LANGUAGE was set
to just 'de'.
Ubuntu release: Maverick 10.10
gettext version: 0.18.1.1-1ubuntu2
A similar bug report to GNU is archived at http:// lists.gnu. org/archive/ html/bug- gnu-utils/ 2011-01/ msg00010. html