From ec2eaf1127e23ea992f7427bc391da64e265e0b1 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sun, 28 Apr 2024 20:00:47 +0800 Subject: [PATCH] Reset translation sources during generation Signed-off-by: Loren Eteval --- Translation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Translation.py b/Translation.py index 6f58203..ac5b612 100644 --- a/Translation.py +++ b/Translation.py @@ -64,6 +64,10 @@ def main(): translation = copy.deepcopy(TRANSLATION) + for key in translation.keys(): + # Reset source + translation[key]['source'] = [] + for text, source in TranslationPool: if text not in translation: translation[text] = {'source': [source]}