From 379c5bfdb617e3898130269f716892583e25efe2 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:04:11 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20=E5=A4=89=E6=95=B0=E5=90=8D=E5=A4=89?= =?UTF-8?q?=E6=9B=B4:=20AUTHKEY=20->=20AUTH=5FKEY=20=E3=81=AE=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E5=88=86=E3=81=91=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 6 +++--- locales.yml | 6 +++--- view.py | 2 +- .../createSettingBox_Translation.py | 12 ++++++------ 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/controller.py b/controller.py index d65d010d..fc5a7ee9 100644 --- a/controller.py +++ b/controller.py @@ -506,8 +506,8 @@ def callbackSetCtranslate2WeightType(value): view.useTranslationFeatureProcess("Disable") # CTranslate2 weight is not downloaded -def callbackSetDeeplAuthkey(value): - print("callbackSetDeeplAuthkey", str(value)) +def callbackSetDeeplAuthKey(value): + print("callbackSetDeeplAuthKey", str(value)) if len(value) == 39: result = model.authenticationTranslatorDeepLAuthKey(auth_key=value) if result is True: @@ -948,7 +948,7 @@ def createMainWindow(): # Translation Tab "callback_set_use_translation_feature": callbackSetUseTranslationFeature, "callback_set_ctranslate2_weight_type": callbackSetCtranslate2WeightType, - "callback_set_deepl_authkey": callbackSetDeeplAuthkey, + "callback_set_deepl_auth_key": callbackSetDeeplAuthKey, # Transcription Tab (Mic) "callback_set_mic_host": callbackSetMicHost, diff --git a/locales.yml b/locales.yml index f4b80300..3261f636 100644 --- a/locales.yml +++ b/locales.yml @@ -55,7 +55,7 @@ en: # tab Parameter label_ip_address: "OSC IP address" label_port: "OSC Port" - label_authkey: "DeepL Auth Key" + label_auth_key: "DeepL Auth Key" label_message_format: "Message Format" # tab Others @@ -121,7 +121,7 @@ ja: # tab Parameter # label_ip_address: "" # label_port: "" - # label_authkey: "" + # label_auth_key: "" label_message_format: "送信するメッセージのフォーマット" # tab Others @@ -186,7 +186,7 @@ ko: # tab Parameter label_ip_address: "OSC IP 주소" label_port: "OSC 포트" - label_authkey: "DeepL 인증키" + label_auth_key: "DeepL 인증키" label_message_format: "전송 형식" # tab Others diff --git a/view.py b/view.py index 52fb174c..28007ec5 100644 --- a/view.py +++ b/view.py @@ -591,7 +591,7 @@ class View(): # Translation Tab self.view_variable.CALLBACK_SET_USE_TRANSLATION_FEATURE = config_window_registers.get("callback_set_use_translation_feature", None) self.view_variable.CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE = config_window_registers.get("callback_set_ctranslate2_weight_type", None) - self.view_variable.CALLBACK_SET_DEEPL_AUTHKEY = config_window_registers.get("callback_set_deepl_authkey", None) + self.view_variable.CALLBACK_SET_DEEPL_AUTH_KEY = config_window_registers.get("callback_set_deepl_auth_key", None) # Transcription Tab (Mic) self.view_variable.CALLBACK_SET_MIC_HOST = config_window_registers.get("callback_set_mic_host", None) diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py index 574856fe..62ed881a 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/setting_box_translation/createSettingBox_Translation.py @@ -14,8 +14,8 @@ def createSettingBox_Translation(setting_box_wrapper, config_window, settings, v def optionmenu_ctranslate2_weight_type_callback(value): callFunctionIfCallable(view_variable.CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE, value) - def deepl_authkey_callback(value): - callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTHKEY, value) + def deepl_auth_key_callback(value): + callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTH_KEY, value) row=0 @@ -41,13 +41,13 @@ def createSettingBox_Translation(setting_box_wrapper, config_window, settings, v row+=1 - config_window.sb__deepl_authkey = createSettingBoxEntry( + config_window.sb__deepl_auth_key = createSettingBoxEntry( for_var_label_text=view_variable.VAR_LABEL_DEEPL_AUTH_KEY, for_var_desc_text=view_variable.VAR_DESC_DEEPL_AUTH_KEY, - entry_attr_name="sb__entry_deepl_authkey", + entry_attr_name="sb__entry_deepl_auth_key", entry_width=settings.uism.RESPONSIVE_UI_SIZE_INT_300, - entry_bind__Any_KeyRelease=lambda value: deepl_authkey_callback(value), + entry_bind__Any_KeyRelease=lambda value: deepl_auth_key_callback(value), entry_textvariable=view_variable.VAR_DEEPL_AUTH_KEY, ) - config_window.sb__deepl_authkey.grid(row=row, pady=0) + config_window.sb__deepl_auth_key.grid(row=row, pady=0) row+=1 \ No newline at end of file