From ae1dafcd820afa09db9d6eaf35fc2e1aadeefa87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 25 Jan 2012 17:54:25 +0100 Subject: [PATCH] =?utf8?q?local=20$::locale=20Objekt=20verwenden,=20sonst?= =?utf8?q?=20wird=20das=20vom=20=C3=9Cbersetzungssystem=20nicht=20gefunden?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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(); -- 2.20.1