From: Sven Schöling Date: Wed, 23 Jun 2010 11:36:05 +0000 (+0200) Subject: Submits auch bei Verwendung von T8 erkennen. X-Git-Tag: release-2.6.2beta1~331^2~28 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e43c500e32c61ef667d4e6a57e7315232fd705c2;p=kivitendo-erp.git Submits auch bei Verwendung von T8 erkennen. Conflicts: locale/de/locales.pl --- diff --git a/locale/de/locales.pl b/locale/de/locales.pl index a29ce3fd6..399af2853 100755 --- a/locale/de/locales.pl +++ b/locale/de/locales.pl @@ -578,11 +578,14 @@ sub scanhtmlfile { [\-~#]* # Whitespace-Unterdrückung \%\] # Template-Ende-Tag /ix) { -# print "Found filter '$1' in string '$line'\n"; - $cached{$_[0]}{all}{$1} = 1; - $cached{$_[0]}{html}{$1} = 1; - $plugins{needed}->{T8} = 1; - substr $line, $-[0], $+[0] - $-[0], ''; + my $string = $1; + print "Found filter >>>$string<<<\n" if $debug; + substr $line, $LAST_MATCH_START[1], $LAST_MATCH_END[0] - $LAST_MATCH_START[0], ''; + + $cached{$_[0]}{all}{$string} = 1; + $cached{$_[0]}{html}{$string} = 1; + $cached{$_[0]}{submit}{$string} = 1 if $PREMATCH =~ /$submitsearch/; + $plugins{needed}->{T8} = 1; } while ("" ne $line) {