From c9e40fc682992885e0d459dd427f86500992e82e Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:18:03 +0900 Subject: [PATCH] [Update] Adjust localizations. (every yaml key and lines are same with en.yml) --- locales/en.yml | 16 ++- locales/ja.yml | 10 +- locales/ko.yml | 100 +++++++++++++++--- locales/zh-Hans.yml | 87 ++++++++++++--- locales/zh-Hant.yml | 91 ++++++++++++---- .../setting_box/device/Device.jsx | 10 +- 6 files changed, 244 insertions(+), 70 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 7cdd86aa..175bbadb 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -14,7 +14,7 @@ common_error: failed_download_weight_whisper: "Whisper weight download error." translation_limit: "Translation engine limit error." deepl_auth_key_invalid_length: "DeepL auth key length is not correct." - deepl_auth_key_failed_authentication: "Authentication failure of deepL auth key." + deepl_auth_key_failed_authentication: "Auth Key is incorrect or Usage limit reached." invalid_value_mic_record_timeout: "It cannot be greater than '{{mic_phrase_timeout_label}}' with a value of 0 or more." invalid_value_mic_phrase_timeout: "It cannot be set lower than '{{mic_record_timeout_label}}' with a value of 0 or more." @@ -29,6 +29,7 @@ main_page: transcription_send: "Voice2Chatbox" transcription_receive: "Speaker2Log" foreground: "Foreground" + language_settings: "Language Settings" your_language: "Your Language" translate_each_other_label: "Translate Each Other" @@ -83,11 +84,11 @@ config_page: device: check_volume: "Check Volume" + label_auto_select: "Auto Select" + label_host: "Host/Driver" + label_device: "Device" mic_host_device: label: "Mic Device" - label_auto_select: "Auto Select" - label_host: "Host/Driver" - label_device: "Device" mic_dynamic_energy_threshold: label_for_automatic: "Mic Energy Threshold (Current Setting: Automatic)" desc_for_automatic: "Automatically determine microphone input sensitivity." @@ -95,8 +96,6 @@ config_page: desc_for_manual: "Manually determine the microphone input sensitivity using the slider. Press the microphone icon to input your voice and adjust the sensitivity while monitoring the volume." speaker_device: label: "Speaker Device" - label_auto_select: "Auto Select" - label_device: "Device" speaker_dynamic_energy_threshold: label_for_automatic: "Speaker Energy Threshold (Current Setting: Automatic)" desc_for_automatic: "Automatically determine speaker input sensitivity." @@ -133,11 +132,10 @@ config_page: 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." + open_auth_key_webpage: "Open DeepL Account Webpage" save: "Save" edit: "Edit" - open_auth_key_webpage: "Open DeepL Account Webpage" auth_key_success: "Auth key update completed." - auth_key_error: "Auth Key is incorrect or Usage limit reached." transcription: section_label_mic: "Mic" @@ -197,11 +195,11 @@ config_page: ui_scaling: "UI Scaling" display_duration: "Display duration" fadeout_duration: "Fadeout duration" + common_settings: "Common Settings" tracker: "Tracker" hmd: "HMD" left_hand: "Left hand" right_hand: "Right hand" - common_settings: "Common Settings" overlay_show_only_translated_messages: label: "Show Only Translated Messages" diff --git a/locales/ja.yml b/locales/ja.yml index b372bf9e..8cecd68e 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -29,6 +29,7 @@ main_page: transcription_send: "音声認識 マイク" transcription_receive: "音声認識 スピーカー" foreground: "最前面固定" + language_settings: "言語設定" your_language: "あなたの言語" translate_each_other_label: "双方向に翻訳" @@ -83,11 +84,11 @@ config_page: device: check_volume: "音量チェック" + label_auto_select: "自動選択" + label_host: "ホスト/ドライバー" + label_device: "デバイス" mic_host_device: label: "マイク (デバイス)" - label_auto_select: "自動選択" - label_host: "ホスト/ドライバー" - label_device: "デバイス" mic_dynamic_energy_threshold: label_for_automatic: "マイク入力感度の調整 (現在の設定: 自動)" desc_for_automatic: "マイクの入力感度を自動的に調節する。" @@ -95,7 +96,6 @@ config_page: desc_for_manual: "スライダーを調整して入力感度を手動で決められます。マイクのアイコンを押すと、実際に声を入力し、音量を確認しながら調節できます。" speaker_device: label: "スピーカー (デバイス)" - label_auto_select: "自動選択" speaker_dynamic_energy_threshold: label_for_automatic: "スピーカー入力感度の調整 (現在の設定: 自動)" desc_for_automatic: "スピーカーの入力感度を自動的に調節する。" @@ -196,10 +196,10 @@ config_page: display_duration: "表示時間" fadeout_duration: "フェードアウト時間" common_settings: "共通設定" + tracker: "表示するトラッカーの位置" hmd: "HMD" left_hand: "左手" right_hand: "右手" - tracker: "表示するトラッカーの位置" overlay_show_only_translated_messages: label: "翻訳後のメッセージのみ表示する" diff --git a/locales/ko.yml b/locales/ko.yml index 289db240..853c179e 100644 --- a/locales/ko.yml +++ b/locales/ko.yml @@ -29,6 +29,7 @@ main_page: transcription_send: "음성인식 (마이크)" transcription_receive: "음성인식 (스피커)" foreground: "항상 위로" + language_settings: "언어 설정" your_language: "당신의 언어" translate_each_other_label: "양방향으로 번역" @@ -37,12 +38,18 @@ main_page: translator: "번역 엔진" # translator_label_default: "기본값" + translator_selector: + is_selected_same_language: + message_log: all: "전체" sent: "전송" received: "수신" system: "시스템" + show_resend_button: + resend_button_on_hover_desc: + state_text_enabled: "Enabled" state_text_disabled: "Disabled" @@ -54,24 +61,33 @@ main_page: updating: "업데이트 중..." update_modal: - update_software: "새 버전을 다운로드하고 재시작합니다.\n조금 시간이 걸립니다. 지금 시작할까요?" - deny_update_software: "나중에 하기" - accept_update_software: "업데이트 및 재시작" - + cpu_desc: + cuda_desc: + cuda_compare_cpu_desc: + cuda_disk_space_desc: + close_modal: + download_latest_and_restart: + is_latest_version_already: + is_current_compute_device: config_page: version: "버전 {{version}}" + model_download_button_label: side_menu_labels: + device: appearance: "모양" translation: "번역" transcription: "음성인식" others: "기타" + hotkeys: advanced_settings: "고급 설정" device: - mic_host: - label: "마이크 호스트/드라이버" - mic_device: + check_volume: + label_auto_select: + label_host: "호스트/드라이버" + label_device: + mic_host_device: label: "마이크 장치" mic_dynamic_energy_threshold: label_for_automatic: "음성 입력 최소 볼륨 (현재 설정: 자동)" @@ -111,15 +127,20 @@ config_page: desc: "오프라인 번역 시의 번역 모델을 변경합니다." small: "일반 모델 ({{capacity}})" large: "정밀 모델 ({{capacity}})" + ctranslate2_compute_device: + label: deepl_auth_key: label: "DeepL 인증키" desc: "사용시 메인화면에 있는 {{translator}}를 DeepL_API로 변경해 주세요.\n지원하지 않는 언어도 있습니다." open_auth_key_webpage: "DeepL 계정 페이지 열기" + save: + edit: auth_key_success: "인증키 갱신이 완료되었습니다." transcription: section_label_mic: "마이크" section_label_speaker: "스피커" + section_label_transcription_engines: mic_record_timeout: label: "최대 무음 시간" desc: "무음을 감지하고 설정된 시간(초)만큼의 시간이 지나면 음성 입력이 종료된 것으로 판단합니다." @@ -143,29 +164,76 @@ config_page: speaker_max_phrase: label: "최대 입력 절(phrases) 수" desc: "식된 단어 수의 하한값으로, 이 수치를 초과하는 경우에만 결과를 로그에 표시합니다." - use_whisper_feature: - label: "음성 인식에 Whisper 모델을 사용" - desc: "일부 언어에서는 음성 인식의 정확도가 향상될 수 있어요. 음성 인식 중 CPU 사용률이 올라가기 때문에 사용하시는 PC의 사양을 고려하여 이 기능을 사용해주세요." + select_transcription_engine: + label: whisper_weight_type: label: "Whisper 모델 타입" - # desc: "기본적으로 용량이 많은 모델일수록 정밀도는 높지만, 음성 인식의 시간이 늘어나며 CPU 사용률도 늘어나요.각 모델의 설명은 문서를 참조해주세요.\n※특히 medium보다 용량이 큰 모델은 CPU의 성능에 따라서는 사용조차 어려울 수 있어요. " + desc: model_template: "{{model_name}} 모델 ({{capacity}})" recommended_model_template: "{{model_name}} 모델 ({{capacity}}) (권장)" + whisper_compute_device: + label: + + vr: + single_line: + multi_lines: + overlay_enable: + restore_default_settings: + position: + rotation: + x_position: + y_position: + z_position: + x_rotation: + y_rotation: + z_rotation: + sample_text_button: + start: + stop: + sample_text: + opacity: + ui_scaling: + display_duration: + fadeout_duration: + common_settings: + tracker: + hmd: + left_hand: + right_hand: + overlay_show_only_translated_messages: + label: others: + section_label_sounds: auto_clear_the_message_box: label: "챗박스 자동 삭제" send_only_translated_messages: label: "번역된 메시지만 전송" - notice_xsoverlay: - label: "XSOverlay에서 알림 수신 기능 활성화" - desc: "수신된 메시지를 XSOverlay의 기능을 통해 알림으로 받아볼 수 있습니다." auto_export_message_logs: label: "대화 로그 자동 저장" desc: "logs 폴더에 텍스트 파일로 로그가 저장됩니다." + vrc_mic_mute_sync: + label: + desc: send_message_to_vrc: label: "VRChat에 메시지 전송" desc: "VRChat에 메시지를 보내지 않고 사용할 수 있는 방법이 있지만 지원되지 않습니다. VRChat에 메시지를 보내려면 이 기능을 활성화하세요." + notification_vrc_sfx: + label: + desc: + send_received_message_to_vrc: + label: + desc: + + hotkeys: + toggle_vrct_visibility: + label: + toggle_translation: + label: + toggle_transcription_send: + label: + toggle_transcription_receive: + label: advanced_settings: osc_ip_address: @@ -173,4 +241,6 @@ config_page: osc_port: label: "OSC 포트" open_config_filepath: - label: "설정 파일 열기" \ No newline at end of file + label: "설정 파일 열기" + switch_compute_device: + label: \ No newline at end of file diff --git a/locales/zh-Hans.yml b/locales/zh-Hans.yml index 9a7eff18..4e301a92 100644 --- a/locales/zh-Hans.yml +++ b/locales/zh-Hans.yml @@ -29,6 +29,7 @@ main_page: transcription_send: "你的语音转文字" transcription_receive: "他人语音转文字" foreground: "顶层显示" + language_settings: "语言设定" your_language: "你的语言" translate_each_other_label: "双向翻译" @@ -37,12 +38,18 @@ main_page: translator: "翻译器" # translator_label_default: "默认" + translator_selector: + is_selected_same_language: + message_log: all: "全部" sent: "发送" received: "接受" system: "系统" + show_resend_button: + resend_button_on_hover_desc: + state_text_enabled: "启用" state_text_disabled: "停用" @@ -54,24 +61,33 @@ main_page: updating: "更新中..." update_modal: - update_software_desc: "下载新版本并自动启动\n会花少许时间,现在更新吗?" - deny_update_software: "稍后再说" - accept_update_software: "更新后自动启动" - + cpu_desc: + cuda_desc: + cuda_compare_cpu_desc: + cuda_disk_space_desc: + close_modal: + download_latest_and_restart: + is_latest_version_already: + is_current_compute_device: config_page: version: "版本 {{version}}" + model_download_button_label: side_menu_labels: + device: appearance: "外观" translation: "翻译" transcription: "转录" others: "其他" + hotkeys: advanced_settings: "高级设置" device: - mic_host: - label: "麦克风(host/driver)" - mic_device: + check_volume: "Check Volume" + label_auto_select: "Auto Select" + label_host: "Host/Driver" + label_device: "Device" + mic_host_device: label: "麦克风 (设备)" mic_dynamic_energy_threshold: label_for_automatic: "麦克风输入阈值(当前设置:自动)" @@ -111,15 +127,20 @@ config_page: desc: "可以选择用于离线翻译的翻译模型" small: "普通模型 ({{capacity}})" large: "高精度模型 ({{capacity}})" + ctranslate2_compute_device: + label: deepl_auth_key: label: "DeepL 授权密匙" desc: "在使用的时候,使用时请在主屏幕上通过 DeepL_API 选择 {{translator}}\n※某些语言可能不支持" open_auth_key_webpage: "打开DeepL账号页面" + save: + edit: auth_key_success: "授权密匙认证完成。" transcription: section_label_mic: "你的麦克风" section_label_speaker: "他人声音" + section_label_transcription_engines: mic_record_timeout: label: "语音输入结束后的静音时间" desc: "当检测到静音并经过设定的秒数后,语音输入即被视为完成。" @@ -143,31 +164,47 @@ config_page: speaker_max_phrase: label: "语音接收时的最小单词数" desc: "转录字数的下限,只有超过这个数字,才会记录转录结果" - use_whisper_feature: - label: "使用Whisper模型翻译" - desc: "在某些语言中,语音识别的准确性可能会提高.语音识别的过程中,CPU占有率可能会提高,请根据你的pc性能来决定是否使用它." + select_transcription_engine: + label: whisper_weight_type: label: "选择某个Whisper模型" - # desc: |- - # 通常来说,容量越大的模型精度也会越高,但也会增加文字显示所需要的时间和CPU的使用率。请浏览各个模型的文档 - # ※特别是大于medium容量的模型、因CPU性能原因甚至无法使用。 + desc: model_template: "{{model_name}} 模型 ({{capacity}})" recommended_model_template: "{{model_name}} 模型 ({{capacity}}) (推荐)" + whisper_compute_device: + label: vr: + single_line: + multi_lines: + overlay_enable: restore_default_settings: "恢复默认设置" - opacity: "透明度" - ui_scaling: "大小" + position: + rotation: x_position: "X轴(左右)" y_position: "Y轴(上下)" z_position: "Z轴(前后)" x_rotation: "X轴旋转" y_rotation: "Y轴旋转" z_rotation: "Z轴旋转" + sample_text_button: + start: + stop: + sample_text: + opacity: "透明度" + ui_scaling: "大小" display_duration: "显示持续时间" fadeout_duration: "渐隐持续时间" + common_settings: + tracker: + hmd: + left_hand: + right_hand: + overlay_show_only_translated_messages: + label: others: + section_label_sounds: auto_clear_the_message_box: label: "发言后自动清空chatbox" send_only_translated_messages: @@ -181,6 +218,22 @@ config_page: send_message_to_vrc: label: "发送信息至VRChat" desc: "不发送信息至VRChat的情况下也能使用它,但该功能现在并未完成.在想要发送信息时,请不要忘记打开这个功能." + notification_vrc_sfx: + label: + desc: + send_received_message_to_vrc: + label: + desc: + + hotkeys: + toggle_vrct_visibility: + label: + toggle_translation: + label: + toggle_transcription_send: + label: + toggle_transcription_receive: + label: advanced_settings: osc_ip_address: @@ -188,4 +241,6 @@ config_page: osc_port: label: "OSC 端口" open_config_filepath: - label: "打开设置文件" \ No newline at end of file + label: "打开设置文件" + switch_compute_device: + label: \ No newline at end of file diff --git a/locales/zh-Hant.yml b/locales/zh-Hant.yml index 7b074da9..a204619f 100644 --- a/locales/zh-Hant.yml +++ b/locales/zh-Hant.yml @@ -29,6 +29,7 @@ main_page: transcription_send: "麥克風轉文字" transcription_receive: "喇叭轉文字" foreground: "最上層顯示" + language_settings: "語言設定" your_language: "你的語言" translate_each_other_label: "互相翻譯" @@ -37,12 +38,18 @@ main_page: translator: "翻譯器" # translator_label_default: "預設" + translator_selector: + is_selected_same_language: + message_log: all: "全部" sent: "已發送" received: "已接收" system: "系統" + show_resend_button: + resend_button_on_hover_desc: + state_text_enabled: "啟用" state_text_disabled: "停用" @@ -54,25 +61,33 @@ main_page: updating: "正在更新..." update_modal: - update_software_desc: "下載新版本並自動更新 VRCT。\n會花一些時間,現在更新嗎?" - deny_update_software: "稍後再說" - accept_update_software: "更新" - + cpu_desc: + cuda_desc: + cuda_compare_cpu_desc: + cuda_disk_space_desc: + close_modal: + download_latest_and_restart: + is_latest_version_already: + is_current_compute_device: config_page: version: "版本 {{version}}" + model_download_button_label: side_menu_labels: + device: appearance: "外觀" translation: "翻譯" transcription: "轉錄" - vr: "VR" others: "其他" + hotkeys: advanced_settings: "進階設定" device: - mic_host: - label: "麥克風 Host/Driver" - mic_device: + check_volume: "Check Volume" + label_auto_select: "Auto Select" + label_host: "Host/Driver" + label_device: "Device" + mic_host_device: label: "麥克風裝置" mic_dynamic_energy_threshold: label_for_automatic: "麥克風能量閾值(當前設置:自動)" @@ -112,15 +127,20 @@ config_page: desc: "你可以選擇用於離線翻譯引擎的翻譯模型。" small: "基本模型({{capacity}})" large: "高準確率模型({{capacity}})" + ctranslate2_compute_device: + label: deepl_auth_key: label: "DeepL 授權金鑰" desc: "使用 DeepL API 時請在主螢幕選擇 {{translator}}。※可能不支援某些語言。" open_auth_key_webpage: "打開 DeepL 帳號頁面" + save: + edit: auth_key_success: "授權金鑰更新完成。" transcription: section_label_mic: "麥克風" section_label_speaker: "喇叭" + section_label_transcription_engines: mic_record_timeout: label: "麥克風音訊 - 判定結束時間" desc: "麥克風未收到音訊後,結束一段話的判定時間(秒)。" @@ -144,38 +164,51 @@ config_page: speaker_max_phrase: label: "喇叭音訊 - 最大單詞數量" desc: "只有在單詞超過此數量時,才會記錄結果並發送到 VRChat。" - use_whisper_feature: - label: "使用 Whisper 模型進行轉錄" - desc: "在某些語言中,語音識別的準確性可能會提高。使用語音識別時,CPU使用率會增加,請根據你的PC規格考慮是否使用此功能。" + select_transcription_engine: + label: whisper_weight_type: label: "選擇 Whisper 模型" - # desc: |- - # 一般來說,容量較大的模型往往具有更高的準確性,但這也導致轉錄時間較長和CPU使用率增加。請參考文檔了解各模型的說明。 - # ※特別是超過中等大小的模型,根據CPU性能可能難以運行。 + desc: model_template: "{{model_name}}模型({{capacity}})" recommended_model_template: "{{model_name}}模型({{capacity}})(推薦)" + whisper_compute_device: + label: vr: + single_line: + multi_lines: + overlay_enable: restore_default_settings: "恢復預設設定" - opacity: "透明度" - ui_scaling: "介面縮放" + position: + rotation: x_position: "X軸(左右)" y_position: "Y軸(上下)" z_position: "Z軸(前後)" x_rotation: "X軸旋轉" y_rotation: "Y軸旋轉" z_rotation: "Z軸旋轉" + sample_text_button: + start: + stop: + sample_text: + opacity: "透明度" + ui_scaling: "介面縮放" display_duration: "顯示持續時間" fadeout_duration: "淡出持續時間" + common_settings: + tracker: + hmd: + left_hand: + right_hand: + overlay_show_only_translated_messages: + label: others: + section_label_sounds: auto_clear_the_message_box: label: "自動清除 Chatbox" send_only_translated_messages: label: "僅發送翻譯訊息" - notice_xsoverlay: - label: "XSOverlay 通知" - desc: "從 XSOverlay 的通知功能接收訊息。" auto_export_message_logs: label: "自動匯出訊息記錄" desc: "自動將對話訊息匯出為文字文件。" @@ -185,6 +218,22 @@ config_page: send_message_to_vrc: label: "發送訊息到 VRChat" desc: "當你打算向 VRChat 發送訊息時啟用此功能。" + notification_vrc_sfx: + label: + desc: + send_received_message_to_vrc: + label: + desc: + + hotkeys: + toggle_vrct_visibility: + label: + toggle_translation: + label: + toggle_transcription_send: + label: + toggle_transcription_receive: + label: advanced_settings: osc_ip_address: @@ -192,4 +241,6 @@ config_page: osc_port: label: "OSC 端口" open_config_filepath: - label: "打開設定文件" \ No newline at end of file + label: "打開設定文件" + switch_compute_device: + label: \ No newline at end of file diff --git a/src-ui/app/config_page/setting_section/setting_box/device/Device.jsx b/src-ui/app/config_page/setting_section/setting_box/device/Device.jsx index 958cddf8..56b11398 100644 --- a/src-ui/app/config_page/setting_section/setting_box/device/Device.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/device/Device.jsx @@ -82,7 +82,7 @@ const Mic_Container = () => {
-

{t("config_page.device.mic_host_device.label_auto_select")}

+

{t("config_page.device.label_auto_select")}

{
-

{t("config_page.device.mic_host_device.label_host")}

+

{t("config_page.device.label_host")}

{
-

{t("config_page.device.mic_host_device.label_device")}

+

{t("config_page.device.label_device")}

{
-

{t("config_page.device.speaker_device.label_auto_select")}

+

{t("config_page.device.label_auto_select")}

{
-

{t("config_page.device.mic_host_device.label_device")}

+

{t("config_page.device.label_device")}