From 396d5d7d886196e35da74f03bcef24632b81308a Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Wed, 17 Sep 2025 17:52:12 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=81=AE=E3=83=88=E3=83=A9=E3=83=B3=E3=82=B9=E3=83=AA=E3=83=86?= =?UTF-8?q?=E3=83=AC=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=82=92=E6=94=B9=E5=96=84=E3=81=97=E3=80=81=E6=97=A5=E6=9C=AC?= =?UTF-8?q?=E8=AA=9E=E3=81=AE=E6=9D=A1=E4=BB=B6=E3=82=92=E7=B0=A1=E7=B4=A0?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/controller.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src-python/controller.py b/src-python/controller.py index bbaf0a70..7f43fc9b 100644 --- a/src-python/controller.py +++ b/src-python/controller.py @@ -461,17 +461,18 @@ class Controller: romaji=config.CONVERT_MESSAGE_TO_ROMAJI ) - if (config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["language"] == "Japanese" and - config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["enable"] is True): - transliteration_translation = model.convertMessageToTransliteration( - translation[0], - hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA, - romaji=config.CONVERT_MESSAGE_TO_ROMAJI + if config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["language"] == "Japanese": + transliteration_translation.append( + model.convertMessageToTransliteration( + translation[0], + hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA, + romaji=config.CONVERT_MESSAGE_TO_ROMAJI + ) ) else: transliteration_translation.append([]) else: - transliteration_translation = [[] for _ in config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST] + transliteration_translation = [[]] if config.ENABLE_TRANSCRIPTION_RECEIVE is True: if config.OVERLAY_SMALL_LOG is True and model.overlay.initialized is True: @@ -640,12 +641,13 @@ class Controller: for i, no in enumerate(config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST): if (config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["language"] == "Japanese" and config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["enable"] is True): - transliteration = model.convertMessageToTransliteration( - translation[i], - hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA, - romaji=config.CONVERT_MESSAGE_TO_ROMAJI + transliteration_translation.append( + model.convertMessageToTransliteration( + translation[i], + hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA, + romaji=config.CONVERT_MESSAGE_TO_ROMAJI + ) ) - transliteration_translation.append(transliteration) else: transliteration_translation.append([]) else: