From: Moritz Bunkus Date: Fri, 1 Mar 2013 14:12:30 +0000 (+0100) Subject: Periodische Rechnungen: Monatsnamen nicht im Script hardcoden X-Git-Tag: release-3.1.0beta1~577 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4eda5c732ce9088a829f9ee41283da52759ea899;p=kivitendo-erp.git Periodische Rechnungen: Monatsnamen nicht im Script hardcoden Abgesehen davon, dass es extrem unschöner Stil ist, werden ohne "use utf8;" dann auch die Umlaute nicht richtig behandelt. --- diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index 0bbea2d86..474762d86 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -75,8 +75,8 @@ sub _generate_time_period_variables { my $period_end_date = $period_start_date->clone->truncate(to => 'month')->add(months => $config->get_period_length)->subtract(days => 1); my @month_names = ('', - 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', - 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'); + $::locale->text('January'), $::locale->text('February'), $::locale->text('March'), $::locale->text('April'), $::locale->text('May'), $::locale->text('June'), + $::locale->text('July'), $::locale->text('August'), $::locale->text('September'), $::locale->text('October'), $::locale->text('November'), $::locale->text('December')); my $vars = { current_quarter => $period_start_date->quarter, previous_quarter => $period_start_date->clone->subtract(months => 3)->quarter,