From 29a38530a2f06a65e2a0730c5b9f9e1c39371010 Mon Sep 17 00:00:00 2001 From: Sainan Date: Tue, 4 Feb 2025 20:27:57 +0100 Subject: [PATCH] Add update script --- client-webui/fr.js | 2 +- client-webui/ru.js | 2 +- client-webui/zh.js | 2 +- update.php | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 update.php diff --git a/client-webui/fr.js b/client-webui/fr.js index 2cf11b2..f0116bf 100644 --- a/client-webui/fr.js +++ b/client-webui/fr.js @@ -39,4 +39,4 @@ dict = { err: `Connexion au DLL perdue.`, err_retry: `Tentative de reconnexion.`, -} \ No newline at end of file +} diff --git a/client-webui/ru.js b/client-webui/ru.js index 4eb4951..bd8be1e 100644 --- a/client-webui/ru.js +++ b/client-webui/ru.js @@ -39,4 +39,4 @@ dict = { err: `Соединение с DLL потеряно.`, err_retry: `Попытка восстановить соединение.`, -} \ No newline at end of file +} diff --git a/client-webui/zh.js b/client-webui/zh.js index 2f20288..e44bc17 100644 --- a/client-webui/zh.js +++ b/client-webui/zh.js @@ -39,4 +39,4 @@ dict = { err: `与DLL连接丢失。`, err_retry: `尝试重连。`, -} \ No newline at end of file +} diff --git a/update.php b/update.php new file mode 100644 index 0000000..b7297fd --- /dev/null +++ b/update.php @@ -0,0 +1,47 @@ + $value) + { + if (array_key_exists($key, $target_strings)) + { + fwrite($fh, "\t$key: `$target_strings[$key]`,\n"); + } + else + { + fwrite($fh, "\t$key: `[UNTRANSLATED] $value`,\n"); + } + } + } + else + { + fwrite($fh, $line."\n"); + } + } + } +}