projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46019c3
)
locales.pl: nur auf .js oder .html endende Files nach JavaScript-t8() scannen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 4 Nov 2014 09:57:47 +0000
(10:57 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 4 Nov 2014 10:08:22 +0000
(11:08 +0100)
Ansonsten werden alle Dateien in den js-Unterverzeichnis gescannt, und
hier liegen u.a. Bilder (JPGs), Stylesheets etc.
scripts/locales.pl
patch
|
blob
|
history
diff --git
a/scripts/locales.pl
b/scripts/locales.pl
index
79c88e0
..
682efba
100755
(executable)
--- 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);
}