Hi Rolf, No, there is no need to export etc. if you just run a few commands like that; the temporary LANGUAGE value is inherited by processes started from the same terminal process. I take for granted that you realize that mytest.po was created before I run the commands shown in the bug description.
I just run this (somewhat cleaner) code in Oneiric, and this time the creation of mytest.po is included: $ echo 'msgid "myTestWord" > msgstr "meinTestWort"' > mytest.po $ sudo mkdir -p /usr/share/locale/de_DE/LC_MESSAGES $ sudo msgfmt mytest.po -o /usr/share/locale/de_DE/LC_MESSAGES/mytest.mo $ LANGUAGE=de_DE $ echo $( gettext -d mytest myTestWord ) meinTestWort $ LANGUAGE=de $ echo $( gettext -d mytest myTestWord ) myTestWord $ So the behavior is still there, I'd say. If you can't reproduce that either, please feel free to post one of your test cases. Then I'll try to figure out what the cause may be. I think it's quite obvious that the docs don't reflect the actual behavior, and I suggested a new wording at http://lists.gnu.org/archive/html/bug-gnu-utils/2011-03/msg00017.html. It would be good if you could help convincing upstream of it. :) ** Changed in: gettext (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700213 Title: Translations under a language's main dialect are not found if LANGUAGE contains only the language code To manage notifications about this bug go to: https://bugs.launchpad.net/gettext/+bug/700213/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
