From bdde3304d993767b457a0f54c2e5e2aab3c98fac Mon Sep 17 00:00:00 2001 From: Exodia <67595890+DonRP@users.noreply.github.com> Date: Mon, 12 Jun 2023 18:38:37 +0200 Subject: [PATCH 01/11] Update translation_convertor_potorpy.py --- translation_convertor_potorpy.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/translation_convertor_potorpy.py b/translation_convertor_potorpy.py index 8595043..fdfac18 100644 --- a/translation_convertor_potorpy.py +++ b/translation_convertor_potorpy.py @@ -1,8 +1,8 @@ -from fileinput import FileInput -from glob import glob import os -import shutil import re +import shutil +from fileinput import FileInput +from glob import glob # ATTENTION: there must not be 2 equal key or value # regex: https://www.w3schools.com/python/python_regex.asp @@ -43,10 +43,10 @@ r'msgstr "(.*?) \[special_delimiter\] (.*?)"': r' "\1" "\2"', r':\nmsgid "(.*?)"': r':\n # "\1"', r' #(.*?)\nmsgstr "\[_(.*?)\_] (.*?)"': r' #\1\n \2 "\3"', + r' #(.*?)\nmsgstr "\[_(.*?)\_](.*?)"': r' #\1\n \2 "\3"', r' # (.*?)\nmsgstr "(.*?)"': r' # \1\n "\2"', # after r' # "\[_(.*?)\_] (.*?)"': r' # \1 "\2"', - r' # "\[_(.*?)\_](.*?)"': r' # \1 "\2"', # Comment r':\n # ': r':\n\n # ', r'rpy:(.*?) #-#-# translate': r'rpy:\1\ntranslate', @@ -145,4 +145,5 @@ def fileRename(pathFile, extension): return pre + extension -potorpy("crowdin") +potorpy("italian") +potorpy("french") From eb0a775f0fb7de7b4c8fc2308828791ec4900651 Mon Sep 17 00:00:00 2001 From: Exodia <67595890+DonRP@users.noreply.github.com> Date: Mon, 12 Jun 2023 21:49:45 +0200 Subject: [PATCH 02/11] Update common.rpy --- game/tl/french/common.rpy | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/game/tl/french/common.rpy b/game/tl/french/common.rpy index 5118b86..77a8ed5 100644 --- a/game/tl/french/common.rpy +++ b/game/tl/french/common.rpy @@ -683,7 +683,7 @@ translate french strings: # renpy/common/00preferences.rpy:618 old "Self-voicing would say \"[renpy.display.tts.last]\". Press 'alt+shift+V' to disable." - new "La lecture vocale veut dire « [renpy.display.tts.last] ». Pressez « Alt+Maj+V » pour la désactiver." + new "La lecture vocale veut dire \"[renpy.display.tts.last]\". Pressez 'alt+shift+V' pour la désactiver." # renpy/common/00preferences.rpy:620 old "Self-voicing enabled. Press 'v' to disable." @@ -747,7 +747,7 @@ translate french strings: # renpy/common/00updater.rpy:1637 old "[u.version] is available. Do you want to install it?" - new "[u.version] est disponible. Voulez-vous l’installer ?" + new "[u.version] est disponible. Voulez-vous l’installer?" # renpy/common/00updater.rpy:1639 old "Preparing to download the updates." @@ -1211,7 +1211,7 @@ translate french strings: # renpy/common/00console.rpy:862 old "reload: reloads the game, refreshing the scripts" - new "reload : recharge le jeu, rafraîchit les scripts" + new "reload: recharge le jeu, rafraîchit les scripts" # renpy/common/00console.rpy:870 old "watch : watch a python expression\n watch short: makes the representation of traced expressions short (default)\n watch long: makes the representation of traced expressions as is" @@ -1223,7 +1223,7 @@ translate french strings: # renpy/common/00console.rpy:953 old "unwatchall: stop watching all expressions" - new "unwatchall : arrêter de surveiller toutes les expressions" + new "unwatchall: arrêter de surveiller toutes les expressions" # renpy/common/00console.rpy:974 old "jump