mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 13:45:57 +00:00
The in-game menu comes in Vietnamese: a full text_vi row (every menu id, checked against the English printf specifiers), a Tiếng Việt choice on the Menu tab, vi among the values of menu_lang, and the Latin Extended and Vietnamese ranges in the menu font atlas, which Roboto already covers. The text inside the performance overlay and the DLSS model row keep their English names, and the graphics terms follow common Vietnamese usage (họa tiết, bộ đổ bóng, đường ống, lệnh vẽ, tệp)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit 408c1badfcdad3d85bf06ab09505a6d2669a2427)
This commit is contained in:
1 parent
23ac5f18d1
commit
ab9dcc9bcb
8 files changed
+653
-28
No files matched your search
+11
-9
@@ -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,13 +276,14 @@ static int vk_up(const MenuTarget *t) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Roboto Medium (Latin with Latin Extended-A for the French oe, 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, 0x017F, 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},
|
||||
@@ -1182,7 +1183,8 @@ static void tab_menu(float 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_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_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();
|
||||
|
||||
Reference in new issue
Block a user