From 96c8d071f1e3847676ff72bf6c85e80373f2addc Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Mon, 22 Jan 2024 22:56:14 +0900 Subject: [PATCH] [Chore] Remove the code that is no longer in use. --- locales/en.yml | 4 ---- locales/ja.yml | 4 ---- locales/ko.yml | 5 ----- view.py | 32 -------------------------------- 4 files changed, 45 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index c3a0b7a1..2806ea91 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -58,10 +58,6 @@ main_window: deny_adjust_ui_size: "Keep it at this size" 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: title_your_language: Select Your Language diff --git a/locales/ja.yml b/locales/ja.yml index 1b7e05ad..6bedafbd 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -58,10 +58,6 @@ main_window: deny_adjust_ui_size: このサイズのままで良い accept_adjust_ui_size: 小さく設定して再起動 -# [Deprecated] - # translation_engine_limit_error: "翻訳機能を自動的に停止しました。\n翻訳エンジンへのリクエストが多すぎるため\n一時的にアクセスが制限されています。\nしばらく待ってから、VRCTの再起動をしてもう一度試してみてください。" - # accept_translation_engine_limit_error: 了承して閉じる - selectable_language_window: title_your_language: あなたの言語 diff --git a/locales/ko.yml b/locales/ko.yml index ff30399f..4fee91db 100644 --- a/locales/ko.yml +++ b/locales/ko.yml @@ -57,11 +57,6 @@ main_window: accept_adjust_ui_size: "작게 줄이고 재부팅" -# [Deprecated] - # translation_engine_limit_error: "번역 기능이 자동으로 중지되었습니다. \n번역 엔진에 대한 요청이 너무 많아 \n일시적으로 사용이 제한되었습니다. \n잠시 기다렸다가 VRCT를 재부팅한 후 다시 시도해 보십시오." - # accept_translation_engine_limit_error: 확인하고 닫기 - - selectable_language_window: title_your_language: 당신의 언어 title_target_language: 상대방의 언어 diff --git a/view.py b/view.py index cb3a334a..34711688 100644 --- a/view.py +++ b/view.py @@ -1342,21 +1342,6 @@ class View(): # ※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 def _showDisplayOverUiSizeConfirmationModal(self): @@ -1395,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 def _hideInformationModal(self): vrct_gui.information_modal.hide()