Merge pull request #1384: the in-game menu in German, French, Spanish, Italian, Dutch, Japanese, Korean and Vietnamese, and the setup in Vietnamese (itaskaev2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-23 18:40:16 +03:00
commit 96b5e96c80
13 files changed
+6972 -57

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ Open pull requests against `dev`. Branch from the current `dev` and rebase on it
- **The fix, not a disabled feature.** A crash that goes away with a feature off points at the bug in that feature. Turning the feature off for a vendor is not a fix.
- **The frame time on weak hardware.** Game threads and the render thread do no file I/O, no GPU allocations, no per-draw state copies and no global atomic counters. Memory kept per frame or per object is freed. The full list with measured costs: [docs/pr-review-kit/02-performance.md](docs/pr-review-kit/02-performance.md), "What the hot path must not do".
- **Other GPUs.** New Vulkan code queries each feature, extension, format and limit it uses and keeps a working path without it. Nothing is hardcoded from what one GPU reports.
- **Text in the catalogs.** Text a player sees gets an id in `runtime/ui_text.h` and an entry in `runtime/ui_text.c` for every menu language (English, Russian, Brazilian Portuguese, Simplified Chinese); installer text goes into `installer/text/*.json`.
- **Text in the catalogs.** Text a player sees gets an id in `runtime/ui_text.h` and an entry in `runtime/ui_text.c` for every menu language (English, Russian, Brazilian Portuguese, Simplified Chinese, German, French, Spanish, Italian, Dutch, Japanese, Korean, Vietnamese); installer text goes into `installer/text/*.json`.
- **The generator owns generated C.** Change `recomp/`, never `generated/`.
### Checks by what you changed
+10 -9
View File
@@ -31,7 +31,7 @@ Report problems as issues, following [CONTRIBUTING.md](CONTRIBUTING.md).
- In-game settings menu (F1) and performance overlay (F10)
- Play time across runs on the Game tab of the settings menu, kept in `playtime.txt` next to the saves
- Discord Rich Presence ("Playing TotK Recomp" with the play time), off by default, own application id supported
- Setup in 11 languages, in-game menu in 4 ([Languages](#languages))
- Setup in 12 languages, in-game menu in 12 ([Languages](#languages))
- Keyboard, mouse and gamepad with remapping, rumble and gyro
- Stereo or 5.1 surround sound output
- Xbox and PlayStation button prompts: Xbox's LB, RB, LT, RT, Menu, View and A, B, X, Y, or PlayStation's ○ × △ □, L1, R1, L2, R2, Options and Share, as labelled on the button to press, with either button layout
@@ -46,7 +46,7 @@ Report problems as issues, following [CONTRIBUTING.md](CONTRIBUTING.md).
The game keeps the text and voices of every language it shipped with. The port's own setup and in-game menu (F1) come
in these; both follow the Windows display language, and the menu has its own choice on its Menu tab. A Traditional
Chinese Windows gets the Simplified Chinese setup.
Chinese Windows gets the Simplified Chinese setup and menu.
| Language | Setup | In-game menu |
|---|:---:|:---:|
@@ -54,13 +54,14 @@ Chinese Windows gets the Simplified Chinese setup.
| Русский | ✅ | ✅ |
| Português (Brasil) | ✅ | ✅ |
| 简体中文 | ✅ | ✅ |
| Deutsch | ✅ | English |
| Français | ✅ | English |
| Español | ✅ | English |
| Italiano | ✅ | English |
| Nederlands | ✅ | English |
| 日本語 | ✅ | English |
| 한국어 | ✅ | English |
| Deutsch | ✅ | ✅ |
| Français | ✅ | ✅ |
| Español | ✅ | ✅ |
| Italiano | ✅ | ✅ |
| Nederlands | ✅ | ✅ |
| 日本語 | ✅ | ✅ |
| 한국어 | ✅ | ✅ |
| Tiếng Việt | ✅ | ✅ |
Spotted a clumsy phrase, or want your language added? The setup texts are in `installer/text/<language>.json`, the
menu texts in `runtime/ui_text.c`; open an issue or a pull request ([CONTRIBUTING.md](CONTRIBUTING.md)). Fixes from
+3 -2
View File
@@ -59,8 +59,9 @@ MacNativeGames cannot run on x86-64 as is: its CPU path executes ARM64 code nati
- Settings and menu: every key with its default is in one table (`cfg.c`), read from `totk.ini` and `TOTK_*`
variables and written back when the in-game menu changes it. The menu and the performance overlay are Dear ImGui,
drawn into the swapchain image (`runtime/ui/`); their text is in `ui_text.c` (English, Russian, Brazilian Portuguese,
Simplified Chinese). The Chinese glyphs come from a system font (Microsoft YaHei, `plat_font_path`) merged into the
font atlas.
Simplified Chinese, German, French, Spanish, Italian, Dutch, Japanese, Korean,
Vietnamese). The Chinese, Japanese and Korean glyphs
come from a system font (`plat_font_path`) merged into the font atlas.
- OS calls the host makes go through `runtime/platform/` (`platform.h`, `win32.c`), so a Linux or macOS host adds one file instead of touching the rest. The split is not finished: `tools/check_platform.py` lists the Win32 uses left in the other files.
#### Threads and cores
+2 -2
View File
@@ -190,8 +190,8 @@ python -m installer --base FILE --update FILE --keys FILE --lang CODE --dest DIR
install sections, the explanations under More details, the share notice next to Start) in the Sun Valley ttk theme
(`installer/vendor/sv_ttk/`, the platform theme when it does not load), step list with progress, space line,
collapsible log, Cancel (Ctrl+Break to the CLI's process group, then it waits for the exit), finish screen with Open
folder. English, Russian, Brazilian Portuguese, Simplified Chinese, German, French, Spanish, Italian, Dutch, Japanese
or Korean (`guilogic.UI_LANGUAGES`), chosen from the Windows display language (every Chinese, zh-TW and zh-HK
folder. English, Russian, Brazilian Portuguese, Simplified Chinese, German, French, Spanish, Italian, Dutch, Japanese,
Korean or Vietnamese (`guilogic.UI_LANGUAGES`), chosen from the Windows display language (every Chinese, zh-TW and zh-HK
included, gives Simplified Chinese; pt-PT and languages without a catalog give English), switchable in the window;
every sentence is an id in `installer/text/<lang>.json`. The game language starts as the window's when the game has
it; a Chinese or Korean window still starts with English, because that game text needs the Switch shared fonts,
+3 -3
View File
@@ -24,11 +24,11 @@ from . import state as statefile
from .events import render
TEXT = Path(__file__).resolve().parent / 'text'
UI_LANGUAGES = ('en', 'ru', 'pt-BR', 'zh-Hans', 'de', 'fr', 'es', 'it', 'nl', 'ja', 'ko')
UI_LANGUAGES = ('en', 'ru', 'pt-BR', 'zh-Hans', 'de', 'fr', 'es', 'it', 'nl', 'ja', 'ko', 'vi')
# what the language switch in the window's corner shows for each
UI_LANGUAGE_LABELS = {'en': 'English', 'ru': 'Русский', 'pt-BR': 'Português (Brasil)', 'zh-Hans': '简体中文',
'de': 'Deutsch', 'fr': 'Français', 'es': 'Español', 'it': 'Italiano', 'nl': 'Nederlands',
'ja': '日本語', 'ko': '한국어'}
'ja': '日本語', 'ko': '한국어', 'vi': 'Tiếng Việt'}
STEP_ORDER = ('check', 'kit', 'fonts', 'extract', 'lift', 'compile', 'prepare', 'pc_prompts', 'shapes', 'dlss',
'fsr', 'cleanup')
# message parameter -> catalog id prefix of the names that replace its raw values
@@ -37,7 +37,7 @@ LANG_PT_BR = 0x0416 # Portuguese (Brazil), the whole LANGID: Portugal's Portug
# primary language id in a Windows LANGID -> window language, for the languages whose every region gets the same text.
# Every Chinese gets Simplified Chinese: the setup has no Traditional Chinese text, as the in-game menu has none.
PRIMARY_LANGS = {0x04: 'zh-Hans', 0x19: 'ru', 0x07: 'de', 0x0c: 'fr', 0x0a: 'es', 0x10: 'it', 0x13: 'nl', 0x11: 'ja',
0x12: 'ko'}
0x12: 'ko', 0x2a: 'vi'}
# window language -> the game language the form starts with (default_game_language)
GAME_LANGUAGE_FOR_UI = {'ru': 'ru', 'de': 'de', 'fr': 'fr', 'es': 'es', 'it': 'it', 'nl': 'nl', 'ja': 'ja'}
+1
View File
@@ -28,6 +28,7 @@ static void fail(void)
{ LANG_DUTCH, LAUNCHER_TITLE_NL, LAUNCHER_PYTHON_MISSING_NL },
{ LANG_JAPANESE, LAUNCHER_TITLE_JA, LAUNCHER_PYTHON_MISSING_JA },
{ LANG_KOREAN, LAUNCHER_TITLE_KO, LAUNCHER_PYTHON_MISSING_KO },
{ LANG_VIETNAMESE, LAUNCHER_TITLE_VI, LAUNCHER_PYTHON_MISSING_VI },
{ LANG_CHINESE, LAUNCHER_TITLE_ZH_HANS, LAUNCHER_PYTHON_MISSING_ZH_HANS },
};
LANGID ui = GetUserDefaultUILanguage();
+225
View File
@@ -0,0 +1,225 @@
{
"step.check": "Kiểm tra máy tính và các tệp trò chơi",
"step.kit": "Sao chép bộ công cụ biên dịch vào thư mục trò chơi",
"step.fonts": "Trích xuất phông chữ hệ thống",
"step.extract": "Trích xuất trò chơi",
"step.lift": "Chuyển mã trò chơi sang C",
"step.compile": "Biên dịch {game_exe}",
"step.prepare": "Chuẩn bị shader",
"step.pc_prompts": "Vẽ biểu tượng nút bàn phím và chuột",
"step.shapes": "Bố trí giao diện trò chơi theo màn hình của bạn",
"step.dlss": "Tải xuống NVIDIA DLSS",
"step.fsr": "Tải xuống AMD FSR 4",
"step.cleanup": "Dọn dẹp",
"phase.check.host": "Kiểm tra bộ xử lý và card đồ họa",
"phase.check.verify": "Kiểm tra các tệp đã cài đặt",
"phase.check.verify_romfs": "Kiểm tra dữ liệu trò chơi đã cài đặt",
"phase.check.inputs": "Mở các tệp trò chơi bằng khóa",
"phase.check.unpack_base": "Giải nén trò chơi gốc đã nén",
"phase.check.unpack_update": "Giải nén bản cập nhật đã nén",
"phase.check.versions": "Kiểm tra phiên bản trò chơi",
"phase.kit.copy": "Sao chép các công cụ mà trò chơi dùng để tự biên dịch lại cho mod mã",
"phase.fonts.extract": "Trích xuất phông chữ dùng chung từ firmware",
"phase.fonts.copy": "Sao chép phông chữ dùng chung vào thư mục cài đặt",
"phase.extract.hash_base": "Tính tổng kiểm tra của trò chơi gốc",
"phase.extract.hash_update": "Tính tổng kiểm tra của bản cập nhật",
"phase.extract.exefs": "Trích xuất mã trò chơi",
"phase.extract.copy": "Sao chép dữ liệu trò chơi",
"phase.extract.merge": "Áp dụng bản cập nhật vào dữ liệu trò chơi",
"phase.extract.diagnose": "Tìm tệp trò chơi bị hỏng",
"phase.extract.index": "Xác minh dữ liệu trò chơi",
"phase.lift.discover": "Tìm các hàm",
"phase.lift.emit": "Ghi mã C",
"phase.compile.compile": "Biên dịch",
"phase.compile.link": "Liên kết {game_exe}",
"phase.prepare.romfs_patches": "Ghi các bản vá dữ liệu trò chơi cho 60 fps",
"phase.pc_prompts.draw": "Vẽ biểu tượng phím và nút chuột theo các phím gán trong totk.ini",
"phase.prepare.seed": "Đọc shader từ dữ liệu trò chơi",
"phase.prepare.translate": "Chuyển đổi shader",
"phase.prepare.libraries": "Biên dịch shader cho trình điều khiển đồ họa",
"phase.prepare.pack": "Đóng gói bộ nhớ đệm shader thành một tệp",
"phase.shapes.layouts": "Ghi bố cục màn hình và biểu tượng nút cho từng tỷ lệ màn hình",
"phase.dlss.download": "Tải xuống nvngx_dlss.dll từ DLSS SDK của NVIDIA",
"phase.fsr.download": "Tải xuống các thư viện FSR 4 từ FSR SDK của AMD",
"phase.cleanup.ini": "Ghi totk.ini",
"phase.cleanup.temp": "Xóa các tệp tạm",
"cli.usage": "Dòng lệnh không hợp lệ: {detail}",
"internal": "Lỗi không mong muốn ({exception}): {detail}",
"state.unreadable": "Không thể đọc {path}. Hãy chọn thư mục khác hoặc xóa tệp đó.",
"state.newer_format": "{path} được ghi bởi một trình cài đặt mới hơn. Hãy dùng trình cài đặt đó hoặc chọn thư mục khác.",
"state.output_changed": "Các tệp đã cài đặt của bước '{step}' đã thay đổi kể từ khi được tạo; bước đó sẽ chạy lại.",
"check.release_incomplete": "Thư mục trình cài đặt không đầy đủ; còn thiếu: {paths}. Hãy giải nén lại bản phát hành.",
"check.dest_not_folder": "Vị trí cài đặt {path} là một tệp, không phải thư mục.",
"check.dest_not_empty": "Thư mục cài đặt {path} không trống và không chứa bản cài đặt nào trước đó. Hãy chọn một thư mục trống.",
"check.lang_missing": "Hãy chọn ngôn ngữ trò chơi.",
"check.lang_unknown": "Ngôn ngữ không xác định '{lang}'. Các ngôn ngữ đã biết: {known}.",
"check.toolchain_broken": "Trình biên dịch đi kèm không hoạt động: {detail}",
"check.glibc_old": "Thư viện C của hệ thống này là glibc {version}; trình biên dịch của trình cài đặt cần {need} trở lên (Ubuntu 22.04, Debian 12, Fedora 35, SteamOS 3 và mới hơn đều có). Cập nhật hệ thống sẽ khắc phục lỗi này.",
"check.host_probe_failed": "Không chạy được bước kiểm tra máy tính (mã thoát {code}).",
"check.host_blocked": "Windows đã chặn một chương trình mà trình cài đặt biên dịch trên máy tính này ({path}): {detail}. Smart App Control (Kiểm soát ứng dụng thông minh), một chính sách App Control hoặc phần mềm diệt virus chặn các chương trình không có chữ ký; bản thân trò chơi cũng được biên dịch trên máy tính này theo cách tương tự nên cũng sẽ bị chặn. Hãy cho phép thư mục trình cài đặt trong phần mềm diệt virus, hoặc tắt Smart App Control trong Bảo mật Windows (Kiểm soát ứng dụng và trình duyệt), rồi chạy lại trình cài đặt.",
"check.vulkan_crash": "Trình điều khiển đồ họa bị lỗi khi trình cài đặt yêu cầu danh sách card đồ họa (mã thoát {code}), kể cả khi đã tắt các lớp Vulkan của chương trình khác. Hãy cài đặt trình điều khiển mới nhất cho card đồ họa của bạn.",
"check.vulkan_layer_crash": "Một lớp Vulkan do chương trình khác cài đặt làm các chương trình Vulkan trên máy tính này bị lỗi (mã thoát {code}), và trò chơi cũng sẽ bị lỗi khi khởi động theo cách tương tự. Lớp đó: {layers}. Hãy cập nhật hoặc gỡ cài đặt chương trình sở hữu lớp này (đường dẫn cho biết thư mục của chương trình), hoặc tắt lớp đó: đặt biến môi trường VK_LOADER_LAYERS_DISABLE thành {disable} cho tài khoản người dùng của bạn. Sau đó chạy lại trình cài đặt.",
"check.vulkan_layers_crash": "Một lớp Vulkan do chương trình khác cài đặt làm các chương trình Vulkan trên máy tính này bị lỗi (mã thoát {code}): khi tắt tất cả các lớp như vậy thì bước kiểm tra thành công, còn khi bật chúng thì trò chơi cũng sẽ bị lỗi khi khởi động theo cách tương tự. Tắt lần lượt từng lớp đã cài đặt không xác định được lớp gây lỗi. Các lớp đã cài đặt: {layers}. Hãy cập nhật hoặc gỡ cài đặt các chương trình lớp phủ (overlay), quay màn hình hoặc tinh chỉnh trong số đó, hoặc tắt tất cả các lớp như vậy: đặt biến môi trường VK_LOADER_LAYERS_DISABLE thành ~implicit~ cho tài khoản người dùng của bạn (thao tác này cũng tắt các lớp phủ như của Steam trong mọi trò chơi Vulkan). Sau đó chạy lại trình cài đặt.",
"check.cpu_too_old": "Bộ xử lý này không hỗ trợ x86-64-v2 (SSE4.2, POPCNT và CMPXCHG16B), mức thấp nhất mà trò chơi được biên dịch cho. Intel Nehalem (2008) hoặc AMD Bulldozer (2011) trở lên đều hỗ trợ.",
"check.vulkan_missing": "Chưa cài đặt trình điều khiển Vulkan nào. Hãy cài đặt trình điều khiển mới nhất cho card đồ họa của bạn.",
"check.vulkan_no_device": "Vulkan không tìm thấy card đồ họa nào. Hãy cài đặt trình điều khiển mới nhất cho card đồ họa của bạn.",
"check.vulkan_too_old": "Trò chơi cần card đồ họa hỗ trợ Vulkan 1.3; tìm thấy: {devices}. Hãy cập nhật trình điều khiển đồ họa.",
"check.no_display": "Cần có màn hình hiển thị để chuẩn bị shader. Hãy chạy trình cài đặt từ phiên làm việc trên màn hình nền (desktop), hoặc export DISPLAY=:0 (trên Steam Deck ở Game Mode thì thêm XDG_RUNTIME_DIR=/run/user/1000).",
"check.inputs_needed": "Cần có các tệp trò chơi: hãy chọn trò chơi gốc, bản cập nhật 1.1.0 hoặc 1.2.1 hoặc 1.4.3 và prod.keys.",
"check.input_missing": "Không tìm thấy tệp ({input}): {path}",
"check.keys_unreadable": "Không thể đọc tệp khóa. Hãy chọn một tệp prod.keys.",
"check.keys_no_header_key": "Tệp khóa không có header_key. Hãy trích xuất lại prod.keys từ máy console của bạn.",
"check.keys_wrong": "Các khóa này không mở được tệp {input}. Hãy dùng prod.keys của chính máy console của bạn.",
"check.keys_too_old": "Tệp khóa quá cũ đối với tệp {input} (cần thế hệ khóa {generation}). Hãy trích xuất prod.keys từ máy console có firmware mới hơn.",
"check.not_game_file": "Tệp {input} không phải là tệp trò chơi XCI, NSP, XCZ hoặc NSZ.",
"check.file_unreadable": "Không thể đọc tệp {input}: {detail}",
"check.unpack_failed": "Không thể giải nén tệp nén {input}: {detail}",
"check.ticket_personalized": "Tệp {input} chứa ticket cá nhân hóa (personalized); cần có ticket chung (common).",
"check.ticket_missing": "Tệp {input} thiếu ticket mà nội dung của nó cần.",
"check.base_not_totk": "Tệp trò chơi gốc không phải là The Legend of Zelda: Tears of the Kingdom ({detail}).",
"check.base_is_update": "Tệp trò chơi gốc là một bản cập nhật. Hãy chọn NSP hoặc XCI của trò chơi gốc (phiên bản 1.0.0) ở đây và chọn tệp này làm bản cập nhật.",
"check.base_combined": "Tệp trò chơi gốc chứa nhiều gói (trò chơi gốc, bản cập nhật hoặc DLC trong cùng một tệp). Hãy chọn bản dump trò chơi gốc chỉ chứa trò chơi.",
"check.update_not_nsp": "Bản cập nhật phải là tệp NSP hoặc NSZ.",
"check.update_is_base": "Tệp cập nhật chứa trò chơi gốc. Hãy chọn tệp NSP của bản cập nhật 1.1.0 hoặc 1.2.1 hoặc 1.4.3.",
"check.update_not_totk": "Tệp cập nhật không phải là bản cập nhật của Tears of the Kingdom ({detail}).",
"check.exefs_failed": "Mã trò chơi trong tệp {input} không vượt qua bước kiểm tra; xem {log}.",
"check.input_damaged": "Tệp {input} bị hỏng hoặc không đầy đủ: {path} ({detail}). Hãy sao chép lại tệp đó từ nguồn của nó hoặc dump lại, rồi chạy lại trình cài đặt.",
"check.base_wrong_version": "Trò chơi gốc không phải phiên bản 1.0.0 ({modules} khác biệt).",
"check.update_wrong_version": "Bản cập nhật là phiên bản {found}; bản phát hành này yêu cầu {wanted}.",
"check.disk_space": "Không đủ dung lượng trống cho {path}: cần {need_gb} GB, còn trống {free_gb} GB.",
"check.firmware_missing": "Thư mục firmware {path} không tồn tại. Hãy chọn thư mục Contents/registered của firmware.",
"check.firmware_empty": "Thư mục firmware {path} không chứa tệp NCA nào. Hãy chọn thư mục Contents/registered của firmware.",
"check.fonts_keys_needed": "Phông chữ dùng chung cho ngôn ngữ này chưa được cài đặt; hãy chọn prod.keys để trình cài đặt trích xuất chúng từ firmware.",
"extract.exefs_mismatch": "Mã trò chơi đã trích xuất không khớp với phiên bản {version} ({modules}).",
"extract.romfs_merge_failed": "Áp dụng bản cập nhật vào dữ liệu trò chơi không thành công: {detail}. Chi tiết: {log}",
"extract.romfs_mismatch": "Dữ liệu trò chơi đã trích xuất không khớp với phiên bản {version} (kích thước {size}, tổng kiểm tra {sha256}...).",
"fonts.failed": "Trích xuất phông chữ dùng chung không thành công (mã thoát {code}): {detail}. Chi tiết: {log}",
"fonts.incomplete": "Quá trình trích xuất phông chữ dùng chung không ghi đủ mọi tệp ({files}).",
"fonts.copy_failed": "Không thể sao chép phông chữ dùng chung vào {path}: {detail}",
"lift.failed": "Chuyển mã trò chơi không thành công (mã thoát {code}). Chi tiết: {log}",
"compile.failed": "Biên dịch {game_exe} không thành công (mã thoát {code}). Chi tiết: {log}",
"compile.exe_in_use": "{path} đang được sử dụng. Hãy đóng trò chơi rồi chạy lại trình cài đặt.",
"kit.in_use": "{path} đang được sử dụng. Hãy đóng trò chơi và mọi cửa sổ cài đặt hoặc biên dịch lại đang mở, rồi chạy lại trình cài đặt.",
"kit.copy_failed": "Không thể sao chép bộ công cụ biên dịch vào {path}: {detail}",
"compile.exe_locked": "Không thể ghi {path}: một chương trình khác đang giữ tệp này, có thể là trò chơi được khởi động từ thư mục đó hoặc phần mềm diệt virus đã gắn cờ tệp. Hãy đóng trò chơi, thêm thư mục trình cài đặt và thư mục cài đặt vào danh sách loại trừ của phần mềm diệt virus, khởi động lại Windows, rồi chạy lại trình cài đặt. Chi tiết: {log}",
"prepare.xlate_in_use": "{path} đang được sử dụng. Hãy đóng trò chơi, kết thúc mọi tiến trình totk_xlate còn sót lại từ lần chạy trước, rồi chạy lại trình cài đặt.",
"prepare.shader_list_missing": "Thiếu danh sách shader.",
"prepare.romfs_patches_failed": "Ghi các bản vá dữ liệu trò chơi không thành công (mã thoát {code}). Chi tiết: {log}",
"prepare.shaders_failed": "Chuẩn bị shader không thành công (mã thoát {code}). Chi tiết: {log}",
"cleanup.romfs_unreadable": "Dữ liệu trò chơi trong {path} bị thiếu hoặc không đọc được sau khi cài đặt. Hãy khởi động lại Windows, rồi chạy lại trình cài đặt trên cùng thư mục đó: trình cài đặt sẽ trích xuất lại dữ liệu trò chơi và giữ nguyên phần còn lại.",
"prepare.pack_failed": "Đóng gói bộ nhớ đệm shader không thành công (mã thoát {code}). Chi tiết: {log}",
"cleanup.ini_failed": "Không thể ghi totk.ini: {detail}",
"warn.lang_needs_fonts": "Văn bản bằng {lang} cần phông chữ hệ thống của Switch, nhưng chưa có phông chữ nào được cung cấp. Trò chơi sẽ không khởi động bằng ngôn ngữ này cho đến khi chúng được thêm vào. Hãy chọn thư mục firmware (Contents/registered), hoặc xem mục \"Switch system fonts\" trong docs/installer.md.",
"warn.npdm_differs": "main.npdm khác với bản dump tham chiếu {version}; chỉ các mô-đun mã được sử dụng.",
"warn.cheats_skipped": "Không thể biên dịch các cheat trong thư mục mods có thay đổi mã của trò chơi; trò chơi sẽ được cài đặt mà không có chúng. Chi tiết: {log}",
"warn.exefs_skipped": "Không thể biên dịch các bản vá ExeFS của mod (.ips, .pchtxt); trò chơi sẽ được cài đặt mà không có chúng. Chi tiết: {log}",
"warn.plugins_skipped": "Không thể biên dịch các plugin mã của mod (exefs subsdk); trò chơi sẽ được cài đặt mà không có chúng. Chi tiết: {log}",
"warn.xbox_prompts_failed": "Không thể chuẩn bị biểu tượng nút Xbox, PlayStation hoặc PC (mã thoát {code}); trò chơi giữ biểu tượng nút của Switch. Chi tiết: {log}",
"warn.shaders_skipped": "Trình điều khiển đồ họa bị lỗi khi biên dịch một số shader, nên {count} shader đã bị bỏ qua khi chuẩn bị. Trò chơi sẽ biên dịch chúng khi cần đến lần đầu, và trình điều khiển cũng có thể bị lỗi ở đó; cập nhật trình điều khiển có thể khắc phục điều này. Chi tiết: {log}",
"warn.kernel_old": "Linux {version} thiếu tính năng theo dõi ghi (write tracking) mà trò chơi cần (6.7 trở lên); trò chơi có thể chạy rất chậm. Cập nhật hệ thống sẽ khắc phục điều này.",
"warn.dlss_kept": "Thư mục cài đặt đã có một thư viện DLSS ({path}); trình cài đặt giữ nguyên thư viện đó.",
"warn.dlss_download_failed": "Không thể tải xuống NVIDIA DLSS từ {url}: {detail}. Trò chơi vẫn chạy mà không có DLSS; lần chạy trình cài đặt tiếp theo sẽ thử lại.",
"warn.fsr_kept": "Thư mục cài đặt đã có một thư viện FSR ({path}); trình cài đặt giữ nguyên các thư viện đó.",
"warn.fsr_download_failed": "Không thể tải xuống AMD FSR 4 từ {url}: {detail}. Trò chơi vẫn chạy mà không có nó; lần chạy trình cài đặt sau sẽ thử lại.",
"ui.title": "Cài đặt TotK",
"ui.rebuild_title": "Biên dịch lại trò chơi cho các mod của bạn",
"ui.start_game": "Khởi động trò chơi",
"ui.version": "phiên bản {version}",
"ui.intro": "Tạo một thư mục Tears of the Kingdom có thể chơi được từ chính các tệp trò chơi của bạn. Quá trình này mất khá nhiều thời gian và chỉ chạy một lần.",
"ui.notice": "Thư mục do trình cài đặt này tạo ra có chứa trò chơi. Thư mục này chỉ dành cho mục đích sử dụng cá nhân; không chia sẻ hoặc tải lên.",
"ui.keys_private": "Tệp khóa được đọc tại chỗ. Nội dung của tệp không bao giờ được hiển thị, sao chép hoặc lưu trữ.",
"ui.base": "Trò chơi gốc",
"ui.update": "Bản cập nhật",
"ui.keys": "prod.keys",
"ui.firmware": "Firmware (tùy chọn)",
"ui.game_language": "Ngôn ngữ trò chơi",
"ui.dest": "Thư mục cài đặt",
"ui.browse": "Duyệt...",
"ui.pick_game": "Chọn tệp trò chơi gốc",
"ui.pick_update": "Chọn tệp cập nhật 1.1.0 hoặc 1.2.1 hoặc 1.4.3",
"ui.pick_keys": "Chọn prod.keys",
"ui.pick_firmware": "Chọn thư mục firmware của Switch (Contents/registered)",
"ui.pick_dest": "Chọn thư mục cài đặt",
"ui.firmware_help": "Dành cho văn bản tiếng Trung Giản thể, tiếng Hàn và tiếng Trung Phồn thể: thư mục Contents/registered của firmware, ví dụ từ Ryujinx hoặc Yuzu. Trình cài đặt sẽ sao chép phông chữ hệ thống của Switch từ đó vào thư mục cài đặt.",
"ui.dlss": "Tải xuống NVIDIA DLSS (nvngx_dlss.dll) cho card đồ họa NVIDIA RTX",
"ui.dlss_help": "Từ DLSS SDK của NVIDIA trên GitHub, theo giấy phép RTX SDK của NVIDIA (github.com/NVIDIA/DLSS). Thư viện này giúp các tùy chọn dlaa và DLSS hoạt động; nếu không có, các tùy chọn đó không có tác dụng.",
"ui.fsr": "Tải xuống AMD FSR 4 (thư viện FSR SDK của AMD) cho card đồ họa AMD Radeon",
"ui.fsr_help": "Từ FSR SDK của AMD trên GitHub, theo giấy phép FSR SDK của AMD (github.com/GPUOpen-LibrariesAndSDKs/FidelityFX-SDK). Thư viện này giúp lựa chọn AMD FSR 4 cho bộ nâng độ phân giải cảnh 3D hoạt động trên các card Radeon mà thư viện của AMD hỗ trợ FSR 4; nếu không có, lựa chọn đó không có tác dụng. Được chọn sẵn khi máy có card đồ họa AMD.",
"ui.compressed_help": "Các tệp nén NSZ và XCZ dùng được ngay: trình cài đặt tự giải nén chúng (cho đến khi dữ liệu trò chơi được trích xuất xong, cần dung lượng trống bằng dung lượng của các tệp sau khi giải nén).",
"ui.section_files": "Tệp trò chơi",
"ui.section_install": "Cài đặt",
"ui.more_details": "▸ Xem thêm chi tiết",
"ui.fewer_details": "▾ Ẩn chi tiết",
"ui.formats_help": "Trò chơi gốc: NSP, XCI, NSZ hoặc XCZ. Bản cập nhật: 1.1.0, 1.2.1 hoặc 1.4.3, dạng NSP hoặc NSZ.",
"ui.type_game": "Tệp trò chơi (NSP, XCI, NSZ, XCZ)",
"ui.type_keys": "Tệp khóa (*.keys)",
"ui.type_all": "Tất cả các tệp",
"ui.start": "Bắt đầu",
"ui.cancel": "Hủy",
"ui.cancelling": "Đang hủy...",
"ui.show_log": "Hiện nhật ký",
"ui.hide_log": "Ẩn nhật ký",
"ui.close": "Đóng",
"ui.back": "Quay lại",
"ui.open_folder": "Mở thư mục",
"ui.update_mode": "Thư mục này có một bản cài đặt trước đó. Trình cài đặt sẽ tiếp tục hoặc cập nhật bản cài đặt đó; các tệp trò chơi chỉ được yêu cầu nếu cần dùng lại.",
"ui.need_dest": "Hãy chọn thư mục cài đặt.",
"ui.need_base": "Hãy chọn tệp trò chơi gốc.",
"ui.need_update": "Hãy chọn tệp cập nhật 1.1.0 hoặc 1.2.1 hoặc 1.4.3.",
"ui.need_keys": "Hãy chọn tệp prod.keys.",
"ui.need_lang": "Hãy chọn ngôn ngữ trò chơi.",
"ui.missing_base": "Tệp trò chơi gốc không tồn tại.",
"ui.missing_update": "Tệp cập nhật không tồn tại.",
"ui.missing_keys": "Tệp khóa không tồn tại.",
"ui.missing_firmware": "Thư mục firmware không tồn tại.",
"ui.running_install": "Đang cài đặt",
"ui.running_resume": "Đang tiếp tục lần cài đặt trước",
"ui.running_update": "Đang cập nhật bản cài đặt",
"ui.state_started": "đã bắt đầu",
"ui.state_done": "xong",
"ui.state_skipped": "đã bỏ qua",
"ui.state_pending": "đang chờ",
"ui.state_running": "đang chạy",
"ui.state_failed": "thất bại",
"ui.log_warning": "Cảnh báo",
"ui.log_error": "Lỗi",
"ui.log_space": "Dung lượng cần: {need} GB, còn trống: {free} GB",
"ui.log_end": "Đã hoàn tất",
"ui.result_ok": "Trò chơi đã sẵn sàng",
"ui.result_failed": "Cài đặt không thành công",
"ui.result_cancelled": "Đã hủy cài đặt",
"ui.done_text": "Hãy khởi động {game_exe} từ {dest}. Chương trình cài đặt và các tệp trò chơi bạn đã chọn không còn cần thiết nữa.",
"ui.cancelled_text": "Các bước đã hoàn tất được giữ lại. Hãy chạy lại trình cài đặt với cùng thư mục để tiếp tục.",
"ui.log_file": "Tệp nhật ký: {path}",
"ui.process_died": "Trình cài đặt đã dừng đột ngột (mã thoát {code}).",
"ui.confirm_cancel": "Trình cài đặt đang chạy. Hủy cài đặt và đóng cửa sổ?",
"ui.space_one": "Dung lượng trống cần có trên {path}: {need} GB (còn trống: {free} GB).",
"ui.space_two": "Dung lượng trống cần có trên {path}: {need} GB (còn trống: {free} GB); trên {temp}: {temp_need} GB (còn trống: {temp_free} GB).",
"ui.amount_bytes": "{done} / {total} GB",
"ui.amount_chunks": "{done} / {total} phần",
"ui.amount_objects": "{done} / {total} tệp",
"ui.amount_shaders": "{done} / {total} shader",
"ui.amount_other": "{done} / {total} {unit}",
"ui.seconds": "{n} giây",
"param.input.base": "trò chơi gốc",
"param.input.update": "cập nhật",
"param.input.keys": "khóa",
"launcher.title": "Cài đặt TotK",
"launcher.python_missing": "Các tệp cài đặt không đầy đủ: thiếu thư mục python bên cạnh TotK-Setup.exe. Hãy giải nén lại toàn bộ tệp lưu trữ và khởi động TotK-Setup.exe từ thư mục đã giải nén.",
"lang.ja": "Tiếng Nhật",
"lang.en-US": "Tiếng Anh (Mỹ)",
"lang.en-GB": "Tiếng Anh (Anh)",
"lang.fr": "Tiếng Pháp",
"lang.fr-CA": "Tiếng Pháp (Canada)",
"lang.de": "Tiếng Đức",
"lang.it": "Tiếng Ý",
"lang.es": "Tiếng Tây Ban Nha",
"lang.es-419": "Tiếng Tây Ban Nha (Mỹ Latinh)",
"lang.nl": "Tiếng Hà Lan",
"lang.pt": "Tiếng Bồ Đào Nha",
"lang.pt-BR": "Tiếng Bồ Đào Nha (Brazil)",
"lang.ru": "Tiếng Nga",
"lang.ko": "Tiếng Hàn",
"lang.zh-Hans": "Tiếng Trung (Giản thể)",
"lang.zh-Hant": "Tiếng Trung (Phồn thể)"
}
+1 -1
View File
@@ -204,7 +204,7 @@ static const CfgMeta metas[] = {
{"GAMEPLAY_MAP_ZOOM_SENSITIVITY", "1", "0.25..4", LIVE}, {"GAMEPLAY_ROTATION_SENSITIVITY", "1", "0.25..4", LIVE},
{"GAMEPLAY_DISTANCE_SENSITIVITY", "1", "0.25..4", LIVE}, {"GAMEPLAY_ITEM_SENSITIVITY", "1", "0.25..4", LIVE},
{"GAMEPLAY_WEAPON_WHEEL", "1", "0|1", LIVE}, {"GAMEPLAY_WEAPON_SENSITIVITY", "1", "0.25..4", LIVE},
{"MENU_LANG", "", "en|ru|pt-BR|zh-Hans", LIVE},
{"MENU_LANG", "", "en|ru|pt-BR|zh-Hans|de|fr|es|it|nl|ja|ko|vi", LIVE},
// plat_font_path on Linux: 1 asks fontconfig which file draws the language, 0 keeps the fixed distribution
// paths. A rebuild of the atlas reads it, so a change shows on the next window size or language switch.
{"MENU_FONT_FONTCONFIG", "1", "0|1", LIVE},
+34 -11
View File
@@ -1012,31 +1012,45 @@ static void probe_fonts(void) {
(unsigned long long)addr, (unsigned long long)size, path);
}
// The host catalog (ui_text.c): every menu id has its own English, Russian, Brazilian Portuguese and Simplified
// Chinese text, the software keyboard keeps its game-language rows, and menu_text follows TOTK_MENU_LANG.
// The host catalog (ui_text.c): every menu id has its own English, Russian, Brazilian Portuguese, Simplified Chinese
// and Vietnamese text, every menu language's text fits the description pane and keeps the English conversions of the
// overlay formats, the software keyboard keeps its game-language rows, and menu_text follows TOTK_MENU_LANG.
static void probe_menu_text(void) {
static const char *const langs[] = {"en", "ja", "fr", "de", "it", "es", "nl", "pt", "ru", "zh-Hans", "zh-Hant", "ko",
"pt-BR"};
"pt-BR", "vi"};
static const char *const menu_langs[] = {"de", "fr", "es", "it", "nl", "ja", "ko", "vi"};
for (int id = UI_MENU_FIRST; id <= UI_MENU_LAST_ID; id++) {
CHECK(ui_text_defined("en", (UiTextId)id) && ui_text_defined("ru", (UiTextId)id) &&
ui_text_defined("pt-BR", (UiTextId)id), "menu text id %d lacks en, ru or pt-BR", id);
ui_text_defined("pt-BR", (UiTextId)id) && ui_text_defined("vi", (UiTextId)id),
"menu text id %d lacks en, ru, pt-BR or vi", id);
CHECK(*ui_text_in("en", (UiTextId)id) && *ui_text_in("ru", (UiTextId)id) && *ui_text_in("pt-BR", (UiTextId)id),
"menu text id %d is empty", id);
// the description pane keeps the whole text and a note after it (option_rows.cpp desc_set)
CHECK(strlen(ui_text_in("en", (UiTextId)id)) + 256 < UI_DESC_BYTES &&
strlen(ui_text_in("ru", (UiTextId)id)) + 256 < UI_DESC_BYTES &&
strlen(ui_text_in("pt-BR", (UiTextId)id)) + 256 < UI_DESC_BYTES &&
strlen(ui_text_in("zh-Hans", (UiTextId)id)) + 256 < UI_DESC_BYTES,
strlen(ui_text_in("zh-Hans", (UiTextId)id)) + 256 < UI_DESC_BYTES &&
strlen(ui_text_in("vi", (UiTextId)id)) + 256 < UI_DESC_BYTES,
"menu text id %d is too long for the description pane", id);
for (size_t i = 0; i < sizeof menu_langs / sizeof *menu_langs; i++)
CHECK(strlen(ui_text_in(menu_langs[i], (UiTextId)id)) + 256 < UI_DESC_BYTES,
"menu text id %d is too long for the description pane in %s", id, menu_langs[i]);
CHECK(ui_text_defined("zh-Hans", (UiTextId)id), "menu text id %d lacks Simplified Chinese", id);
}
CHECK(!ui_text_defined("en", UI_TEXT_COUNT) && !*ui_text_in("ru", UI_TEXT_COUNT), "an id past the catalog gives text");
// other languages fall back to English for the menu, and keep their own keyboard texts
CHECK(!strcmp(ui_text_in("ja", UI_MENU_CONTINUE), ui_text_in("en", UI_MENU_CONTINUE)), "ja menu text is not English");
// the other game languages have their own menu text; Traditional Chinese falls back to English in the catalog
for (size_t i = 0; i < sizeof menu_langs / sizeof *menu_langs; i++) {
CHECK(ui_text_defined(menu_langs[i], UI_MENU_TITLE) && ui_text_defined(menu_langs[i], UI_MENU_CONTINUE),
"%s has no menu text", menu_langs[i]);
CHECK(strstr(ui_text_in(menu_langs[i], UI_MENU_OV_GAME_PCT), "%.0f%%"), "%s overlay format lost its conversion",
menu_langs[i]);
}
CHECK(!strcmp(ui_text_in("zh-Hant", UI_MENU_CONTINUE), ui_text_in("en", UI_MENU_CONTINUE)),
"zh-Hant menu text is not English");
CHECK(!strcmp(ui_text_in("ru", UI_SWKBD_OK), "ОК") && !strcmp(ui_text_in("de", UI_SWKBD_CANCEL), "Abbrechen") &&
!strcmp(ui_text_in("en", UI_SWKBD_OK), "OK"), "keyboard texts changed");
// language names: the same string in every row
for (int id = UI_MENU_LANGNAME_EN; id <= UI_MENU_LANGNAME_ES_419; id++)
for (int id = UI_MENU_LANGNAME_EN; id <= UI_MENU_LANGNAME_VI; id++)
for (size_t i = 1; i < sizeof langs / sizeof *langs; i++)
CHECK(!strcmp(ui_text_in(langs[i], (UiTextId)id), ui_text_in("en", (UiTextId)id)), "language name %d differs in %s", id, langs[i]);
CHECK(!strcmp(ui_text_in("en", UI_MENU_LANGNAME_RU), "Русский"), "Russian is not shown as Russian");
@@ -1075,15 +1089,24 @@ static void probe_menu_text(void) {
CHECK(menu_text(UI_MENU_CONTINUE) == ui_text_in("en", UI_MENU_CONTINUE), "menu_text did not follow MENU_LANG=en");
cfg_set("TOTK_MENU_LANG", "zh-Hans");
CHECK(menu_text(UI_MENU_TITLE) == ui_text_in("zh-Hans", UI_MENU_TITLE), "menu_text ignores MENU_LANG=zh-Hans");
cfg_set("TOTK_MENU_LANG", "ja");
CHECK(menu_text(UI_MENU_TITLE) == ui_text_in("ja", UI_MENU_TITLE), "menu_text ignores MENU_LANG=ja");
cfg_set("TOTK_MENU_LANG", "de-DE");
CHECK(menu_text(UI_MENU_TITLE) == ui_text_in("de", UI_MENU_TITLE), "menu_text ignores MENU_LANG=de-DE");
// Traditional Chinese (zh-TW, zh-HK) reads the Simplified Chinese menu
cfg_set("TOTK_MENU_LANG", "zh-TW");
CHECK(menu_text(UI_MENU_TITLE) == ui_text_in("zh-Hans", UI_MENU_TITLE), "zh-TW does not get the zh-Hans menu");
cfg_set("TOTK_MENU_LANG", "");
// the system language as ui_text.c resolve_menu_lang takes it: the tag, else its base language (ru-RU: ru), else en
// the system language as ui_text.c resolve_menu_lang takes it: the tag, else its base language (ru-RU: ru), else
// Simplified Chinese for any Chinese, else en
const char *sys_lang = ui_text_lang(plat_ui_language());
char sys_base[16] = "";
size_t base_n = strcspn(sys_lang, "-");
if (sys_lang[base_n] && base_n < sizeof sys_base) memcpy(sys_base, sys_lang, base_n);
const char *auto_lang = ui_text_defined(sys_lang, UI_MENU_TITLE) ? sys_lang
const char *auto_lang = ui_text_defined(sys_lang, UI_MENU_TITLE) ? sys_lang
: *sys_base && ui_text_defined(sys_base, UI_MENU_TITLE) ? sys_base
: "en";
: !strncmp(sys_lang, "zh", 2) ? "zh-Hans"
: "en";
CHECK(menu_text(UI_MENU_CONTINUE) == ui_text_in(auto_lang, UI_MENU_CONTINUE), "menu_text auto ignores the system language");
}
+13 -8
View File
@@ -67,7 +67,7 @@ int playtime_get(uint64_t *total_s, uint64_t *session_s); // playtime.c
bool amiibo_check_font_rebuild(void); // ui/amiibo_page.cpp; check and clear font rebuild request
}
// Roboto Medium (Apache-2.0, ui/fonts/LICENSE-Roboto.txt) with Latin and Cyrillic glyphs.
// Roboto Medium (Apache-2.0, ui/fonts/LICENSE-Roboto.txt) with Latin, Vietnamese and Cyrillic glyphs.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc23-extensions" // #embed in C++
static const unsigned char roboto_ttf[] = {
@@ -276,12 +276,14 @@ static int vk_up(const MenuTarget *t) {
return 1;
}
// Roboto Medium (Latin, Cyrillic, dashes and quotes) at 26 px per 1080 lines, with the glyphs of the Japanese, Korean
// and Chinese language names merged in from a system font when there is one (each language is named in its own script).
// A catalog row also holds menu text (Simplified Chinese), so every string of the row goes into the builder: the merged
// font must cover the whole menu of that language, not only its name. Made again when the window height changes; the old
// texture goes after the queue is idle (CreateFontsTexture).
static const ImWchar kRanges[] = {0x0020, 0x00FF, 0x0400, 0x052F, 0x2010, 0x2027, 0};
// Roboto Medium (Latin with Latin Extended-A for the French oe and the Vietnamese letters Latin-1 lacks:
// 0x0100-0x01B0, the combining marks 0x0300-0x0323 and 0x1EA0-0x1EF9; Cyrillic, dashes and quotes) at 26 px per
// 1080 lines, with the glyphs of the Japanese, Korean and Chinese language names merged in from a system font when
// there is one (each language is named in its own script). A catalog row also holds menu text (Japanese, Korean,
// Simplified Chinese), so every string of the row goes into the builder: the merged font must cover the whole menu
// of that language, not only its name. Made again when the window height changes; the old texture goes after the
// queue is idle (CreateFontsTexture).
static const ImWchar kRanges[] = {0x0020, 0x01B0, 0x0300, 0x0323, 0x0400, 0x052F, 0x1EA0, 0x1EF9, 0x2010, 0x2027, 0};
static const struct { const char *lang; UiTextId name; } kCjk[] = {
{"ja", UI_MENU_LANGNAME_JA}, {"ko", UI_MENU_LANGNAME_KO}, {"zh-Hans", UI_MENU_LANGNAME_ZH_HANS},
{"zh-Hant", UI_MENU_LANGNAME_ZH_HANT},
@@ -1187,7 +1189,10 @@ static void tab_controls(float scale) {
static void tab_menu(float scale) {
opt_begin("##menu", scale);
static const UiTextId langs[] = {UI_MENU_MENU_LANG_AUTO, UI_MENU_LANGNAME_EN, UI_MENU_LANGNAME_RU,
UI_MENU_LANGNAME_PT_BR, UI_MENU_LANGNAME_ZH_HANS};
UI_MENU_LANGNAME_PT_BR, UI_MENU_LANGNAME_ZH_HANS, UI_MENU_LANGNAME_DE,
UI_MENU_LANGNAME_FR, UI_MENU_LANGNAME_ES, UI_MENU_LANGNAME_IT,
UI_MENU_LANGNAME_NL, UI_MENU_LANGNAME_JA, UI_MENU_LANGNAME_KO,
UI_MENU_LANGNAME_VI};
opt_choice("TOTK_MENU_LANG", UI_MENU_MENU_LANG, langs, sizeof langs / sizeof *langs, UI_MENU_MENU_LANG_DESC);
opt_toggle("TOTK_DISCORD_RPC", UI_MENU_DISCORD_RPC, UI_MENU_DISCORD_RPC_DESC);
opt_end();
+6671 -12
View File
File diff suppressed because it is too large. Load diff
+6 -6
View File
@@ -11,8 +11,8 @@ typedef enum {
UI_SWKBD_CANCEL,
UI_SWKBD_PAD_HINT, // how a controller answers
// Menu: window, tabs, bottom row. UI_MENU_FIRST..UI_MENU_LAST_ID carry English, Russian, Brazilian Portuguese and
// Simplified Chinese texts.
// Menu: window, tabs, bottom row. UI_MENU_FIRST..UI_MENU_LAST_ID carry English, Russian, Brazilian Portuguese,
// Simplified Chinese, German, French, Spanish, Italian, Dutch, Japanese, Korean and Vietnamese texts.
UI_MENU_FIRST,
UI_MENU_TITLE = UI_MENU_FIRST,
UI_MENU_TAB_SCREEN, UI_MENU_TAB_GAME, UI_MENU_TAB_MODS, UI_MENU_TAB_SOUND, UI_MENU_TAB_CONTROLS, UI_MENU_TAB_AMIIBO,
@@ -229,7 +229,7 @@ typedef enum {
UI_MENU_LANGNAME_EN, UI_MENU_LANGNAME_JA, UI_MENU_LANGNAME_FR, UI_MENU_LANGNAME_DE, UI_MENU_LANGNAME_IT,
UI_MENU_LANGNAME_ES, UI_MENU_LANGNAME_NL, UI_MENU_LANGNAME_RU, UI_MENU_LANGNAME_ZH_HANS,
UI_MENU_LANGNAME_ZH_HANT, UI_MENU_LANGNAME_KO, UI_MENU_LANGNAME_PT_BR, UI_MENU_LANGNAME_EN_GB,
UI_MENU_LANGNAME_FR_CA, UI_MENU_LANGNAME_ES_419,
UI_MENU_LANGNAME_FR_CA, UI_MENU_LANGNAME_ES_419, UI_MENU_LANGNAME_VI,
// Advanced
UI_MENU_ADV_WARNING,
@@ -332,7 +332,7 @@ const char *ui_text_lang(const char *switch_code);
typedef struct { const char *code; UiTextId name; } UiGameLang;
int ui_text_game_langs(int game_version, UiGameLang *out, int max);
// Menu text: ui_text_in(menu language, id). The menu language is TOTK_MENU_LANG ("en", "ru", "pt-BR", "zh-Hans");
// unset, the system UI language when the catalog has menu text for it (English, Russian, Brazilian Portuguese,
// Simplified Chinese), else English. Follows a live change of the setting.
// Menu text: ui_text_in(menu language, id). The menu language is TOTK_MENU_LANG ("en", "ru", "pt-BR", "zh-Hans", "de",
// "fr", "es", "it", "nl", "ja", "ko"); unset, the system UI language when the catalog has menu text for it, Simplified
// Chinese for Traditional Chinese, else English. Follows a live change of the setting.
const char *menu_text(UiTextId id);
+2 -2
View File
@@ -372,8 +372,8 @@
# lang = en-US
# System mode reported to the game: docked or handheld.
# operation_mode = docked
# Language of the settings menu and the overlay: en, ru, pt-BR or zh-Hans. Default: the Windows display language, English if
# it is none of them.
# Language of the settings menu and the overlay: en, ru, pt-BR, zh-Hans, de, fr, es, it, nl, ja, ko or vi. Default: the
# Windows display language (Simplified Chinese for any Chinese), English if it is none of them.
# menu_lang = en
[discord]