Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ae1dafcd

Von Sven Schöling vor fast 13 Jahren hinzugefügt

  • ID ae1dafcd820afa09db9d6eaf35fc2e1aadeefa87
  • Vorgänger e293009f
  • Nachfolger ccb70485

local $::locale Objekt verwenden, sonst wird das vom Übersetzungssystem nicht gefunden.

Unterschiede anzeigen:

SL/Form.pm
1248 1248
  $formname ||= $self->{formname};
1249 1249

  
1250 1250
  $self->{recipient_locale} ||=  Locale->lang_to_locale($self->{language});
1251
  my $recipient_locale = Locale->new($self->{recipient_locale});
1251
  local $::locale = Locale->new($self->{recipient_locale});
1252 1252

  
1253 1253
  my %formname_translations = (
1254
    bin_list                => $recipient_locale->text('Bin List'),
1255
    credit_note             => $recipient_locale->text('Credit Note'),
1256
    invoice                 => $recipient_locale->text('Invoice'),
1257
    pick_list               => $recipient_locale->text('Pick List'),
1258
    proforma                => $recipient_locale->text('Proforma Invoice'),
1259
    purchase_order          => $recipient_locale->text('Purchase Order'),
1260
    request_quotation       => $recipient_locale->text('RFQ'),
1261
    sales_order             => $recipient_locale->text('Confirmation'),
1262
    sales_quotation         => $recipient_locale->text('Quotation'),
1263
    storno_invoice          => $recipient_locale->text('Storno Invoice'),
1264
    sales_delivery_order    => $recipient_locale->text('Delivery Order'),
1265
    purchase_delivery_order => $recipient_locale->text('Delivery Order'),
1266
    dunning                 => $recipient_locale->text('Dunning'),
1254
    bin_list                => $::locale->text('Bin List'),
1255
    credit_note             => $::locale->text('Credit Note'),
1256
    invoice                 => $::locale->text('Invoice'),
1257
    pick_list               => $::locale->text('Pick List'),
1258
    proforma                => $::locale->text('Proforma Invoice'),
1259
    purchase_order          => $::locale->text('Purchase Order'),
1260
    request_quotation       => $::locale->text('RFQ'),
1261
    sales_order             => $::locale->text('Confirmation'),
1262
    sales_quotation         => $::locale->text('Quotation'),
1263
    storno_invoice          => $::locale->text('Storno Invoice'),
1264
    sales_delivery_order    => $::locale->text('Delivery Order'),
1265
    purchase_delivery_order => $::locale->text('Delivery Order'),
1266
    dunning                 => $::locale->text('Dunning'),
1267 1267
  );
1268 1268

  
1269 1269
  $main::lxdebug->leave_sub();

Auch abrufbar als: Unified diff