From: Sven Schöling Date: Wed, 25 Jan 2012 16:54:25 +0000 (+0100) Subject: local $::locale Objekt verwenden, sonst wird das vom Übersetzungssystem nicht gefunden. X-Git-Tag: release-2.7.0beta1~16 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ae1dafcd820afa09db9d6eaf35fc2e1aadeefa87;p=kivitendo-erp.git local $::locale Objekt verwenden, sonst wird das vom Übersetzungssystem nicht gefunden. --- diff --git a/SL/Form.pm b/SL/Form.pm index 70a559d35..33a65ba46 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1248,22 +1248,22 @@ sub get_formname_translation { $formname ||= $self->{formname}; $self->{recipient_locale} ||= Locale->lang_to_locale($self->{language}); - my $recipient_locale = Locale->new($self->{recipient_locale}); + local $::locale = Locale->new($self->{recipient_locale}); my %formname_translations = ( - bin_list => $recipient_locale->text('Bin List'), - credit_note => $recipient_locale->text('Credit Note'), - invoice => $recipient_locale->text('Invoice'), - pick_list => $recipient_locale->text('Pick List'), - proforma => $recipient_locale->text('Proforma Invoice'), - purchase_order => $recipient_locale->text('Purchase Order'), - request_quotation => $recipient_locale->text('RFQ'), - sales_order => $recipient_locale->text('Confirmation'), - sales_quotation => $recipient_locale->text('Quotation'), - storno_invoice => $recipient_locale->text('Storno Invoice'), - sales_delivery_order => $recipient_locale->text('Delivery Order'), - purchase_delivery_order => $recipient_locale->text('Delivery Order'), - dunning => $recipient_locale->text('Dunning'), + bin_list => $::locale->text('Bin List'), + credit_note => $::locale->text('Credit Note'), + invoice => $::locale->text('Invoice'), + pick_list => $::locale->text('Pick List'), + proforma => $::locale->text('Proforma Invoice'), + purchase_order => $::locale->text('Purchase Order'), + request_quotation => $::locale->text('RFQ'), + sales_order => $::locale->text('Confirmation'), + sales_quotation => $::locale->text('Quotation'), + storno_invoice => $::locale->text('Storno Invoice'), + sales_delivery_order => $::locale->text('Delivery Order'), + purchase_delivery_order => $::locale->text('Delivery Order'), + dunning => $::locale->text('Dunning'), ); $main::lxdebug->leave_sub();