Browse Source

deutsche Übersetzung angefangen

lang_de
Stephan Richter 3 years ago
parent
commit
5e45aca087
  1. 8
      src/main/java/de/srsoftware/widerhall/data/Database.java

8
src/main/java/de/srsoftware/widerhall/data/Database.java

@ -60,13 +60,13 @@ public class Database { @@ -60,13 +60,13 @@ public class Database {
* @throws SQLException
*/
public void run() throws SQLException {
LOG.debug("Running {}",this);
LOG.debug("Führe {} aus",this);
try {
var stmt = conn.prepareStatement(sql);
for (int i = 0; i < args.size(); i++) stmt.setObject(i+1, args.get(i));
stmt.execute();
} catch (SQLException sqle) {
throw new SQLException(t("Query '{}' failed:",this),sqle);
throw new SQLException(t("Query '{}' fehlgeschlagen:",this),sqle);
}
}
@ -300,7 +300,7 @@ public class Database { @@ -300,7 +300,7 @@ public class Database {
Configuration config = Configuration.instance();
var dbFile = config.dbFile();
String url = "jdbc:sqlite:"+dbFile;
LOG.debug("Opening {}",url);
LOG.debug("Öffne {}",url);
dbFile.getParentFile().mkdirs();
try {
singleton = new Database(DriverManager.getConnection(url));
@ -356,7 +356,7 @@ public class Database { @@ -356,7 +356,7 @@ public class Database {
rs.close();
return val > 0;
} catch (SQLException e) {
throw new SQLException(t("Was not able to check existence of table {}!",tbName),e);
throw new SQLException(t("Konnte Existenz der Tabelle {} nicht prüfen!",tbName),e);
}
}

Loading…
Cancel
Save