|
Posted by Helmut Lichtenberg on May 20, 2005, 12:26 pm
Please log in for more thread options
--nextPart1148775.NeGKNQi96n
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
Hi,
I want to import messages from a .mo file during runtime. I appended three
small example files (mytest.pl, en.mo, en_local.mo) to show the problem.
Here is the output of mytest.pl:
#> ./mytest.pl
***** before import
Lexicon: $VAR1 = {
'_AUTO' => 1,
'BBB' => 'BBB in base'
};
base: BBB in base
local: LLL
Lexicon: $VAR1 = {
'LLL' => \'LLL',
'_AUTO' => 1,
'BBB' => \'BBB in base'
};
***** after import
Lexicon: $VAR1 = {
'_AUTO' => 1,
'LLL' => 'LLL in local',
'BBB' => \'BBB in base'
};
base: BBB in base
local: LLL
After the first printing, the entry 'LLL' is autocreated in the Lexicon.
This entry is overwritten after importing en_local.mo with the correct 'LLL
in local', but why is the printout still LLL?
I tested this with Perl v5.8.3 and v5.8.4,
Locale::Maketext::Lexicon 0.38 and 0.49 on Linux systems.
TIA
Helmut
--
-------------------------------------------------------------------------
Institut für Tierzucht 31535 Neustadt Germany
-------------------------------------------------------------------------
--nextPart1148775.NeGKNQi96n
Content-Type: text/plain; name="en.mo"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="en.mo"
msgid "BBB"
msgstr "BBB in base"
--nextPart1148775.NeGKNQi96n
Content-Type: text/plain; name="en_local.mo"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename="en_local.mo"
msgid "LLL"
msgstr "LLL in local"
--nextPart1148775.NeGKNQi96n
Content-Type: application/x-perl; name="mytest.pl"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="mytest.pl"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKcGFja2FnZSBIZWxsbzo6TDEwTjsKdXNlIHN0cmljdDsKdXNl
IHdhcm5pbmdzOwoKdXNlIGJhc2UgJ0xvY2FsZTo6TWFrZXRleHQnOwp1c2UgTG9jYWxlOjpNYWtl
dGV4dDo6TGV4aWN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sKCkhlbGxvOjpMMTBOLT5sMTBuX2ltcG9ydCgkbGFuZ3VhZ2UpOwpw
cmludCAiKioqKiogYWZ0ZXIgaW1wb3J0XG4iOwpwcmludCAiTGV4aWNvbjogIiwgRHVtcGVyKFwl
SGVsbG86OkwxME46OmVuOjpMZXhpY29uKTsKcHJpbnQgJyAgIGJhc2U6ICcsIF9fKCdCQkInKSwg
IlxuIjsKcHJpbnQgJyAgIGxvY2FsOiAnLCBfXygnTExMJyksICJcbiI7Cgo=
--nextPart1148775.NeGKNQi96n--
|
| Similar Threads | Posted | | potential changes to Locale-PO | February 26, 2006, 9:45 am |
| Locale::PO seeks new maintainer | June 12, 2007, 10:29 am |
| Locale::gettext is first distributed in which Perl version? | April 22, 2006, 7:36 am |
| Problems using GD.pm | January 8, 2005, 8:05 pm |
| Problems when using Net::MSN 1.022 | May 4, 2005, 1:20 pm |
| LWP problems | July 11, 2005, 3:50 pm |
| PPM Problems on Win.XP | November 5, 2007, 4:26 pm |
| LWP Problems (Authentication?) | September 5, 2004, 7:12 am |
| Net::FTP mdtm problems | December 14, 2004, 11:00 pm |
| Problems with Parse::Lex | May 5, 2005, 8:22 pm |
|