From 87fa4de59c70a3baf49edc40ffe0bb0c8041af81 Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Wed, 21 Feb 2024 19:00:00 +0700 Subject: [PATCH] Use forward-slash (/) for path separator in translation files The lstrip (left trim) call is to make sure that there are no slashes at the beginning of file paths. --- util/mod_translation_updater.py | 1 + 1 file changed, 1 insertion(+) diff --git a/util/mod_translation_updater.py b/util/mod_translation_updater.py index 1d5ca9239..c941331a8 100755 --- a/util/mod_translation_updater.py +++ b/util/mod_translation_updater.py @@ -425,6 +425,7 @@ def generate_template(folder, mod_name): sources = sorted(list(sources), key=str.lower) newSources = [] for i in sources: + i = "/".join(os.path.split(i)).lstrip("/") newSources.append(f"{symbol_source_prefix} {i} {symbol_source_suffix}") dOut[d] = newSources