Beim Neuanlegen von Datenbanken darf die Datenbank schon existieren. Damit kann die...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 25 Jun 2008 13:25:25 +0000 (13:25 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 25 Jun 2008 13:25:25 +0000 (13:25 +0000)
SL/User.pm
locale/de/all
templates/webpages/admin/create_dataset_de.html
templates/webpages/admin/create_dataset_master.html

index 212175a..ece1fb8 100644 (file)
@@ -344,7 +344,8 @@ sub dbcreate {
   my $query = $dbcreate{$form->{dbdriver}};
   $query .= " WITH " . join(" ", @{$dboptions{"Pg"}}) if (@{$dboptions{"Pg"}});
 
-  do_query($form, $dbh, $query);
+  # Ignore errors if the database exists.
+  $dbh->do($query);
 
   if ($form->{dbdriver} eq 'Oracle') {
     $query = qq|GRANT CONNECT, RESOURCE TO "$form->{db}"|;
index a721624..4e73696 100644 (file)
@@ -707,6 +707,7 @@ aktualisieren wollen?',
   'Image'                       => 'Grafik',
   'Import CSV'                  => 'CSV-Import',
   'In Lx-Office 2.4.0 the administrator has to enter a list of units in the administrative section.' => 'In Lx-Office 2.4.0 muss der Administrator in den Systemeinstellungen eine Liste von verwendbaren Einheiten angeben.',
+  'In the latter case the tables needed by Lx-Office will be created in that database.' => 'In letzterem Fall werden die von Lx-Office benötigten Tabellen in dieser existierenden Datenbank angelegt.',
   'In-line'                     => 'im Text',
   'Inactive'                    => 'Inaktiv',
   'Include Exchangerate Difference' => 'Wechselkursunterschied einbeziehen',
@@ -1613,6 +1614,7 @@ aktualisieren wollen?',
   'You can create a missing dataset by going back and chosing &quot;Create Dataset&quot;.' => 'Sie k&ouml;nnen eine fehlende Datenbank erstellen, indem Sie jetzt zu&uuml;ck gehen und den Punkt &quot;Datenbank anlegen&quot; w&auml;hlen.',
   'You can create warehouses and bins via the menu "System -> Warehouses".' => 'Sie k&ouml;nnen Lager und Lagerpl&auml;tze &uuml;ber das Men&uuml; "System -> Lager" anlegen.',
   'You can declare different translations for singular and plural for each unit (e.g. &quot;day&quot; and &quot;days).' => 'Bei den &Uuml;bersetzungen k&ouml;nnen Sie unterschiedliche Varianten f&uuml;r singular und plural angeben (z.B. &quot;day&quot; und &quot;days&quot;).',
+  'You can either create a new database or chose an existing database.' => 'Sie können entweder eine neue Datenbank erstellen oder eine existierende auswählen.',
   'You can only delete datasets that are not in use.' => 'Sie k&ouml;nnen nur Datenbanken l&ouml;schen, die momentan nicht in Benutzung sind.',
   'You can use the following strings in the long description and all translations. They will be replaced by their actual values by Lx-Office before they\'re output.' => 'Sie k&ouml;nnen im Langtext und allen Übersetzungen die folgenden Variablen benutzen, die vor der Ausgabe von Lx-Office automatisch ersetzt werden:',
   'You cannot continue before all required modules are installed.' => 'Sie k&ouml;nnen nicht fortfahren, bevor alle ben&ouml;tigten Pakete installiert sind.',
index 8bb5550..a146dc7 100644 (file)
@@ -4,6 +4,11 @@
 
   <form method="post" action="admin.pl">
 
+   <p>
+    Sie können entweder eine neue Datenbank erstellen oder eine existierende auswählen.
+    In letzterem Fall werden die von Lx-Office benötigten Tabellen in dieser existierenden Datenbank angelegt.
+   </p>
+
    <table>
     <tr>
      <th valign="top" align="right" nowrap>existierende Datenbanken</th>
index a994539..b207e58 100644 (file)
@@ -4,6 +4,13 @@
 
   <form method="post" action="admin.pl">
 
+   <p>
+    <translate>You can either create a new database or chose an
+     existing database.</translate>
+    <translate>In the latter case the tables needed by Lx-Office will
+     be created in that database.</translate>
+   </p>
+
    <table>
     <tr>
      <th valign="top" align="right" nowrap><translate>Existing Datasets</translate></th>