From 572a5300aa9648b55627106cd9501fd5125b75ca Mon Sep 17 00:00:00 2001 From: NeuralMiner Date: Mon, 18 Oct 2021 13:25:53 -0600 Subject: [PATCH] Recommended updates. --- server/database.js | 2 +- server/server.js | 2 +- src/languages/en.js | 1 + src/pages/Setup.vue | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/database.js b/server/database.js index 7a0f83796..aa3638464 100644 --- a/server/database.js +++ b/server/database.js @@ -312,7 +312,7 @@ class Database { */ static backup(version) { if (! this.backupPath) { - console.info("Backup the database"); + console.info("Backing up the database"); this.backupPath = this.dataDir + "kuma.db.bak" + version; fs.copyFileSync(Database.path, this.backupPath); diff --git a/server/server.js b/server/server.js index 59d72033d..4f1943cc3 100644 --- a/server/server.js +++ b/server/server.js @@ -452,7 +452,7 @@ exports.entryPage = "dashboard"; socket.on("setup", async (username, password, callback) => { try { if ((await R.count("user")) !== 0) { - throw new Error("Uptime Kuma has been set up. If you want to setup again, please delete the database."); + throw new Error("Uptime Kuma has been initialized. If you want to run setup again, please delete the database."); } let user = R.dispense("user"); diff --git a/src/languages/en.js b/src/languages/en.js index 4542d72b2..0c39a32b5 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -301,6 +301,7 @@ export default { BodyInvalidFormat: "The request body is not valid JSON: ", "Monitor History": "Monitor History:", clearDataOlderThan: "Keep monitor history data for {0} days.", + PasswordsDoNotMatch: "Passwords do not match.", records: "records", "One record": "One record", "Showing {from} to {to} of {count} records": "Showing {from} to {to} of {count} records", diff --git a/src/pages/Setup.vue b/src/pages/Setup.vue index ed8ea3efb..ab5952167 100644 --- a/src/pages/Setup.vue +++ b/src/pages/Setup.vue @@ -75,7 +75,7 @@ export default { this.processing = true; if (this.password !== this.repeatPassword) { - toast.error("Passwords do not match."); + toast.error(this.$t("PasswordsDoNotMatch")); this.processing = false; return; }