diff --git a/src/itemdb.d b/src/itemdb.d index ce2fd84c..34e84ab1 100644 --- a/src/itemdb.d +++ b/src/itemdb.d @@ -51,14 +51,16 @@ final class ItemDatabase dbVersion = db.getVersion(); } catch (SqliteException e) { // An error was generated - what was the error? - log.error("\nAn internal database error occurred: " ~ e.msg ~ "\n"); + // "\nAn internal database error occurred: " ~ e.msg ~ "\n" + log.error(provideLanguageTranslation(languageIdentifier,331) ~ e.msg ~ "\n"); exit(-1); } if (dbVersion == 0) { createTable(); } else if (db.getVersion() != itemDatabaseVersion) { - log.log("The item database is incompatible, re-creating database table structures"); + // "The item database is incompatible, re-creating database table structures" + log.log(provideLanguageTranslation(languageIdentifier,332)); db.exec("DROP TABLE item"); createTable(); } diff --git a/src/translations.d b/src/translations.d index e456afa0..412e58f0 100644 --- a/src/translations.d +++ b/src/translations.d @@ -482,6 +482,10 @@ void initialise_EN_AU(){ JSONValue([ "328": "ERROR: inotify_add_watch failed: " ]), JSONValue([ "329": "Monitoring this directory for local changes: " ]), JSONValue([ "330": "Removed this directory from being monitored for local changes: " ]), + JSONValue([ "331": "\nAn internal database error occurred: " ]), + JSONValue([ "332": "The item database is incompatible, re-creating database table structures" ]), + JSONValue([ "330": "Removed this directory from being monitored for local changes: " ]), + ]);