X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5b8a7012da9cd5b7ba2a45c9df5bad8b2cade252..fa503e5aa3d09153e630967775ea3d52ecafc7e6:/scripts/locales.pl diff --git a/scripts/locales.pl b/scripts/locales.pl index 51db82f11..b1927142e 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -22,6 +22,7 @@ use File::Slurp qw(slurp); use FileHandle; use Getopt::Long; use IO::Dir; +use List::MoreUtils qw(apply); use List::Util qw(first); use Pod::Usage; @@ -49,7 +50,8 @@ our $missing = {}; our @lost = (); my %ignore_unused_templates = ( - map { $_ => 1 } qw(ct/testpage.html generic/autocomplete.html oe/periodic_invoices_email.txt part/testpage.html t/render.html t/render.js task_server/failure_notification_email.txt) + map { $_ => 1 } qw(ct/testpage.html generic/autocomplete.html oe/periodic_invoices_email.txt part/testpage.html t/render.html t/render.js task_server/failure_notification_email.txt + failed_background_jobs_report/email.txt) ); my (%referenced_html_files, %locale, %htmllocale, %alllocales, %cached, %submit, %jslocale); @@ -179,9 +181,11 @@ if (@new_missing) { if ($opt_f) { for my $string (@new_missing) { print "new string '$string' in files:\n"; - for my $file (keys %cached) { - print " $file", $/ if $cached{$file}{all}{$string}; - } + print join "", + map { " $_\n" } + apply { s{^(?:\.\./)+}{} } + grep { $cached{$_}{all}{$string} } + keys %cached; } }