[Chore] 変数名変更: AUTHKEY -> AUTH_KEY のように分けた。
This commit is contained in:
@@ -506,8 +506,8 @@ def callbackSetCtranslate2WeightType(value):
|
|||||||
view.useTranslationFeatureProcess("Disable")
|
view.useTranslationFeatureProcess("Disable")
|
||||||
# CTranslate2 weight is not downloaded
|
# CTranslate2 weight is not downloaded
|
||||||
|
|
||||||
def callbackSetDeeplAuthkey(value):
|
def callbackSetDeeplAuthKey(value):
|
||||||
print("callbackSetDeeplAuthkey", str(value))
|
print("callbackSetDeeplAuthKey", str(value))
|
||||||
if len(value) == 39:
|
if len(value) == 39:
|
||||||
result = model.authenticationTranslatorDeepLAuthKey(auth_key=value)
|
result = model.authenticationTranslatorDeepLAuthKey(auth_key=value)
|
||||||
if result is True:
|
if result is True:
|
||||||
@@ -948,7 +948,7 @@ def createMainWindow():
|
|||||||
# Translation Tab
|
# Translation Tab
|
||||||
"callback_set_use_translation_feature": callbackSetUseTranslationFeature,
|
"callback_set_use_translation_feature": callbackSetUseTranslationFeature,
|
||||||
"callback_set_ctranslate2_weight_type": callbackSetCtranslate2WeightType,
|
"callback_set_ctranslate2_weight_type": callbackSetCtranslate2WeightType,
|
||||||
"callback_set_deepl_authkey": callbackSetDeeplAuthkey,
|
"callback_set_deepl_auth_key": callbackSetDeeplAuthKey,
|
||||||
|
|
||||||
# Transcription Tab (Mic)
|
# Transcription Tab (Mic)
|
||||||
"callback_set_mic_host": callbackSetMicHost,
|
"callback_set_mic_host": callbackSetMicHost,
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ en:
|
|||||||
# tab Parameter
|
# tab Parameter
|
||||||
label_ip_address: "OSC IP address"
|
label_ip_address: "OSC IP address"
|
||||||
label_port: "OSC Port"
|
label_port: "OSC Port"
|
||||||
label_authkey: "DeepL Auth Key"
|
label_auth_key: "DeepL Auth Key"
|
||||||
label_message_format: "Message Format"
|
label_message_format: "Message Format"
|
||||||
|
|
||||||
# tab Others
|
# tab Others
|
||||||
@@ -121,7 +121,7 @@ ja:
|
|||||||
# tab Parameter
|
# tab Parameter
|
||||||
# label_ip_address: ""
|
# label_ip_address: ""
|
||||||
# label_port: ""
|
# label_port: ""
|
||||||
# label_authkey: ""
|
# label_auth_key: ""
|
||||||
label_message_format: "送信するメッセージのフォーマット"
|
label_message_format: "送信するメッセージのフォーマット"
|
||||||
|
|
||||||
# tab Others
|
# tab Others
|
||||||
@@ -186,7 +186,7 @@ ko:
|
|||||||
# tab Parameter
|
# tab Parameter
|
||||||
label_ip_address: "OSC IP 주소"
|
label_ip_address: "OSC IP 주소"
|
||||||
label_port: "OSC 포트"
|
label_port: "OSC 포트"
|
||||||
label_authkey: "DeepL 인증키"
|
label_auth_key: "DeepL 인증키"
|
||||||
label_message_format: "전송 형식"
|
label_message_format: "전송 형식"
|
||||||
|
|
||||||
# tab Others
|
# tab Others
|
||||||
|
|||||||
2
view.py
2
view.py
@@ -591,7 +591,7 @@ class View():
|
|||||||
# Translation Tab
|
# 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_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_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)
|
# Transcription Tab (Mic)
|
||||||
self.view_variable.CALLBACK_SET_MIC_HOST = config_window_registers.get("callback_set_mic_host", None)
|
self.view_variable.CALLBACK_SET_MIC_HOST = config_window_registers.get("callback_set_mic_host", None)
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ def createSettingBox_Translation(setting_box_wrapper, config_window, settings, v
|
|||||||
def optionmenu_ctranslate2_weight_type_callback(value):
|
def optionmenu_ctranslate2_weight_type_callback(value):
|
||||||
callFunctionIfCallable(view_variable.CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE, value)
|
callFunctionIfCallable(view_variable.CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE, value)
|
||||||
|
|
||||||
def deepl_authkey_callback(value):
|
def deepl_auth_key_callback(value):
|
||||||
callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTHKEY, value)
|
callFunctionIfCallable(view_variable.CALLBACK_SET_DEEPL_AUTH_KEY, value)
|
||||||
|
|
||||||
|
|
||||||
row=0
|
row=0
|
||||||
@@ -41,13 +41,13 @@ def createSettingBox_Translation(setting_box_wrapper, config_window, settings, v
|
|||||||
row+=1
|
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_label_text=view_variable.VAR_LABEL_DEEPL_AUTH_KEY,
|
||||||
for_var_desc_text=view_variable.VAR_DESC_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_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,
|
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
|
row+=1
|
||||||
Reference in New Issue
Block a user