From a4e96abf581a1473991e1c13ff3fdc21e8cdb9b2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 27 Feb 2013 16:57:02 +0100 Subject: [PATCH] locales.pl: Auch auf fehlendes Laden von Plugins "P" und "T8" testen --- scripts/locales.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/locales.pl b/scripts/locales.pl index d8ff9c66a..cfb85d9a4 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -511,9 +511,11 @@ sub scanhtmlfile { while ($line =~ m/\[\%[^\w]*(\w+)\.\w+\(/g) { my $plugin = $1; - $plugins{needed}->{$plugin} = 1 if (first { $_ eq $plugin } qw(HTML LxERP JavaScript MultiColumnIterator L)); + $plugins{needed}->{$plugin} = 1 if (first { $_ eq $plugin } qw(HTML LxERP JavaScript MultiColumnIterator JSON L P)); } + $plugins{needed}->{T8} = 1 if $line =~ m/\[\%.*\|.*\$T8/; + while ($line =~ m/(?: # Start von Variante 1: LxERP.t8('...'); ohne darumliegende [% ... %]-Tags (LxERP\.t8)\( # LxERP.t8( ::Parameter $1:: ([\'\"]) # Anfang des zu übersetzenden Strings ::Parameter $2:: -- 2.20.1