From 79038417a429567186178d38ff58abdde0231276 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 26 Jan 2010 18:24:26 +0100 Subject: [PATCH] =?utf8?q?Es=20gibt=20keine=20explizit=20=C3=BCbersetzten?= =?utf8?q?=20Templates=20mehr.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index d85fe54da..7b7cb290f 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -756,20 +756,16 @@ sub _prepare_html_template { } $language = "de" unless ($language); - if (-f "templates/webpages/${file}_${language}.html") { - if ((-f ".developer") && - (-f "templates/webpages/${file}_master.html") && - ((stat("templates/webpages/${file}_master.html"))[9] > - (stat("templates/webpages/${file}_${language}.html"))[9])) { - my $info = "Developer information: templates/webpages/${file}_master.html is newer than the localized version.\n" . + if (-f "templates/webpages/${file}.html") { + if ((-f ".developer") && ((stat("templates/webpages/${file}.html"))[9] > (stat("locale/${language}/all"))[9])) { + my $info = "Developer information: templates/webpages/${file}.html is newer than the translation file locale/${language}/all.\n" . "Please re-run 'locales.pl' in 'locale/${language}'."; print(qq|
$info
|); die($info); } - $file = "templates/webpages/${file}_${language}.html"; - } elsif (-f "templates/webpages/${file}.html") { $file = "templates/webpages/${file}.html"; + } else { my $info = "Web page template '${file}' not found.\n" . "Please re-run 'locales.pl' in 'locale/${language}'."; @@ -849,10 +845,6 @@ sub parse_html_template { my $input = join('', <$in>); $in->close(); - if ($main::locale) { - $input = $main::locale->{iconv}->convert($input); - } - my $output; if (!$template->process(\$input, $additional_params, \$output)) { print STDERR $template->error(); -- 2.20.1