From: Moritz Bunkus Date: Tue, 26 Jan 2010 17:24:26 +0000 (+0100) Subject: Es gibt keine explizit übersetzten Templates mehr. X-Git-Tag: release-2.6.2beta1~331^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=79038417a429567186178d38ff58abdde0231276;p=kivitendo-erp.git Es gibt keine explizit übersetzten Templates mehr. --- 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();