From 6fd511eec3022e19c74a0658d21e1796795d0ad2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 4 Nov 2014 10:57:47 +0100 Subject: [PATCH] locales.pl: nur auf .js oder .html endende Files nach JavaScript-t8() scannen Ansonsten werden alle Dateien in den js-Unterverzeichnis gescannt, und hier liegen u.a. Bilder (JPGs), Stylesheets etc. --- scripts/locales.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/locales.pl b/scripts/locales.pl index 79c88e03f..682efbaf8 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -129,7 +129,7 @@ handle_file(@{ $_ }) for @progfiles; handle_file(@{ $_ }) for @dbplfiles; scanmenu($_) for @menufiles; -for my $file_name (map({find_files($_)} @javascript_dirs)) { +for my $file_name (grep { /\.(?:js|html)$/i } map({find_files($_)} @javascript_dirs)) { scan_javascript_file($file_name); } -- 2.20.1