From e43c500e32c61ef667d4e6a57e7315232fd705c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 23 Jun 2010 13:36:05 +0200 Subject: [PATCH] Submits auch bei Verwendung von T8 erkennen. Conflicts: locale/de/locales.pl --- locale/de/locales.pl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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) { -- 2.20.1