diff --git a/modules/csv.py b/modules/csv.py index 0773534..993bf6c 100644 --- a/modules/csv.py +++ b/modules/csv.py @@ -707,7 +707,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/json.py b/modules/json.py index 39b753e..1dc0458 100644 --- a/modules/json.py +++ b/modules/json.py @@ -561,7 +561,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/kirikiri.py b/modules/kirikiri.py index 16ade86..4dab5e3 100644 --- a/modules/kirikiri.py +++ b/modules/kirikiri.py @@ -605,7 +605,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/nscript.py b/modules/nscript.py index c92bc0c..94bf92d 100644 --- a/modules/nscript.py +++ b/modules/nscript.py @@ -623,7 +623,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/regex.py b/modules/regex.py index 2d5e9a5..c8f607b 100644 --- a/modules/regex.py +++ b/modules/regex.py @@ -626,7 +626,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/renpy.py b/modules/renpy.py index aa340fd..d22cb47 100644 --- a/modules/renpy.py +++ b/modules/renpy.py @@ -544,7 +544,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/rpgmakerace.py b/modules/rpgmakerace.py index a4cfcf8..7e3ca54 100644 --- a/modules/rpgmakerace.py +++ b/modules/rpgmakerace.py @@ -2612,7 +2612,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index 1bc7e48..bd722c0 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -2720,7 +2720,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/rpgmakerplugin.py b/modules/rpgmakerplugin.py index c69aeff..93e04ed 100644 --- a/modules/rpgmakerplugin.py +++ b/modules/rpgmakerplugin.py @@ -833,7 +833,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/text.py b/modules/text.py index 4e8743f..7ce0a59 100644 --- a/modules/text.py +++ b/modules/text.py @@ -533,7 +533,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/tyrano.py b/modules/tyrano.py index 834bd0d..4a826c8 100644 --- a/modules/tyrano.py +++ b/modules/tyrano.py @@ -622,7 +622,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/unity.py b/modules/unity.py index f55838c..e39dbc4 100644 --- a/modules/unity.py +++ b/modules/unity.py @@ -535,7 +535,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/wolf.py b/modules/wolf.py index 37fb63a..4294303 100644 --- a/modules/wolf.py +++ b/modules/wolf.py @@ -2604,7 +2604,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/modules/wolf2.py b/modules/wolf2.py index da93004..c53c962 100644 --- a/modules/wolf2.py +++ b/modules/wolf2.py @@ -572,7 +572,11 @@ def translateGPT(text, history, fullPromptFlag): if isinstance(tItem, list): extractedTranslations = extractTranslation(translatedText, True) if extractedTranslations == None or len(tItem) != len(extractedTranslations): - mismatch = True # Just here for breakpoint + with open("log/mismatchHistory.txt", "a+", encoding="utf-8") as mismatchFile: + mismatchFile.write(f"Mismatch: {FILENAME}\n") + mismatchFile.write(f"Input:\n{subbedT}\n") + mismatchFile.write(f"Output:\n{translatedText}\n") + mismatch = True # Just here for breakpoint logFile.write(f"Input:\n{subbedT}\n") logFile.write(f"Output:\n{translatedText}\n") diff --git a/vocab.txt b/vocab.txt index b176895..c0115e1 100644 --- a/vocab.txt +++ b/vocab.txt @@ -1,7 +1,15 @@ Here are some vocabulary and terms so that you know the proper spelling and translation. ``` # Game Characters -アリシア (Alicia) - Female +セレト (Sereto) - Male +メア (Mea) - Female +リリリ (Lilili) - Female +デイ (Dei) - Female +ルーシィ (Lucy) - Female +セビナ (Sebina) - Female +アビー (Abby) - Female +マリステラ (Maristella) - Female +レミ (Remy) - Female # Lewd Terms マンコ (pussy)