Subject: | relative paths to lang files fail |
In Short:
Version 0.49 added an eval around the following:
$class->lexicon_get($src, scalar caller, $lang);
This is great except that eval adds another frame to the call stack. It needs to be changed to the following:
$class->lexicon_get($src, scalar caller(1), $lang);
This problem causes relative paths to language files to not work. Rather than searching in My/Package/$path (for a module called My::Package) it searches in Locale/Maketext/Lexicon/$path.
/lib/Locale/Maketext/Lexicon.pm
--- Locale-Maketext-Lexicon-0.49/lib/Locale/Maketext/Lexicon.pm Wed Apr 13 11:05:00 2005
+++ Locale-Maketext-Lexicon-0.49-new/lib/Locale/Maketext/Lexicon.pm Mon Oct 10 09:58:19 2005
@@ -275,7 +275,7 @@
local $@;
my @content = eval {
- $class->lexicon_get($src, scalar caller, $lang);
+ $class->lexicon_get($src, scalar caller(1), $lang);
};
next if $@ and $@ eq 'next';
die $@ if $@;