From 2d4dcc228e3da6f3438cfa61dac9cc9aa1bb8a60 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 8 Jan 2008 10:50:32 +0000 Subject: [PATCH] Auch in Untermodulen suchen, nicht nur in einer Ebene. --- locale/de/locales.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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? -- 2.20.1