Auch in Untermodulen suchen, nicht nur in einer Ebene.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 8 Jan 2008 10:50:32 +0000 (10:50 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 8 Jan 2008 10:50:32 +0000 (10:50 +0000)
locale/de/locales.pl

index 313dc9c..a183f1c 100755 (executable)
@@ -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?