From 653f16bf02ba48ea48b926ea34df084201c47a0f Mon Sep 17 00:00:00 2001 From: SirBroccoli Date: Tue, 15 Apr 2025 00:04:20 +0200 Subject: [PATCH] Update translator.py --- scripts/translator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/translator.py b/scripts/translator.py index 333a40003..921cd1823 100644 --- a/scripts/translator.py +++ b/scripts/translator.py @@ -190,6 +190,8 @@ Also don't add any extra stuff in your response that is not part of the translat return translate_text(language, text, file_path, model, cont, False, client) response_message = response.choices[0].message.content.strip() + response_message = response_message.replace("bypassy", "bypasses") # PL translations translates that from time to time + response_message = response_message.replace("Bypassy", "Bypasses") # Sometimes chatgpt modified the number of "#" at the beginning of the text, so we need to fix that. This is specially important for the first line of the MD that mucst have only 1 "#" cont2 = 0