From 284ff85facd82c3e3363195dd1d524782139e4d3 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:37:06 +0200 Subject: [PATCH] Add initial translations for bootstrapper core stuff --- bootstrapper-core/en.cat.txt | 21 +++++++++ .../de.cat.txt | 0 .../en.cat.txt | 0 .../es.cat.txt | 0 .../fr.cat.txt | 0 .../ru.cat.txt | 0 .../uk.cat.txt | 0 .../zh.cat.txt | 0 update.php | 47 ++++++++++--------- 9 files changed, 46 insertions(+), 22 deletions(-) create mode 100644 bootstrapper-core/en.cat.txt rename {bootstrapper => bootstrapper-webui}/de.cat.txt (100%) rename {bootstrapper => bootstrapper-webui}/en.cat.txt (100%) rename {bootstrapper => bootstrapper-webui}/es.cat.txt (100%) rename {bootstrapper => bootstrapper-webui}/fr.cat.txt (100%) rename {bootstrapper => bootstrapper-webui}/ru.cat.txt (100%) rename {bootstrapper => bootstrapper-webui}/uk.cat.txt (100%) rename {bootstrapper => bootstrapper-webui}/zh.cat.txt (100%) diff --git a/bootstrapper-core/en.cat.txt b/bootstrapper-core/en.cat.txt new file mode 100644 index 0000000..0aef9a9 --- /dev/null +++ b/bootstrapper-core/en.cat.txt @@ -0,0 +1,21 @@ +toonew: Your game version is too new and not (yet) supported by the bootstrapper. Please refer to the openwf.io website for further guidance. + +sigfailbad: A mandatory pattern scan has failed. The program will crash now. +sigfailenc: Failed to disable request encryption. This is required for 38.5.0 and above. +sigfailimp: An important pattern scan has failed. The game will likely fail to start. +sigfailopt: An optional pattern scan has failed. Functionality may be limited beyond core precepts. +sigfailsmst: Failed to bring up "skip mission start timer". This option will be non-functional. +sigfailhdnp: Failed to bring up "high damage numbers patch". This option will be non-functional. +sigfailnrs: Failed to bring up "disable NRS connection". This option will be non-functional. +sigfailfpd: Failed to bring up "forced profile dir". This option will be non-functional. +sigfailswb: Failed to bring up "simulacrum whitelisted/blacklisted". This option will be non-functional. +sigfailpast: Failed to bring up "pause always stops time". This option will be non-functional. +sigfaillorf: Failed to bring up "logout on request failure". This option will be non-functional. +sigfaillr: Failed to bring up Label Replacements. +sigfailmp: Failed to bring up Metadata Patches. +sigfailxp: Failed to disable XP-based level cap. +sigfaillegacy: An important pattern scan has failed. You may experience stuttering. +appmdll: Ensure that only one of the DLLs in your game folder is the bootstrapper. + +gotsh: Redirecting requests to |HOST| +alpend: Will automatically log in diff --git a/bootstrapper/de.cat.txt b/bootstrapper-webui/de.cat.txt similarity index 100% rename from bootstrapper/de.cat.txt rename to bootstrapper-webui/de.cat.txt diff --git a/bootstrapper/en.cat.txt b/bootstrapper-webui/en.cat.txt similarity index 100% rename from bootstrapper/en.cat.txt rename to bootstrapper-webui/en.cat.txt diff --git a/bootstrapper/es.cat.txt b/bootstrapper-webui/es.cat.txt similarity index 100% rename from bootstrapper/es.cat.txt rename to bootstrapper-webui/es.cat.txt diff --git a/bootstrapper/fr.cat.txt b/bootstrapper-webui/fr.cat.txt similarity index 100% rename from bootstrapper/fr.cat.txt rename to bootstrapper-webui/fr.cat.txt diff --git a/bootstrapper/ru.cat.txt b/bootstrapper-webui/ru.cat.txt similarity index 100% rename from bootstrapper/ru.cat.txt rename to bootstrapper-webui/ru.cat.txt diff --git a/bootstrapper/uk.cat.txt b/bootstrapper-webui/uk.cat.txt similarity index 100% rename from bootstrapper/uk.cat.txt rename to bootstrapper-webui/uk.cat.txt diff --git a/bootstrapper/zh.cat.txt b/bootstrapper-webui/zh.cat.txt similarity index 100% rename from bootstrapper/zh.cat.txt rename to bootstrapper-webui/zh.cat.txt diff --git a/update.php b/update.php index 0ccbf43..807c1af 100644 --- a/update.php +++ b/update.php @@ -10,36 +10,39 @@ function extract_strings($cont) return $strings; } -$source = file_get_contents("bootstrapper/en.cat.txt"); -$source_strings = extract_strings($source); -$source_lines = explode("\n", $source); - -foreach (scandir("bootstrapper") as $file) +foreach (["bootstrapper-core", "bootstrapper-webui"] as $folder) { - if (is_file("bootstrapper/$file") && $file != "en.cat.txt") + $source = file_get_contents("$folder/en.cat.txt"); + $source_strings = extract_strings($source); + $source_lines = explode("\n", $source); + + foreach (scandir("$folder") as $file) { - $cont = file_get_contents("bootstrapper/$file"); - $target_strings = extract_strings($cont); - $fh = fopen("bootstrapper/$file", "wb"); - foreach ($source_lines as $line) + if (is_file("$folder/$file") && $file != "en.cat.txt") { - if ($strings = extract_strings($line)) + $cont = file_get_contents("$folder/$file"); + $target_strings = extract_strings($cont); + $fh = fopen("$folder/$file", "wb"); + foreach ($source_lines as $line) { - foreach ($strings as $key => $value) + if ($strings = extract_strings($line)) { - if (array_key_exists($key, $target_strings)) + foreach ($strings as $key => $value) { - fwrite($fh, "$key: $target_strings[$key]\n"); - } - else - { - fwrite($fh, "$key: [UNTRANSLATED] $value\n"); + if (array_key_exists($key, $target_strings)) + { + fwrite($fh, "$key: $target_strings[$key]\n"); + } + else + { + fwrite($fh, "$key: [UNTRANSLATED] $value\n"); + } } } - } - else - { - fwrite($fh, $line."\n"); + else + { + fwrite($fh, $line."\n"); + } } } }