Merge branch 'view' into develop

This commit is contained in:
Sakamoto Shiina
2024-01-22 22:57:03 +09:00
4 changed files with 9 additions and 47 deletions

View File

@@ -58,10 +58,6 @@ main_window:
deny_adjust_ui_size: "Keep it at this size" deny_adjust_ui_size: "Keep it at this size"
accept_adjust_ui_size: "Set it smaller and restart" accept_adjust_ui_size: "Set it smaller and restart"
# [Deprecated]
# translation_engine_limit_error: "It has automatically disabled the translation feature.\nAccess has been temporarily restricted\ndue to an excessive number of requests to the translation engine.\nPlease wait for a while, restart VRCT, and try again."
# accept_translation_engine_limit_error: Accept and close
selectable_language_window: selectable_language_window:
title_your_language: Select Your Language title_your_language: Select Your Language
@@ -131,6 +127,7 @@ config_window:
deepl_auth_key: deepl_auth_key:
label: DeepL Auth Key label: DeepL Auth Key
desc: Please select %{translator} on the main screen with DeepL_API when using. ※Some languages may not be supported.
mic_host: mic_host:
label: Mic Host/Driver label: Mic Host/Driver

View File

@@ -58,10 +58,6 @@ main_window:
deny_adjust_ui_size: このサイズのままで良い deny_adjust_ui_size: このサイズのままで良い
accept_adjust_ui_size: 小さく設定して再起動 accept_adjust_ui_size: 小さく設定して再起動
# [Deprecated]
# translation_engine_limit_error: "翻訳機能を自動的に停止しました。\n翻訳エンジンへのリクエストが多すぎるため\n一時的にアクセスが制限されています。\nしばらく待ってから、VRCTの再起動をしてもう一度試してみてください。"
# accept_translation_engine_limit_error: 了承して閉じる
selectable_language_window: selectable_language_window:
title_your_language: あなたの言語 title_your_language: あなたの言語
@@ -128,6 +124,7 @@ config_window:
deepl_auth_key: deepl_auth_key:
label: DeepL 認証キー label: DeepL 認証キー
desc: "使用の際は、メイン画面にある %{translator} をDeepL_APIに変更してください。\n※対応していない言語もあります。"
mic_host: mic_host:
label: マイク(ホスト/ドライバー) label: マイク(ホスト/ドライバー)

View File

@@ -57,11 +57,6 @@ main_window:
accept_adjust_ui_size: "작게 줄이고 재부팅" accept_adjust_ui_size: "작게 줄이고 재부팅"
# [Deprecated]
# translation_engine_limit_error: "번역 기능이 자동으로 중지되었습니다. \n번역 엔진에 대한 요청이 너무 많아 \n일시적으로 사용이 제한되었습니다. \n잠시 기다렸다가 VRCT를 재부팅한 후 다시 시도해 보십시오."
# accept_translation_engine_limit_error: 확인하고 닫기
selectable_language_window: selectable_language_window:
title_your_language: 당신의 언어 title_your_language: 당신의 언어
title_target_language: 상대방의 언어 title_target_language: 상대방의 언어

41
view.py
View File

@@ -282,8 +282,13 @@ class View():
CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE=None, CALLBACK_SET_CTRANSLATE2_WEIGHT_TYPE=None,
VAR_CTRANSLATE2_WEIGHT_TYPE=StringVar(value=self.getSelectableCtranslate2WeightTypeDict()[config.WEIGHT_TYPE]), VAR_CTRANSLATE2_WEIGHT_TYPE=StringVar(value=self.getSelectableCtranslate2WeightTypeDict()[config.WEIGHT_TYPE]),
VAR_LABEL_DEEPL_AUTH_KEY=StringVar(value=i18n.t("config_window.deepl_auth_key.label")), VAR_LABEL_DEEPL_AUTH_KEY=StringVar(value=i18n.t( "config_window.deepl_auth_key.label")),
VAR_DESC_DEEPL_AUTH_KEY=None, VAR_DESC_DEEPL_AUTH_KEY=StringVar(
value=i18n.t(
"config_window.deepl_auth_key.desc",
translator=i18n.t("main_window.translator")
)
),
CALLBACK_SET_DEEPL_AUTH_KEY=None, CALLBACK_SET_DEEPL_AUTH_KEY=None,
VAR_DEEPL_AUTH_KEY=StringVar(value=config.AUTH_KEYS["DeepL_API"]), VAR_DEEPL_AUTH_KEY=StringVar(value=config.AUTH_KEYS["DeepL_API"]),
@@ -1337,21 +1342,6 @@ class View():
# ※Below 40% of the UI size is not supported, and we cannot handle it at this time. # ※Below 40% of the UI size is not supported, and we cannot handle it at this time.
# [Deprecated]
# def translationEngineLimitErrorProcess(self):
# # turn off translation switch.
# vrct_gui.translation_switch_box.deselect()
# vrct_gui.translation_frame.markToggleManually(False)
# # disable translation feature.
# vrct_gui._changeMainWindowWidgetsStatus("disabled", ["translation_switch"], to_lock_state=True)
# # print system message that mention to stopped translation feature.
# view.printToTextbox_TranslationEngineLimitError()
# view.showTheLimitOfTranslationEngineConfirmationModal()
# Show Modal # Show Modal
def _showDisplayOverUiSizeConfirmationModal(self): def _showDisplayOverUiSizeConfirmationModal(self):
@@ -1390,23 +1380,6 @@ class View():
# [Deprecated]
# def showTheLimitOfTranslationEngineConfirmationModal(self):
# self.foregroundOffIfForegroundEnabled()
# self.view_variable.VAR_LABEL_MAIN_WINDOW_COVER_MESSAGE.set("")
# vrct_gui.main_window_cover.show()
# self.view_variable.CALLBACK_HIDE_CONFIRMATION_MODAL=self._hideInformationModal
# self.view_variable.CALLBACK_ACCEPTED_CONFIRMATION_MODAL=self._hideInformationModal
# self.view_variable.VAR_MESSAGE_CONFIRMATION_MODAL.set(i18n.t("main_window.confirmation_message.translation_engine_limit_error"))
# self.view_variable.VAR_LABEL_CONFIRMATION_MODAL_ACCEPT_BUTTON.set(i18n.t("main_window.confirmation_message.accept_translation_engine_limit_error"))
# vrct_gui.information_modal.show(hide_title_bar=False, close_when_focusout=False)
# Hide Modal # Hide Modal
def _hideInformationModal(self): def _hideInformationModal(self):
vrct_gui.information_modal.hide() vrct_gui.information_modal.hide()