diff --git a/locales/en.yml b/locales/en.yml
index fe6c089b..f139788d 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -48,14 +48,6 @@ main_page:
# Opened VRCT Documents page in your web browser.
# For any issues, requests, or inquiries, please feel free to contact us through the links at the bottom of the documents page, the "Contact Form," or via X (formerly Twitter)!
- update_available: New version is here!
- update_software_desc: |-
- Download the new version and automatically restart the app.
- It'll take a while. Do it now?
- deny_update_software: Do it later
- accept_update_software: Update and Restart
- updating: Now updating...
-
state_text_enabled: Enabled
state_text_disabled: Disabled
@@ -63,6 +55,24 @@ main_page:
title_your_language: Select Your Language
title_target_language: Select Target Language
+ update_available: New version is here!
+ updating: Now updating...
+
+update_modal:
+ update_software_desc: |-
+ Download the new version and automatically restart the app.
+ It'll take a while. Do it now?
+ deny_update_software: Do it later
+ accept_update_software: Update and Restart
+
+switch_compute_device_modal:
+ close_modal: Close
+ switch_to_cpu_desc: Download and replace with the CPU version. The GPU will no longer be selectable as the compute device, and only the CPU will be used.
+ switch_to_cuda_desc: Download and replace with the CUDA (GPU-selectable) version. It will be able to select both the CPU and GPU, but it will require approximately 5GB of disk space.
+ switch_to_cpu_button: Switch to CPU version
+ switch_to_cuda_button: Switch to CUDA (GPU) version
+ restart_desc: The app will automatically restart.
+
config_page:
version: version {{version}}
# config_title: Settings
@@ -244,4 +254,6 @@ config_page:
osc_port:
label: OSC Port
open_config_filepath:
- label: Open Config File
\ No newline at end of file
+ label: Open Config File
+ switch_compute_device:
+ label: Switch VRCT to CPU/GPU Version
\ No newline at end of file
diff --git a/locales/ja.yml b/locales/ja.yml
index dc6ffd97..bdac7184 100644
--- a/locales/ja.yml
+++ b/locales/ja.yml
@@ -47,14 +47,6 @@ main_page:
# お使いのブラウザで、VRCTのドキュメントを開きました。使用方法などはそちらに記載されています。
# 不具合、ご要望、その他お問い合わせはドキュメント最下部にあるLinks、「お問合せフォーム」もしくはX (元Twitter) にて気軽にご連絡ください!
- update_available: 新しいバージョンが出ました!
- update_software_desc: |-
- 新しいバージョンをダウンロードしてアプリを再起動します。
- 少し時間がかかります。今すぐ行いますか?
- deny_update_software: 後でする
- accept_update_software: アップデートして再起動
- updating: アップデート中...
-
state_text_enabled: 有効
state_text_disabled: 無効
@@ -62,6 +54,28 @@ main_page:
title_your_language: あなたの言語
title_target_language: 相手の言語
+ update_available: 新しいバージョンが出ました!
+ updating: アップデート中...
+
+update_modal:
+ update_software_desc: |-
+ 新しいバージョンをダウンロードしてアプリを再起動します。
+ 少し時間がかかります。今すぐ行いますか?
+ deny_update_software: 後でする
+ accept_update_software: アップデートして再起動
+
+switch_compute_device_modal:
+ close_modal: 閉じる
+ switch_to_cpu_desc: |-
+ CPUバージョンをダウンロードして置き換えます。
+ 処理デバイスとしてGPUを選択できなくなり、CPUのみを使用するようになります。
+ switch_to_cuda_desc: |-
+ CUDA(GPU選択可能)バージョンをダウンロードして置き換えます。
+ CPUとGPUの両方を選択できるようになりますが、約5GBのディスク容量が必要になります。
+ switch_to_cpu_button: CPUバージョンに切り替える
+ switch_to_cuda_button: CUDA(GPU)バージョンに切り替える
+ restart_desc: アプリが自動的に再起動します。
+
config_page:
version: バージョン {{version}}
# config_title: 設定
@@ -243,4 +257,6 @@ config_page:
osc_port:
label: OSC Port
open_config_filepath:
- label: 設定ファイルを開く
\ No newline at end of file
+ label: 設定ファイルを開く
+ switch_compute_device:
+ label: VRCT CPU/GPUバージョンの切り替え
\ No newline at end of file
diff --git a/locales/ko.yml b/locales/ko.yml
index 7547b63d..951f94fb 100644
--- a/locales/ko.yml
+++ b/locales/ko.yml
@@ -44,14 +44,6 @@ main_page:
# 웹 브라우저에서 VRCT 문서 페이지가 열렸습니다.
# 문제, 요청 또는 문의 사항이 있는 경우 문서 페이지 하단의 링크, '문의 양식' 또는 X(구 트위터)를 통해 언제든지 문의해 주세요!
- update_available: 새로운 버전이 나왔습니다!
- update_software: |-
- 새 버전을 다운로드하고 재시작합니다.
- 조금 시간이 걸립니다. 지금 시작할까요?
- deny_update_software: 나중에 하기
- accept_update_software: 업데이트 및 재시작
- updating: 업데이트 중...
-
state_text_enabled: Enabled
state_text_disabled: Disabled
@@ -59,6 +51,17 @@ main_page:
title_your_language: 당신의 언어
title_target_language: 상대방의 언어
+ update_available: 새로운 버전이 나왔습니다!
+ updating: 업데이트 중...
+
+update_modal:
+ update_software: |-
+ 새 버전을 다운로드하고 재시작합니다.
+ 조금 시간이 걸립니다. 지금 시작할까요?
+ deny_update_software: 나중에 하기
+ accept_update_software: 업데이트 및 재시작
+
+
config_page:
version: 버전 {{version}}
# config_title: 설정
diff --git a/locales/zh-Hans.yml b/locales/zh-Hans.yml
index 73b89c72..21598828 100644
--- a/locales/zh-Hans.yml
+++ b/locales/zh-Hans.yml
@@ -44,13 +44,6 @@ main_page:
# 在你的默认浏览器上打开了VRCT文档,有着关于VRCT的使用方法
# 其他问题、请求、查询等请通过文档底部的链接或X (Twitter) 联系我们!
- update_available: 有新版本可供使用!
- update_software_desc: |-
- 下载新版本并自动启动
- 会花少许时间,现在更新吗?
- deny_update_software: 稍后再说
- accept_update_software: 更新后自动启动
- updating: 更新中...
state_text_enabled: 启用
state_text_disabled: 停用
@@ -59,6 +52,17 @@ main_page:
title_your_language: 你的语言
title_target_language: 目标语言
+ update_available: 有新版本可供使用!
+ updating: 更新中...
+
+update_modal:
+ update_software_desc: |-
+ 下载新版本并自动启动
+ 会花少许时间,现在更新吗?
+ deny_update_software: 稍后再说
+ accept_update_software: 更新后自动启动
+
+
config_page:
version: 版本 {{version}}
# config_title: 设定
diff --git a/locales/zh-Hant.yml b/locales/zh-Hant.yml
index 10388bf9..6416b053 100644
--- a/locales/zh-Hant.yml
+++ b/locales/zh-Hant.yml
@@ -45,14 +45,6 @@ main_page:
# 已在瀏覽器中打開VRCT文件頁面。
# 如有任何問題、請求或查詢,請通過文件頁面底部的連結、「聯絡表單」或 X (Twitter) 聯絡我們!
- update_available: 有新版本可供使用!
- update_software_desc: |-
- 下載新版本並自動更新 VRCT。
- 會花一些時間,現在更新嗎?
- deny_update_software: 稍後再說
- accept_update_software: 更新
- updating: 正在更新...
-
state_text_enabled: 啟用
state_text_disabled: 停用
@@ -60,6 +52,17 @@ main_page:
title_your_language: 選擇你的語言
title_target_language: 選擇目標語言
+ update_available: 有新版本可供使用!
+ updating: 正在更新...
+
+update_modal:
+ update_software_desc: |-
+ 下載新版本並自動更新 VRCT。
+ 會花一些時間,現在更新嗎?
+ deny_update_software: 稍後再說
+ accept_update_software: 更新
+
+
config_page:
version: 版本 {{version}}
# config_title: 設定
diff --git a/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx b/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx
index d4108499..3193edc9 100644
--- a/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx
+++ b/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx
@@ -15,6 +15,7 @@ import {
import OpenFolderSvg from "@images/open_folder.svg?react";
+import HelpSvg from "@images/help.svg?react";
export const AdvancedSettings = () => {
return (
@@ -22,6 +23,7 @@ export const AdvancedSettings = () => {
{switch_compute_device_desc}
+{t("main_page.update_software_desc")}
+{t("update_modal.update_software_desc")}
{t("main_page.confirmation_message.updating")}
+{t("main_page.updating")}
); }; \ No newline at end of file diff --git a/src-ui/logics/common/useUpdateSoftware.js b/src-ui/logics/common/useUpdateSoftware.js index c033b878..f3d2f1cf 100644 --- a/src-ui/logics/common/useUpdateSoftware.js +++ b/src-ui/logics/common/useUpdateSoftware.js @@ -6,7 +6,12 @@ export const useUpdateSoftware = () => { asyncStdoutToPython("/run/update_software"); }; + const updateSoftware_CUDA = () => { + asyncStdoutToPython("/run/update_cuda_software"); + }; + return { updateSoftware, + updateSoftware_CUDA, }; }; \ No newline at end of file