Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d232a246

Von Moritz Bunkus vor etwa 13 Jahren hinzugefügt

Bessere Fehlermeldung ausgeben, wenn eine Anwendung wie pdflatex nicht gefunden wird

Unterschiede anzeigen:

SL/Form.pm
1537 1537
sub cleanup {
1538 1538
  $main::lxdebug->enter_sub();
1539 1539

  
1540
  my $self = shift;
1540
  my ($self, $application) = @_;
1541

  
1542
  my $error_code = $?;
1541 1543

  
1542 1544
  chdir("$self->{tmpdir}");
1543 1545

  
1544 1546
  my @err = ();
1545
  if (-f "$self->{tmpfile}.err") {
1547
  if ((-1 == $error_code) || (127 == (($error_code) >> 8))) {
1548
    push @err, $::locale->text('The application "#1" was not found on the system.', $application || 'pdflatex') . ' ' . $::locale->text('Please contact your administrator.');
1549

  
1550
  } elsif (-f "$self->{tmpfile}.err") {
1546 1551
    open(FH, "$self->{tmpfile}.err");
1547 1552
    @err = <FH>;
1548 1553
    close(FH);
SL/Template/HTML.pm
72 72

  
73 73
  system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} > $psfile");
74 74
  if ($?) {
75
    $self->{"error"} = $form->cleanup();
76
    $self->cleanup();
75
    $self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
77 76
    return 0;
78 77
  }
79 78

  
......
105 104

  
106 105
  system($::lx_office_conf{applications}->{html2ps} . " -f html2ps-config < $form->{tmpfile} | ps2pdf - $pdffile");
107 106
  if ($?) {
108
    $self->{"error"} = $form->cleanup();
109
    $self->cleanup();
107
    $self->{"error"} = $form->cleanup($::lx_office_conf{applications}->{html2ps});
110 108
    return 0;
111 109
  }
112 110

  
SL/Template/LaTeX.pm
388 388
           "> $form->{tmpfile}.err");
389 389
    if ($?) {
390 390
      $ENV{HOME} = $old_home;
391
      $self->{"error"} = $form->cleanup();
392
      $self->cleanup();
391
      $self->{"error"} = $form->cleanup($latex);
393 392
      return 0;
394 393
    }
395 394
  }
......
401 400

  
402 401
  if ($?) {
403 402
    $self->{"error"} = "dvips : $!";
404
    $self->cleanup();
403
    $self->cleanup('dvips');
405 404
    return 0;
406 405
  }
407 406
  $form->{tmpfile} =~ s/dvi$/ps/;
......
433 432
    system("${latex} --interaction=nonstopmode $form->{tmpfile} " .
434 433
           "> $form->{tmpfile}.err");
435 434
    if ($?) {
436
      $ENV{HOME} = $old_home;
437
      $self->{"error"} = $form->cleanup();
438
      $self->cleanup();
435
      $ENV{HOME}     = $old_home;
436
      $self->{error} = $form->cleanup($latex);
439 437
      return 0;
440 438
    }
441 439
  }
locale/de/all
122 122
  'Add Group'                   => 'Warengruppe erfassen',
123 123
  'Add Language'                => 'Sprache hinzufügen',
124 124
  'Add Lead'                    => 'Kundenquelle erfassen',
125
  'Add License'                 => 'Lizenz erfassen',
126 125
  'Add Part'                    => 'Ware erfassen',
127 126
  'Add Payment Terms'           => 'Zahlungskonditionen hinzufügen',
128 127
  'Add Price Factor'            => 'Preisfaktor erfassen',
......
1028 1027
  'Leave host and port field empty unless you want to make a remote connection.' => 'F&uuml;r lokale Verbindungen "Rechner" und "Port" freilassen.',
1029 1028
  'Left'                        => 'Links',
1030 1029
  'Liability'                   => 'Passiva/Mittelherkunft',
1031
  'Licenses'                    => 'Lizenzen',
1032 1030
  'Limit part selection'        => 'Artikelauswahl eingrenzen',
1033 1031
  'Line Total'                  => 'Zeilensumme',
1034 1032
  'Line and column'             => 'Zeile und Spalte',
......
1322 1320
  'Please Check the bank information for each customer:' => 'Bitte überprüfen Sie die Bankinformationen der Kunden:',
1323 1321
  'Please Check the bank information for each vendor:' => 'Bitte überprüfen Sie die Kontoinformationen der Lieferanten:',
1324 1322
  'Please ask your administrator to create warehouses and bins.' => 'Bitten Sie Ihren Administrator, dass er Lager und Lagerpl&auml;tze anlegt.',
1323
  'Please contact your administrator.' => 'Bitte wenden Sie sich an Ihren Administrator.',
1325 1324
  'Please enter a profile name.' => 'Bitte geben Sie einen Profilnamen an.',
1326 1325
  'Please enter the login for the new user.' => 'Bitte geben Sie das Login für den neuen Benutzer ein.',
1327 1326
  'Please enter the name of the database that will be used as the template for the new database:' => 'Bitte geben Sie den Namen der Datenbank an, die als Vorlage f&uuml;r die neue Datenbank benutzt wird:',
......
1731 1730
  'The access rights have been saved.' => 'Die Zugriffsrechte wurden gespeichert.',
1732 1731
  'The account 3804 already exists, the update will be skipped.' => 'Das Konto 3804 existiert schon, das Update wird übersprungen.',
1733 1732
  'The account 3804 will not be added automatically.' => 'Das Konto 3804 wird nicht automatisch hinzugefügt.',
1733
  'The application "#1" was not found on the system.' => 'Die Anwendung "#1" wurde auf dem System nicht gefunden.',
1734 1734
  'The assembly has been created.' => 'Das Erzeugnis wurde hergestellt.',
1735 1735
  'The assistant could not find anything wrong with #1. Maybe the problem has been solved in the meantime.' => 'Der Korrekturassistent konnte kein Problem bei #1 feststellen. Eventuell wurde das Problem in der Zwischenzeit bereits behoben.',
1736 1736
  'The authentication configuration file &quot;config/lx_office.conf&quot; does not exist. This Lx-Office installation has probably not been updated correctly yet. Please contact your administrator.' => 'Die Konfigurationsdatei f&uuml;r die Authentifizierung &quot;config/lx_office.conf&quot; wurde nicht gefunden. Diese Lx-Office-Installation wurde vermutlich noch nicht vollst&auml;ndig aktualisiert oder eingerichtet. Bitte wenden Sie sich an Ihren Administrator.',

Auch abrufbar als: Unified diff