Comment 7 for bug 700213

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

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. :)