From: Moritz Bunkus Date: Tue, 8 Jan 2008 10:50:32 +0000 (+0000) Subject: Auch in Untermodulen suchen, nicht nur in einer Ebene. X-Git-Tag: release-2.6.0beta1~372 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2d4dcc228e3da6f3438cfa61dac9cc9aa1bb8a60;p=kivitendo-erp.git Auch in Untermodulen suchen, nicht nur in einer Ebene. --- diff --git a/locale/de/locales.pl b/locale/de/locales.pl index 313dc9c63..a183f1c9c 100755 --- a/locale/de/locales.pl +++ b/locale/de/locales.pl @@ -343,8 +343,10 @@ sub scanfile { # &scanfile("$bindir/$newfile", 0, $scanned_files); $cached{$file}{scan}{"$bindir/$newfile"} = 1; } elsif (/use\s+SL::(.*?);/) { + my $module = $1; + $module =~ s|::|/|g; # &scanfile("../../SL/${1}.pm", 1, $scanned_files); - $cached{$file}{scannosubs}{"../../SL/${1}.pm"} = 1; + $cached{$file}{scannosubs}{"../../SL/${module}.pm"} = 1; } # is this a template call?