Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 8 Nov 2012 11:41:59 +0000 (12:41 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 8 Nov 2012 11:41:59 +0000 (12:41 +0100)
1  2 
SL/DBUpgrade2.pm
locale/de/all

diff --combined SL/DBUpgrade2.pm
@@@ -25,12 -25,17 +25,17 @@@ sub init 
  
    $params{path_suffix} ||= '';
    $params{schema}      ||= '';
+   $params{path}          = "sql/" . $params{dbdriver} . "-upgrade2" . $params{path_suffix};
  
    map { $self->{$_} = $params{$_} } keys %params;
  
    return $self;
  }
  
+ sub path {
+   $_[0]{path};
+ }
  sub parse_dbupdate_controls {
    $::lxdebug->enter_sub();
  
@@@ -42,7 -47,7 +47,7 @@@
    local *IN;
    my %all_controls;
  
-   my $path = "sql/" . $self->{dbdriver} . "-upgrade2" . $self->{path_suffix};
+   my $path = $self->path;
  
    foreach my $file_name (<$path/*.sql>, <$path/*.pl>) {
      next unless (open(IN, $file_name));
@@@ -164,7 -169,7 +169,7 @@@ sub process_query 
            pop(@quote_chars);
          } elsif (length $quote_chars[-1] > 1
               &&  substr($_, $i, length $quote_chars[-1]) eq $quote_chars[-1]) {
 -          $i   += length $quote_chars[-1] - 1;
 +          $i   += length($quote_chars[-1]) - 1;
            $char = $quote_chars[-1];
            pop(@quote_chars);
          }
diff --combined locale/de/all
@@@ -101,7 -101,7 +101,7 @@@ $self->{texts} = 
    'Accounting Group deleted!'   => 'Buchungsgruppe gel&ouml;scht!',
    'Accounting Group saved!'     => 'Buchungsgruppe gespeichert!',
    'Accounting method'           => 'Versteuerungsart',
-   'Accrual'                     => 'Bilanzierung',
+   'Accrual'                     => 'Soll-Versteuerung',
    'Active'                      => 'Aktiv',
    'Active?'                     => 'Aktiviert?',
    'Add'                         => 'Erfassen',
    'End date'                    => 'Enddatum',
    'Enter a description for this new draft.' => 'Geben Sie eine Beschreibung f&uuml;r diesen Entwurf ein.',
    'Enter longdescription'       => 'Langtext eingeben',
 +  'Enter the abbreviations separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies' => 'Geben Sie Ihre und weitere Währungen als Abkürzungen durch Doppelpunkte getrennt ein (z.B. EUR:USD:CAD)',
    'Enter the requested execution date or leave empty for the quickest possible execution:' => 'Geben Sie das jeweils gewünschte Ausführungsdatum an, oder lassen Sie das Feld leer für die schnellstmögliche Ausführung:',
 -  'Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies' => 'Geben Sie Ihre und weitere Währungen mit bis zu drei Buchstaben pro Währung und Währungen durch Doppelpunkte getrennt ein (z.B. EUR:USD:CAD)',
    'Equity'                      => 'Passiva',
    'Error'                       => 'Fehler',
    'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s',