Skip to content

Commit 0a79cd5

Browse files
authored
Update translator.py
1 parent 0e39e37 commit 0a79cd5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/translator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ def translate_text(language, text, file_path, model, cont=0, slpitted=False, cli
190190
return translate_text(language, text, file_path, model, cont, False, client)
191191

192192
response_message = response.choices[0].message.content.strip()
193+
response_message = response_message.replace("bypassy", "bypasses") # PL translations translates that from time to time
194+
response_message = response_message.replace("Bypassy", "Bypasses")
193195

194196
# 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 "#"
195197
cont2 = 0

0 commit comments

Comments
 (0)