12 Commits

Author SHA1 Message Date
Niklas080208
ad4dd48026 Fix storage bar colours when theme uses custom background image
Some checks failed
build / build (ubuntu-latest, Release) (push) Failing after 22s
The header storage bar (microSD/System) used ThemeEntryID_BACKGROUND and ThemeEntryID_TEXT_INFO. When a theme sets background to an image path, no colour is set for that entry, so the bar got an unset/default colour (often white) and looked wrong on dark themes. Use PROGRESSBAR and PROGRESSBAR_BACKGROUND for the bar so it always uses theme colours that are defined as colours, not images.
2026-02-06 22:06:01 +01:00
dragonflylee
0474566576 Update chinese localization (#234) 2025-12-01 07:19:51 +09:00
david082321
09e8e50e69 Add Traditional Chinese localization (#223)
* Add Traditional Chinese localization

* Update

Upate to this version
dbb0501420/assets/romfs/i18n/zh-TW.json

* Translate

---------

Co-authored-by: Yorunokyujitsu <164279972+Yorunokyujitsu@users.noreply.github.com>
2025-11-29 06:55:12 +09:00
Yorunokyujitsu
db72e84c5b json: Fixed incorrect Simplified and Traditional Chinese labels 2025-11-29 06:49:40 +09:00
Yorunokyujitsu
d47bb0a41d Update Japanese and Korean.
- Update Japanese translation.
- Update Korean translation.
- Fix JSON syntax error (extra comma) in nl.json.
- Fix several translation strings.
2025-11-28 07:29:27 +09:00
stevo_ko
3b741f3180 Updated German Translation (#214)
* Updated German Translation

Just updated the German Translation, it is probably still not perfect

* Missing semicolons

---------

Co-authored-by: Yorunokyujitsu <164279972+Yorunokyujitsu@users.noreply.github.com>
2025-11-28 06:59:18 +09:00
Ninji418
a8965c0d4a Spanish translations (#230)
* Spanish translations

-Added Spanish translations for backup, USB, and mount menus
-Translations sourced from Google Translate and AI suggestions
-Preserved original formatting, line breaks, and 2-space line prefixes
-Miscellaneous minor UI strings translated
-all translations are taken from the en.json since the es.json has a bunch of empty fields
once again this isn't my native language, anyone is free to correct me on any part they deem necessary
2025-11-28 06:52:07 +09:00
redraz
87c277470e Update ru.json (#200)
Co-authored-by: Yorunokyujitsu <164279972+Yorunokyujitsu@users.noreply.github.com>
2025-11-28 06:24:10 +09:00
Yorunokyujitsu
c1b6287437 Added the missing parentheses. 2025-11-25 19:21:52 +09:00
Yorunokyujitsu
4540dd0112 homebrew: Added a Back button.
- Fixed an issue where entering through Menus could trap the user inside the menu.
2025-11-25 19:12:03 +09:00
Yorunokyujitsu
dbb0501420 json: Updated based on version 1.0.0.
- Removed all deprecated/unused strings.
- Added all missing translatable strings.
- Removed the previous unified Chinese translation and added separate Simplified and Traditional Chinese support.
2025-11-25 19:11:29 +09:00
Yorunokyujitsu
28411fcdd1 i18n: Added translatable strings, new languages, and extended localization features.
- Added sub-keys to better manage long strings, allowing either the sub-key value or the original text to be used.
- Multi-line values are now supported in language.json to prevent overly long single lines.
- Added word-order adjustment for certain Asian languages such as Japanese and Korean.
- Added separate support for Simplified and Traditional Chinese.
2025-11-25 19:10:45 +09:00
41 changed files with 14008 additions and 5812 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,918 @@
{
"Homebrew": "自制软件",
"FileBrowser": "文件浏览器",
"Appstore": "应用商店",
"Corrupted": "已损坏",
"enable_install_info": [
"安装功能已禁用.\n",
"可以通过选择 菜单 (Y) -> 高级选项 -> 安装选项 -> 启用"
],
"On": "开启",
"Off": "关闭",
"Entry": "条目",
"Store": "商店",
"File": "文件",
"Files": "文件",
"FTP": "FTP",
"Games": "游戏",
"Meta": "元数据",
"Nca": "NCA",
"GC": "GC",
"GitHub": "GitHub",
"Apps": "应用",
"IRS": "IRS",
"MTP": "MTP",
"Saves": "存档",
"USB": "USB",
"Level 0 (no compression)": "",
"Level 1": "",
"Level 2": "",
"Level 3 (default)": "",
"Level 4": "",
"Level 5": "",
"Level 6": "",
"Level 7": "",
"Level 8": "",
"0 (single threaded)": "",
"1": "",
"2": "",
"3 (default)": "",
"4": "",
"16 KB": "",
"32 KB": "",
"64 KB": "",
"128 KB": "",
"256 KB": "",
"512 KB": "",
"1 MB (default)": "",
"2 MB": "",
"4 MB": "",
"8 MB": "",
"16 MB": "",
"Switch-Handheld!": "切换至掌机模式!",
"Switch-Docked!": "切换至底座模式!",
"Nxlink Connected": "Nxlink已连接",
"Nxlink Upload": "Nxlink上传中",
"Nxlink Finished": "Nxlink已结束",
"Restore hbmenu?": "恢复 hbmenu",
"Back": "返回",
"Restore": "恢复",
"missing_hbmenu_info": [
"未找到 /switch/hbmenu.nro",
"请使用应用商店重新安装 hbmenu"
],
"OK": "确定",
"Failed to restore hbmenu, please re-download hbmenu": "恢复 hbmenu 失败,请重新下载 hbmenu",
"Failed to restore hbmenu, using sphaira instead": "恢复 hbmenu 失败,改用 Sphaira",
"Restored hbmenu, closing sphaira": "已恢复 hbmenu正在关闭 Sphaira",
"Restored hbmenu": "已恢复 hbmenu",
"Restart Sphaira?": "重启 Sphaira",
"Restart": "重启",
"Installing Forwarder": "正在生成前端应用",
"Failed to install forwarder": "前端应用安装失败",
"Installed!": "安装完成!",
"Warning! Logs are enabled, Sphaira will run slowly!": "警告日志已启用将导致Sphaira运行缓慢",
"Audio disabled due to suspended game": "由于游戏暂停,音频已禁用",
"Theme Options": "主题选项",
"Select Theme": "选择主题",
"Customise the look of Sphaira by changing the theme": "通过更换主题来自定义Sphaira的外观",
"Music": "音乐",
"bgm_enable_info": [
"启用背景音乐\n",
"每个主题设置独立的音乐文件。",
"如果主题未设置音乐文件,则加载默认音乐(如果存在)。"
],
"Show IP address": "显示 IP 地址",
"display_ip_info": [
"在所有菜单中显示IP地址包括WiFi信号栏。\n",
"注意在小程序模式下IP地址将被隐藏因为小程序警告会显示在其位置。"
],
"Remove Background Music": "移除背景音乐",
"Removes the background music file": "删除背景音乐文件",
"No background music file is set": "未设置背景音乐文件",
"Menus": "菜单",
"Web": "网络",
"Enter custom URL": "输入自定义链接",
"Select URL": "选择链接",
"Enter URL": "输入网址",
"web_browser_info": [
"启动内置浏览器\n",
"注意浏览器功能受限某些网站可能无法加载并且浏览器会在30分钟超时后关闭"
],
"Advanced Options": "高级选项",
"Slow": "慢",
"Normal": "正常",
"Fast": "快",
"Logging": "日志",
"Logs to /config/sphaira/log.txt": "日志输出到 /config/sphaira/log.txt",
"Replace hbmenu on exit": "退出后用Sphaira替换hbmenu",
"hbmenu_replace_info": [
"启用后,将用 Sphaira 替换 /hbmenu.nro并将 hbmenu 备份到 /switch/hbmenu.nro \n",
"禁用后将为您提供还原 hbmenu 的选项。"
],
"Add / modify mounts": "添加/修改挂载点",
"mount_options_info": [
"创建、修改、删除网络挂载 (HTTP, FTP, SFTP, SMB, NFS)\n",
"挂载选项只需要设置 URL 和名称,其他字段(如端口、用户、密码等)为可选\n",
"任何更改都需要重启 Sphaira 后生效"
],
"Boost CPU during transfer": "传输时提升CPU频率",
"transfer_boost_info": [
"在传输期间启用加速模式,可提高传输速度。 ",
"这会将 CPU 设置为 1785MHz并将 GPU 降至 76MHz"
],
"Text scroll speed": "文本滚动速度",
"Change how fast the scrolling text updates": "更改滚动文本的更新速度",
"Set center menu": "设置中间菜单",
"Press OK to restart Sphaira": "按OK键以重启shphaira菜单",
"Set the menu that appears on the center tab.": "设置显示在中间选项卡上的菜单。",
"Set left-side menu": "设置左侧菜单",
"Set the menu that appears on the left tab.": "设置显示在左侧选项卡上的菜单。",
"Set right-side menu": "设置右侧菜单",
"Set the menu that appears on the right tab.": "设置显示在右侧选项卡上的菜单。",
"Install options": "安装选项",
"install_options_info": [
"更改安装选项。\n",
"您可以在此启用安装功能"
],
"Export options": "导出选项",
"Change the export options.": "更改导出选项。",
"Install Options": "安装选项",
"System memory": "主机内存",
"microSD card": "SD卡",
"Enable sysmmc": "启用sysmmc",
"Enables installing whilst in sysMMC mode.": "允许在 sysMMC 模式下安装。",
"Enable emummc": "启用emummc",
"Enables installing whilst in emuMMC mode.": "允许在 emuMMC 模式下安装。",
"Install location": "安装位置",
"Allow downgrade": "允许降级",
"Allows for installing title updates that are lower than the currently installed update.": "允许安装低于当前已安装版本的游戏更新。",
"Skip if already installed": "若已安装则跳过",
"Skips installing titles / ncas if they're already installed.": "跳过已安装的游戏/NCA",
"Ticket only": "仅安装票据",
"Installs tickets only, useful if the title was already installed however the tickets were missing or corrupted.": "仅安装 tickets, 适用于已安装但损坏的游戏",
"Skip base": "跳过基础部分",
"Skips installing the base application.": "跳过安装基础应用程序。",
"Skip patch": "跳过更新补丁(UPD)",
"Skips installing updates.": "跳过安装更新。",
"Skip dlc": "跳过追加内容(DLC)",
"Skips installing DLC.": "跳过安装 DLC。",
"Skip data patch": "跳过数据补丁",
"Skips installing DLC update (data patch).": "跳过安装 DLC 更新(数据补丁)。",
"Skip ticket": "跳过票据",
"Skips installing tickets, not recommended.": "跳过安装票据,不推荐。",
"Skip NCA hash verify": "跳过 NCA 哈希验证",
"skip_nca_info": [
"启用跳过完整 NCA 的 sha256 验证。",
"用于验证 NCA 是否有效/未损坏。",
"当安装损坏的游戏时,您可能看到过\"检查损坏数据\"的选项",
"该检查会执行包括对 NCA 在内的各种哈希校验\n",
"建议保持禁用状态。"
],
"Skip RSA header verify": "跳过 RSA 头部验证",
"nca_verify_info": [
"启用跳过 RSA NCA固定密钥验证。",
"这是对NCA头的哈希值。它用于验证头部是否未被修改。 ",
"头部由任天堂签名因此无法伪造可以可靠地检测修改过的NCA头如NSP/XCI转换。\n",
"建议保持禁用状态除非您需要安装nsp/xci转换文件。"
],
"Skip RSA NPDM verify": "跳过 RSA NPDM 验证",
"npdm_verify_info": [
"启用跳过RSA NPDM固定密钥验证\n",
"目前此选项未实现。"
],
"Ignore distribution bit": "忽略发行位",
"nca_distbit_info": [
"如果设置,将忽略 NCA 头部中的发行位",
"发行位用于标识NCA是来自Eshop还是游戏卡。",
"您通常无法启动将发行位设置为游戏卡的已安装游戏。\n",
"建议保持禁用状态。"
],
"Convert to common ticket": "转换为公共票据",
"ticket_convert_info": [
"[需要密钥] 将个人票据转换为公共(虚拟)票据。\n",
"建议保持启用状态。"
],
"Convert to standard crypto": "转换为标准加密方式",
"titlekey_crypto_info": [
"[需要密钥] 将标题密钥转换为标准加密,也称为\"无票据\"。\n",
"建议保持禁用状态。"
],
"Lower master key": "降低主密钥",
"keyarea_crypto_info": [
"[需要密钥] 使用主密钥0加密keak密钥区域密钥允许游戏在任何固件上启动。 ",
"隐式执行标准加密。\n",
"请注意仅仅因为游戏可以在任何固件上启动因为它可以被解密并不意味着它就能正常工作。强烈建议更新您的固件和Atmosphere版本以玩游戏而不是启用此选项。\n",
"建议保持禁用状态。"
],
"Lower system version": "降低系统版本",
"cnmt_fw_info": [
"将cnmt扩展头中的system_firmware字段设置为0。",
"注意如果主密钥高于固件版本游戏仍然无法启动因为固件没有解密keak的密钥见上文。\n",
"建议保持禁用状态。"
],
"Export Options": "导出选项",
"Created nested folder": "已创建嵌套文件夹",
"game_folder_info": [
"使用游戏名称创建文件夹。\n",
"例如:/name/name.xci",
"禁用后将使用 /name.xci"
],
"Append folder with .xci": "用.xci附加文件夹",
"xci_folder_info": [
"XCI转储将使用.xci扩展名命名文件夹。\n",
"例如:/name.xci/name.xci\n",
"某些设备仅在xci文件夹名称与xci文件完全相同时才能正常工作。"
],
"Trim XCI": "裁剪 XCI",
"Removes the unused data at the end of the XCI, making the output smaller.": "移除 XCI 末尾未使用的数据,使输出更小。",
"Label trimmed XCI": "标记已裁剪的XCI",
"Names the trimmed xci.\nFor example, /name/name (trimmed).xci": "为修剪后的xci命名。\n例如/name/name (trimmed).xci",
"Converts personalised ticket to a fake common ticket.": "将个人票据转换为虚拟公共票据。",
"NSZ level": "NSZ 压缩级别",
"compress_level_info": [
"设置导出NSZ时使用的压缩级别。\n",
"注意Switch的CPU速度不是很快将值设置得过高会导致导出耗时非常长但文件大小仅有很小的改善。\n",
"建议将此值设置为3。"
],
"NSZ threads": "NSZ 线程数",
"compress_threads_info": [
"设置压缩NCA时使用的线程数。\n",
"小于3的值允许另一个线程自由运行例如读/写线程。但在我的测试中值为3时通常性能最佳。\n",
"值为0将不使用线程仅应用于测试因为它总是更慢。\n",
"建议将此值设置在1-3之间。"
],
"NSZ long distance mode": "NSZ 远距离模式",
"Enables \"Long Distance Mode\" which can reduce the output size at the cost of speed.": "启用\"远距离模式\",可以减少输出大小,但会降低速度。",
"NSZ block compression": "NSZ 块压缩",
"block_compress_info": [
"启用块压缩将NCA压缩成块代价是压缩率降低 ",
"允许随机访问使NCZ可以作为文件系统挂载。\n",
"注意Sphaira目前还不支持将NCZ作为文件系统挂载但最终会添加此功能。"
],
"NSZ block size": "NSZ 块大小",
"Sets the size of each block. The smaller the size, the faster the random access is at the cost of compression ratio.": "设置每个块的大小。块越小,随机访问速度越快,但压缩率会降低。",
"NSZ block compression is disabled.": "NSZ 块压缩已禁用。",
"FTP Options": "FTP选项",
"Restarting FTP server...": "正在重启 FTP 服务器...",
"Enable": "启用",
"Enable FTP server to run in the background.": "启用 FTP 服务器后台运行。",
"Port": "端口号",
"Opens the FTP server on this port.": "在此端口上打开 FTP 服务器。",
"Anon": "匿名登录",
"login_require_info": [
"允许您无需设置用户名和密码即可登录。\n",
"如果禁用,您必须在下方设置用户名和密码!"
],
"User": "用户",
"Sets the username, must be set if anon is disabled.": "设置用户名,如果禁用匿名登录则必须设置。",
"Pass": "密码",
"Sets the password, must be set if anon is disabled.": "设置密码,如果禁用匿名登录则必须设置。",
"Show album": "显示相册",
"Shows the microSD card album folder.": "显示 microSD 卡的相册文件夹。",
"Show Atmosphere contents": "显示 Atmosphere 内容",
"Shows the shortcut for the /atmosphere/contents folder.": "显示 /atmosphere/contents 文件夹的快捷方式。",
"Show bis storage": "显示 bis 存储",
"bis_contents_info": [
"显示包含以下文件的bis文件夹:",
"- BootPartition1Root.bin",
"- BootPartition2Root.bin",
"- UserDataRoot.bin",
"- BootConfigAndPackage2Part1.bin",
"- BootConfigAndPackage2Part2.bin",
"- BootConfigAndPackage2Part3.bin",
"- BootConfigAndPackage2Part4.bin",
"- BootConfigAndPackage2Part5.bin",
"- BootConfigAndPackage2Part6.bin",
"- CalibrationFile.bin",
"- SafeMode.bin",
"- User.bin",
"- System.bin",
"- SystemProperEncryption.bin"
],
"Show bis file systems": "显示 bis 文件系统",
"bis_fs_info": [
"显示以下bis文件系统:",
"- bis_calibration_file",
"- bis_safe_mode",
"- bis_user",
"- bis_system"
],
"Show system contents": "显示系统内容",
"Shows the system contents folder.": "显示系统内容文件夹。",
"Show user contents": "显示用户内容",
"Shows the user contents folder.": "显示用户内容文件夹。",
"Show microSD contents": "显示 microSD 卡内容",
"microsd_contents_info": [
"显示microSD contents文件夹。\n",
"注意这不是普通的microSD卡存储而是NCA存储的位置。",
"普通microSD卡始终是挂载的。"
],
"Show games": "显示游戏",
"games_ftp_info": [
"显示games文件夹。\n",
"此文件夹包含您所有已安装的游戏允许您通过FTP创建备份\n",
"注意此文件夹是只读的。您无法通过FTP删除游戏。"
],
"Show install": "显示安装文件夹",
"install_ftp_info": [
"显示install文件夹。\n",
"此文件夹用于通过FTP安装游戏。\n",
"注意:尝试安装游戏时必须打开\"FTP安装\"菜单!"
],
"Show mounts": "显示挂载点",
"mounts_ftp_info": [
"显示mounts文件夹。\n",
"此文件夹包含添加到Sphaira的所有挂载点允许您通过FTP访问它们",
"例如您可以通过FTP访问SMB、WebDav或其他FTP挂载点。"
],
"Show switch": "显示 Switch 目录",
"homebrew_folder_info": [
"显示/switch文件夹的快捷方式。",
"这是包含所有自制软件NRO的文件夹。"
],
"MTP Options": "MTP选项",
"Restarting MTP server...": "正在重启 MTP 服务器...",
"Enable MTP server to run in the background.": "启用 MTP 服务器后台运行。",
"Pre-allocate file": "预分配文件",
"prealloc_info": [
"在写入前启用文件大小预分配。",
"这会加快文件写入速度,但如果同时满足以下所有条件,可能会导致超时:",
"- 使用 Windows 系统",
"- 使用 emuMMC",
"- 传输大文件(>1GB\n",
"建议保持此选项启用,但如果您使用上述配置并遇到超时, ",
"请在禁用此选项后重试。"
],
"games_mtp_info": [
"显示games文件夹。\n",
"此文件夹包含您所有已安装的游戏允许您通过MTP创建备份\n",
"注意此文件夹是只读的。您无法通过MTP删除游戏。"
],
"install_mtp_info": [
"显示install文件夹。\n",
"此文件夹用于通过MTP安装游戏。\n",
"注意:尝试安装游戏时必须打开\"MTP安装\"菜单!"
],
"mounts_mtp_info": [
"显示mounts文件夹。\n",
"此文件夹包含添加到Sphaira的所有挂载点允许您通过MTP访问它们",
"例如您可以通过MTP访问SMB、WebDav和FTP挂载点。"
],
"Show DevNull": "显示 DevNull",
"usb_benchmark_info": [
"显示DevNull速度测试文件夹。\n",
"此文件夹用于USB上传的基准测试。",
"这是一个虚拟文件夹,实际上不会向磁盘写入任何内容。"
],
"HDD Options": "硬盘选项",
"mount_hdd_info": [
"启用已连接的USB/HDD设备挂载。 ",
"已连接的设备可在文件浏览器中使用,也可作为转储游戏和存档时的备份位置。"
],
"HDD write protect": "硬盘写保护",
"Makes the connected HDD read-only.": "将已连接的硬盘设置为只读。",
"Installing is disabled, enable now?": "安装功能已禁用,现在启用吗?",
"WARNING: Installing apps will lead to a ban!": "警告:安装应用程序将导致封禁!",
"Installing enabled!": "已启用安装!",
"microSD card (/dumps/)": "",
"USB export to PC (usb_export.py)": "",
"USB transfer (Switch 2 Switch)": "USB传输Switch对Switch",
"/dev/null (Speed Test)": "/dev/null速度测试",
"Waiting for USB connection...": "",
"USB connected, sending file list": "USB已连接正在发送文件列表",
"Sent file list, waiting for command...": "已发送文件列表,正在等待命令...",
"waiting for usb connection...": "等待USB连接...",
"Exporting": "正在导出",
"Export failed!": "导出失败!",
"Export successfull!": "导出成功!",
"Select export location": "选择导出位置",
"Please launch MTP install menu before trying to install": "请在尝试安装前启动 MTP 安装菜单",
"Album": "专辑",
"Install (NSP, XCI, NSZ, XCZ)": "安装 (NSP, XCI, NSZ, XCZ)",
" (Read Only)": " (只读)",
"Unknown": "未知",
"Application": "",
"Creating Program": "正在创建程序",
"Creating Control": "正在创建控制器",
"Creating Meta": "正在创建元数据",
"Writing Nca": "正在写入Nca",
"Updating ncm database": "正在更新ncm数据库",
"Pushing application record": "正在推送应用记录",
"Failed to remove old forwarder, please manually remove it!": "删除旧前端应用失败,请手动删除!",
"An error occurred": "发生错误",
"If this message appears repeatedly, please open an issue.": "若此消息反复出现,请提交问题报告。",
"Failed to load music": "音乐加载失败",
"Artist: Unknown": "艺术家: 未知",
"Album: Unknown": "专辑: 未知",
"Select": "选择",
"Are you sure you wish to cancel?": "您确定要取消吗?",
"No": "否",
"Yes": "是",
"%zu hours %zu minutes remaining": "剩余 %zu 小时 %zu 分钟",
"%zu minutes %zu seconds remaining": "剩余 %zu 分钟 %zu 秒",
"%zu seconds remaining": "剩余 %zu 秒",
"Closing empty sidebar": "关闭空侧边栏",
"All": "全部",
"Emulators": "模拟器",
"Tools": "工具",
"Advanced": "高级",
"Themes": "主题",
"Legacy": "旧版",
"Misc": "拓展",
"Updated": "最近使用",
"Downloads": "下载",
"Size": "按大小",
"Alphabetical": "按字母顺序",
"Desc": "降序",
"Asc": "升序",
"Removing ": "正在移除 ",
"Downloading ": "正在下载 ",
"Checking MD5": "正在校验 MD5",
"Options": "选项",
"More by Author": "作者更多作品",
"Leave Feedback": "留言反馈",
"Visit Website": "访问网站",
"version: %s": "版本: %s",
"updated: %s": "更新时间: %s",
"category: %s": "分类: %s",
"extracted: %s": "已解压:%s",
"app_dls: %s": "下载量: %s",
"Loading...": "加载中...",
"Failed to download manifest": "下载清单失败",
"Details": "详情",
"Changelog": "更新日志",
"Downloaded ": "已下载 ",
"Uninstalling ": "正在卸载 ",
"Removed ": "已移除 ",
"Install": "安装",
"Update": "更新",
"Launch": "启动",
"Remove": "删除",
"Completely remove ": "彻底删除 ",
"AppStore": "应用商店",
"Info": "信息",
"AppStore Options": "应用商店选项",
"Descending": "降序",
"Ascending": "升序",
"List": "列表",
"Icon": "图标",
"Grid": "网格",
"Filter": "筛选",
"Sort": "排序",
"Order": "顺序",
"Layout": "布局",
"Search": "搜索",
"Empty!": "空空如也!",
"Filter: %s | Sort: %s | Order: %s": "筛选: %s | 排序: %s | 顺序: %s",
"File Picker": "文件选择器",
"Failed to parse nro": "解析 nro 失败",
"Name": "名称",
"Set the name of the application": "设置应用程序的名称",
"Author": "作者",
"Set the author of the application": "设置应用程序的作者",
"Version": "版本",
"Set the display version of the application": "设置应用程序的显示版本",
"Set the path to the icon for the forwarder": "设置前端启动器图标的路径",
"Create": "创建",
"Failed to load icon": "加载图标失败",
"Create the forwarder.": "创建前端启动器。",
"All fields must be non-empty!": "所有字段不能为空!",
"Open": "打开",
"Empty...": "空...",
"%zd files": "%zd 个文件",
"%zd dirs": "%zd 个文件夹",
"Open with DayBreak?": "使用DayBreak打开",
"Launch ": "启动 ",
"Launch option for: ": "启动选项:",
"Select launcher for: ": "选择启动器用于:",
"Install Selected files?": "安装所选文件?",
"Installing ": "正在安装 ",
"Installed ": "已安装",
"File install failed!": "文件安装失败!",
"Extracting ": "正在解压",
"Extract failed!": "解压失败!",
"Extract success!": "解压成功!",
"Compressing ": "正在压缩 ",
"Compress failed!": "压缩失败",
"Compress success!": "压缩成功!",
"Failed to delete directory": "删除目录失败",
"Failed to delete file": "删除文件失败",
"Deleting": "正在删除",
"Scanning ": "正在扫描 ",
"Pasting": "正在粘贴",
"Pasting ": "正在粘贴 ",
"Creating ": "正在创建 ",
"Copying ": "正在复制 ",
"Deleting ": "正在删除 ",
"Hashing": "正在计算文件哈希",
"Failed to hash file...": "计算文件哈希失败...",
"File Options": "文件选项",
"Mount": "挂载",
"Sort By": "排序方式",
"Sort Options": "排序选项",
"Show Hidden": "显示隐藏项目",
"Folders First": "文件夹靠前",
"Hidden Last": "隐藏项目置后",
"Cut": "剪切",
"Copy": "复制",
"Paste": "粘贴",
"Paste file(s)?": "粘贴 个文件(夹)",
"Rename": "重命名",
"Set new name": "设置新名称",
"Failed to rename file: ": "重命名文件失败: ",
"Delete": "删除",
"Delete Selected files?": "删除选中的文件?",
"Install Forwarder": "安装前端应用",
"Extract zip": "解压 zip",
"Extract Options": "解压选项",
"Extract here": "解压到这里",
"Extract to root": "解压到根目录",
"Are you sure you want to extract to root?": "您确定要解压到根目录吗?",
"Extract to...": "解压到...",
"Enter the path to the folder to extract into": "输入要解压到的文件夹的路径",
"Compress to zip": "压缩到zip",
"Compress Options": "压缩选项",
"Compress": "压缩",
"Compress to...": "压缩到...",
"Enter the path to the folder to compress into": "输入要压缩的文件夹路径",
"Create File": "新建文件",
"Set File Name": "输入文件名",
"Create Folder": "新建文件夹",
"Set Folder Name": "输入文件夹名",
"View as text (unfinished)": "以文本形式查看(未完善)",
"Set as background music": "设置为背景音乐",
"Failed to set default music path": "设置默认音乐路径失败",
"Hash": "哈希",
"Hash Options": "哈希选项",
"Ignore read only": "忽略只读",
"Failed to mount FS.": "文件系统挂载失败。",
"Close FileBrowser?": "是否关闭文件浏览器?",
"Split": "拆分",
"Close": "关闭",
"FTP Install": "通过 FTP 安装",
"Connection Type: WiFi | Strength: ": "连接类型WiFi |强度:",
"Connection Type: Ethernet": "连接类型:以太网",
"Connection Type: None": "连接类型:无",
"Host:": "主机:",
"Port:": "端口:",
"Username:": "用户名:",
"Password:": "密码:",
"SSID:": "网络名称:",
"Passphrase:": "密码:",
"Success": "成功",
"Failed to launch application": "",
"Game Options": "游戏选项",
"Hide forwarders": "隐藏前端启动",
"View application content": "查看应用程序内容",
"Launch random game": "启动随机游戏",
"Export NSP": "导出 NSP",
"Not supported in Applet Mode": "小程序模式不支持",
"Export NSZ": "导出 NSZ",
"Exports to NSZ (compressed NSP)": "导出为 NSZ压缩的 NSP",
"Are you sure you want to delete ": "您确定要删除吗 ",
"Advanced options": "高级选项",
"Refresh": "刷新",
"Create contents folder": "创建内容文件夹",
"Folder create failed!": "文件夹创建失败!",
"Folder created!": "文件夹创建成功!",
"Create save": "创建存档",
"Select user to create save for": "选择要为其创建存档的用户",
"Delete title cache": "删除游戏缓存",
"Are you sure you want to delete the title cache?": "您确定要删除标题缓存吗?",
"Updating application record list": "更新应用程序记录列表",
"Delete failed!": "删除失败!",
"Delete successfull!": "删除成功!",
"Select content to export": "选择要导出的内容",
"Export All": "导出全部",
"Export Application": "导出应用程序",
"Export Patch": "导出补丁",
"Export AddOnContent": "导出追加内容(DLC)",
"Export DataPatch": "导出数据补丁",
"Creating": "正在创建",
"Save create failed!": "存档创建失败!",
"Save create successfull!": "存档创建成功!",
"Failed to delete meta entry": "删除元数据失败",
"None": "无",
"Common": "公共",
"Personalised": "个性化",
"Missing": "丢失",
"View Content": "查看内容",
"Content Options": "内容选项",
"Are you sure you want to delete the selected entries?": "您确定要删除选定的条目吗?",
"Reset required system version": "重置所需系统版本",
"Are you sure you want to reset required system version?": "您确定要重置所需的系统版本吗?",
"Reset": "重置",
"Failed to reset required system version": "重置所需系统版本失败",
"Required System Version: %u.%u.%u": "",
"Required Application Version: v%u": "",
"Content Count: %u (%u missing)": "",
"Content Count: %u": "",
"Ticket: %s": "",
"Key Generation: %u (%s)": "",
"Display Version: %s": "",
"Mount Fs": "挂载文件系统",
"Failed to mount NCA": "NCA 挂载失败",
"NCA Options": "NCA选项",
"Export NCA": "导出NCA",
"Export NCA decrypted": "导出已解密的 NCA",
"Exports the NCA with all fs sections decrypted (NCA header is still encrypted).": "导出所有文件系统分区已解密的 NCANCA 头仍为加密)。",
"Verify NCA 256 hash": "验证 NCA 256 哈希",
"NCA hash missmatch!": "NCA 哈希值不匹配!",
"NCA hash valid.": "NCA 哈希值有效。",
"nca_validate_info": [
"对NCA执行sha256哈希以检查其是否有效。\n",
"注意:这仅检测哈希是否不匹配,并不验证内容是否已被修改。"
],
"Verify NCA fixed key": "验证NCA固定密钥",
"NCA fixed key is invalid!": "NCA固定密钥无效",
"NCA fixed key is valid.": "NCA固定密钥有效。",
"nca_fixedkey_info": [
"执行RSA NCA固定密钥验证。",
"这是对NCA头部的哈希值。它用于验证头部是否未被修改。 ",
"头部由任天堂签名因此无法伪造可以可靠地检测修改过的NCA头如NSP/XCI转换。"
],
"Failed to decrypt NCA": "解密 NCA 失败",
"Application Type: %s": "",
"Content Type: %s": "",
"Distribution Type: %s": "",
"Program ID: %016lX": "",
"SDK Version: %u.%u.%u.%u": "",
"Export XCI (Gamecard)": "",
"Export XCZ (Compressed XCI)": "",
"GameCard": "游戏卡",
"Gc install failed!": "游戏安装失败。",
"Gc install success!": "游戏安装成功。",
"Select content to dump": "选择要转储的内容",
"Export All Bins": "导出所有 Bin 文件",
"Export XCI": "导出 XCI",
"Export Card ID Set": "导出游戏卡ID集",
"Export Card UID": "导出游戏卡UID",
"Export Certificate": "导出证书",
"Export Initial Data": "导出初始数据",
"Failed to mount GameCard filesystem": "游戏卡文件系统挂载失败",
"System memory %.1f GB": "主机内存 %.1f GB",
"microSD card %.1f GB": "microSD卡 %.1f GB",
"App-ID: 0%lX": "",
"Key-Gen: %u (%s)": "",
"Size: %.2f GB": "",
"Base: %zu Patch: %zu Addon: %zu Data: %zu": "",
"Prev": "上一项",
"Next": "下一项",
"No GameCard inserted": "未插入游戏卡",
"WARNING: GameCard is already trimmed!": "警告:游戏卡已被修剪!",
"Continue": "继续",
"GameCard is trimmed, full dump is not possible!": "游戏卡已被裁剪,无法进行完整转储!",
"Downloading json": "正在下载JSON",
"Download": "下载",
"Failed to download json": "下载JSON失败",
"Select release to download for ": "选择要下载的版本:",
"Select asset to download for ": "选择要下载的资源:",
"Failed to download app!": "下载应用失败!",
"Unstar": "取消星标",
"Unstarred ": "取消星标 ",
"Star": "星标",
"Starred ": "已星标 ",
"Homebrew Options": "自制软件选项",
"Updated (Star)": "最近更新(星标优先)",
"Alphabetical (Star)": "按字母顺序(星标优先)",
"Size (Star)": "按大小(星标优先)",
"Display entries in Ascending or Descending order.": "以升序或降序显示条目。",
"Change the layout to List, Icon and Grid.": "切换布局:列表、图标和网格。",
"Show hidden": "显示隐藏项目",
"Shows all hidden homebrew.": "显示所有隐藏的自制软件。",
"Test": "测试",
"Hide": "隐藏",
"Hides the selected homebrew.\nTo unhide homebrew, enable \"Show hidden\" in the sort options.": "隐藏所选自制软件。\n要取消隐藏自制软件请在排序选项中启用\"显示隐藏项目\"。",
"Mount NRO Fs": "挂载 NRO 文件系统",
"Failed to mount NRO FileSystem": "NRO 文件系统挂载失败",
"Mounts the NRO FileSystem (icon, nacp and RomFS).": "挂载 NRO 文件系统图标、nacp 和 RomFS。",
"hb_remove_info": [
"永久删除所选自制软件。\n",
"自制软件创建的文件和文件夹仍将保留。 ",
"请使用文件浏览器删除它们。"
],
"Failed to load image": "图片加载失败",
"Install failed!": "通过 FTP 安装失败。",
"Install success!": "通过 FTP 安装成功。",
"Drag'n'Drop (NSP, XCI, NSZ, XCZ) to the install folder": "拖放文件(NSP, XCI, NSZ, XCZ)至安装文件夹",
"Failed to install, press B to exit...": "通过 FTP 安装失败,按 B 键退出...",
"Irs": "红外成像",
"0 (Sideways)": "0度",
"90 (Flat)": "90度",
"180 (-Sideways)": "180度",
"270 (Upside down)": "270度",
"Grey": "灰色",
"Ironbow": "紫黄",
"Green": "绿色",
"Red": "红色",
"Blue": "蓝色",
"All leds": "全部",
"Bright group": "亮色组",
"Dim group": "暗色组",
"Normal image": "正常图像",
"Negative image": "负片图像",
"Controller": "控制器",
"Rotation": "旋转",
"Colour": "颜色",
"Light Target": "光源目标",
"Gain": "曝光",
"Negative Image": "负片图像",
"Format": "格式",
"Trimming Format": "修剪格式",
"External Light Filter": "外部光滤镜",
"Load Default": "加载默认值",
"Ambient Noise Level: ": "环境噪声等级:",
"Pad ": "手柄 ",
"HandHeld": "掌机模式",
" (Available)": " (可用)",
" (Unsupported)": " (不支持)",
" (Unconnected)": " (未连接)",
"The homebrew menu.\n\nAllows you to launch, delete and mount homebrew!": "自制软件菜单。\n\n允许您启动、删除和挂载自制软件",
"Download and update apps.\n\nInternet connection required.": "下载和更新应用。\n\n需要互联网连接。",
"View all installed games. In this menu you can launch, backup, create savedata and much more.": "查看所有已安装的游戏。在此菜单中,您可以启动、备份、创建存档等操作。",
"Browse files on you SD Card. You can move, copy, delete, extract zip, create zip, upload and much more.\n\nA connected USB/HDD can be opened by mounting it in the advanced options.": "浏览您的SD卡文件。您可以移动、复制、删除、解压zip、创建zip、上传等更多操作。\n\n连接的USB/HDD可以通过在高级选项中挂载来打开。",
"View save data for each user. You can backup and restore saves.\n\nExperimental support for backing up system saves is possible.": "查看每个用户的存档数据。您可以备份和还原存档。\n\n可能支持备份系统存档实验性功能。",
"Download releases directly from GitHub. Custom entries can be added to /config/sphaira/github": "直接从GitHub下载发布版本。自定义条目可以添加到 /config/sphaira/github",
"Install apps via FTP.": "通过FTP安装应用。",
"MTP Install": "MTP安装",
"Install apps via MTP.": "通过MTP安装应用。",
"USB Install": "通过 USB 安装",
"Install apps via USB.\n\nA USB client is required on PC.": "通过USB安装应用。\n\n需要在PC上安装USB客户端。",
"View info on the inserted Game Card (GC). You can backup and install the inserted GC. To swap GC's, simply remove the old GC and insert the new one. You do not need to exit the menu.": "查看已插入游戏卡GC的信息。您可以备份和安装已插入的游戏卡。要更换游戏卡只需取出旧游戏卡并插入新的。无需退出菜单。",
"IRS (Infrared Joycon Camera)": "IRS(Joycon红外摄像头)",
"InfraRed Sensor (IRS) is the small camera found on right JoyCon.": "红外传感器IRS是右侧JoyCon上的小型摄像头。",
"Update avaliable: ": "有可用更新!",
"Download via the Network options!": "通过网络选项下载!",
"Menu": "菜单",
"Menu Options": "菜单选项",
"Auto": "自动",
"English": "English",
"Japanese": "日本語",
"French": "Français",
"German": "Deutsch",
"Italian": "Italiano",
"Spanish": "Español",
"Chinese (Simplified)": "简体中文",
"Korean": "한국어",
"Dutch": "Dutch",
"Portuguese": "Português",
"Russian": "Русский",
"Chinese (Traditional)": "繁體中文",
"Swedish": "Svenska",
"Vietnamese": "Vietnamese",
"Ukrainian": "Українська",
"Launch one of Sphaira's menus:\n": "启动Sphaira的一个菜单\n",
"\nYou can change the left/right menu in the Advanced Options.": "\n您可以在高级选项中更改左/右菜单。",
"Network": "网络",
"Network Options": "网络选项",
"Download update: ": "下载更新:",
"Failed to download update": "更新下载失败",
"Updated to ": "更新至 ",
"ftp_settings_info": [
"启用/修改FTP服务器设置如端口、用户/密码以及显示的文件夹。\n",
"注意更改任何选项将在退出选项菜单时自动重启FTP服务器。"
],
"mtp_settings_info": [
"启用/修改MTP响应器设置如显示的文件夹。\n",
"注意更改任何选项将在退出选项菜单时自动重启MTP服务器。"
],
"HDD": "硬盘",
"Enable / modify the HDD mount options.": "启用/修改 HDD 挂载选项。",
"NXlink": "NXlink",
"nxlink_enable_info": [
"启用NXlink服务器后台运行",
"NXlink用于从DC向Switch发送.nro文件\n",
"如果您不是开发者,可以禁用此选项。"
],
"nxlink_toggle_info": [
"切换FTP、MTP、HDD和NXlink\n",
"如果Sphaira有可用更新您可以从此菜单下载"
],
"Theme": "主题",
"Language": "语言",
"translation_info": [
"更改语言\n",
"如果找不到您的语言或翻译缺失,请考虑在 github.com/ITotalJustice/sphaira 提交PR"
],
"advanced_options_info": [
"更改高级选项。",
"请查看信息框以更好地理解每个选项。"
],
"System %.1f GB": "系统 %.1f GB",
"microSD %.1f GB": "microSD %.1f GB",
"[Applet Mode]": "[小程序模式]",
"Ethernet": "以太网",
"No Internet": "网络未连接",
"State: %s | Speed: %s": "状态: %s | 速度: %s",
"Failed to mount save filesystem": "存档文件系统挂载失败",
"Save Options": "存档选项",
"System": "系统",
"Account": "账户",
"BCAT": "BCAT数据",
"Device": "设备",
"Temporary": "临时",
"Cache": "缓存",
"System BCAT": "系统备份",
"Data Type": "数据类型",
"Backup": "备份",
"Backup the selected save(s) to a location of your choice.": "将选中的存档备份到您选择的位置。",
"Backup to...": "备份到...",
"Backup the selected save(s) to a location of your choice, and set the name of the backup.": "将选定的存档备份到您选择的位置,并设置备份名称。",
"save_backuprestore_info": [
"还原当前游戏的存档。",
"如果启用了\"自动备份\",存档将首先被备份然后还原。 ",
"自动备份的存档名称中将包含\"Auto\"。"
],
"Auto backup on restore": "还原时自动备份",
"If enabled, when restoring a save, the current save will first be backed up.": "如果启用,当还原存档时,当前存档将首先被备份。",
"Compress backup": "压缩备份",
"save_backup_compress_info": [
"如果启用备份将被压缩为zip文件。\n",
"注意禁用此选项不会禁用zip文件它只会禁用zip中存储文件的压缩。",
"禁用将使备份速度更快,但代价是文件大小增加。"
],
"Select backup location": "选择备份位置",
"Backup failed!": "备份失败!",
"Backup successfull!": "已备份成功!",
"Select restore location": "选择还原位置",
"Invalid location type!": "位置类型无效!",
"No saves found in ": "未找到存档 ",
"Restore save for: ": "还原备份文件: ",
"Are you sure you want to restore ": "您确定要还原已备份文件吗 ",
"Auto backup": "自动备份",
"Restore failed!": "还原失败!",
"Restore successfull!": "已还原成功!",
"Set name for ": "设置名称为:",
"Set backup name": "设备备份名称",
"Flushing zip to file": "将压缩包写入文件",
"Disable MTP for usb install": "暂时禁用 USB 安装的 MTP 功能",
"Re-enabled MTP": "重新启用 MTP",
"Installed via usb": "通过 USB 安装",
"USB install failed!": "USB 安装失败!",
"Usb install success!": "USB安装成功",
"Waiting for connection...": "等待连接中...",
"Connected, waiting for file list...": "已连接,正在等待文件列表...",
"Connected, starting transfer...": "已连接,开始传输...",
"Transferring data...": "正在传输数据...",
"Press B to exit...": "按 B 键退出...",
"Failed to init usb, press B to exit...": "USB 初始化失败,按 B 键退出...",
"Detached": "已断开",
"Attached": "已连接",
"Powered": "已供电",
"Default": "默认",
"Address": "地址",
"Configured": "已配置",
"Suspended": "已挂起",
"USB 1.0 Low Speed": "USB 1.0 低速",
"USB 1.1 Full Speed": "USB 1.1 全速",
"USB 2.0 High Speed": "USB 2.0 高速",
"USB 3.0 Super Speed": "USB 3.0 超高速",
"Mount Creator": "创建挂载",
"Type": "类型",
"Select the type of the forwarder.": "选择前端启动器的类型。",
"URL": "",
"Set the URL of the application": "设置应用程序的 URL",
"Optional: Set the port of the server. If left empty, the default port for the protocol will be used.": "可选:设置服务器端口。如果留空,将使用协议的默认端口。",
"Timeout": "超时",
"Timeout in milliseconds": "超时(毫秒)",
"Optional: Set the timeout in seconds.": "可选:设置超时时间(秒)。",
"Optional: Set the username of the application": "可选:设置应用程序的用户名",
"Optional: Set the password of the application": "可选:设置应用程序的密码",
"Dump path": "转储路径",
"Optional: Set the dump path used when exporting games and saves.": "可选:设置导出游戏和存档时使用的转储路径。",
"Read only": "只读",
"mount_readonly_info": [
"将文件系统挂载为只读。\n",
"设置此选项还会隐藏挂载点,使其不显示为导出选项。"
],
"No stat file": "",
"filecheck_disable_info": [
"启用后将阻止文件浏览器检查每个文件的大小和时间戳。",
"这可以提高浏览性能。"
],
"No stat dir": "",
"dircheck_disable_info": [
"启用后,文件浏览器将停止检查文件夹中有多少文件和文件夹。",
"这可以提高浏览性能,尤其是对于目录列表速度慢的服务器。"
],
"FS hidden": "隐藏挂载点",
"Hide the mount from being visible in the file browser.": "隐藏挂载点,不在文件浏览器中显示。",
"Export hidden": "隐藏到处",
"Hide the mount from being visible as a export option for games and saves.": "隐藏挂载点,不显示为游戏和存档的导出选项。",
"Save": "保存",
"Mount entry saved. Restart Sphaira to apply changes.": "挂载条目已保存。重启 Sphaira 以应用更改。",
"Saves the mount entry.\n\nNOTE: You must restart Sphaira for changes to take effect!": "保存挂载条目。\n\n注意您必须重启Sphaira才能使更改生效",
"Name and URL must be set!": "必须设置名称和URL",
"Devoptab Options": "Devoptab选项",
"Create New Entry": "创建新条目",
"Creates a new mount option.\n\nNOTE: You must restart Sphaira for changes to take effect!": "创建新的挂载选项。\n\n注意您必须重启Sphaira才能使更改生效",
"Modify Existing Entry": "修改现有条目",
"No mount entries found.": "未找到挂载条目。",
"Modify Entry": "修改条目",
"Modify an existing mount option.\n\nNOTE: You must restart Sphaira for changes to take effect!": "修改现有的挂载选项。\n\n注意您必须重启Sphaira才能使更改生效",
"Delete Existing Entry": "删除现有条目",
"Delete Entry": "删除条目",
"Delete an existing mount option.\n\nNOTE: You must restart Sphaira for changes to take effect!": "删除现有的挂载选项。\n\n注意您必须重启Sphaira才能使更改生效",
"Section #": ""
}

View File

@@ -0,0 +1,923 @@
{
"Homebrew": "自製軟體",
"FileBrowser": "檔案瀏覽器",
"Appstore": "程式商店",
"Corrupted": "已損毀",
"enable_install_info": [
"安裝功能已停用。\n",
"請在 選單 (Y) -> 進階 -> 安裝選項 -> 啟用 中開啟。"
],
"On": "開",
"Off": "關",
"Entry": "入口",
"Store": "商店",
"File": "檔案",
"Files": "檔案",
"FTP": "FTP",
"Games": "遊戲",
"Meta": "Meta",
"Nca": "NCA",
"GC": "卡匣",
"GitHub": "GitHub",
"Apps": "應用程式",
"IRS": "IRS",
"MTP": "MTP",
"Saves": "存檔",
"USB": "USB",
"Level 0 (no compression)": "等級 0 (無壓縮)",
"Level 1": "等級 1",
"Level 2": "等級 2",
"Level 3 (default)": "等級 3 (預設)",
"Level 4": "等級 4",
"Level 5": "等級 5",
"Level 6": "等級 6",
"Level 7": "等級 7",
"Level 8": "等級 8",
"0 (single threaded)": "0 (單執行緒)",
"1": "1",
"2": "2",
"3 (default)": "3 (預設)",
"4": "4",
"16 KB": "16 KB",
"32 KB": "32 KB",
"64 KB": "64 KB",
"128 KB": "128 KB",
"256 KB": "256 KB",
"512 KB": "512 KB",
"1 MB (default)": "1 MB (預設)",
"2 MB": "2 MB",
"4 MB": "4 MB",
"8 MB": "8 MB",
"16 MB": "16 MB",
"Switch-Handheld!": "切換到手提模式!",
"Switch-Docked!": "切換到底座模式!",
"Nxlink Connected": "Nxlink 已連線",
"Nxlink Upload": "Nxlink 上傳",
"Nxlink Finished": "Nxlink 完成",
"Restore hbmenu?": "還原 hbmenu",
"Back": "返回",
"Restore": "還原",
"missing_hbmenu_info": [
"找不到 /switch/hbmenu.nro",
"請使用程式商店重新安裝 hbmenu"
],
"OK": "確定",
"Failed to restore hbmenu, please re-download hbmenu": "還原 hbmenu 失敗,請重新下載 hbmenu",
"Failed to restore hbmenu, using sphaira instead": "還原 hbmenu 失敗,改用 Sphaira",
"Restored hbmenu, closing sphaira": "已還原 hbmenu正在關閉 Sphaira",
"Restored hbmenu": "已還原 hbmenu",
"Restart Sphaira?": "重新啟動 Sphaira",
"Restart": "重新啟動",
"Installing Forwarder": "正在安裝前導程式",
"Failed to install forwarder": "安裝前導程式失敗",
"Installed!": "已安裝!",
"Warning! Logs are enabled, Sphaira will run slowly!": "警告記錄檔已啟用Sphaira 執行速度將變慢!",
"Audio disabled due to suspended game": "因遊戲暫停而停用音訊",
"Theme Options": "佈景主題選項",
"Select Theme": "選擇佈景主題",
"Customise the look of Sphaira by changing the theme": "更換佈景主題以自訂 Sphaira 的外觀",
"Music": "音樂",
"bgm_enable_info": [
"啟用背景音樂。",
"每個佈景主題都可以有自己的音樂檔案。",
"如果佈景主題未設定音樂檔案,則會載入預設音樂 (若存在)。"
],
"Show IP address": "顯示 IP 位址",
"display_ip_info": [
"在所有選單中顯示 IP 位址 (包含 WiFi 強度)。\n",
"注意在小程式模式下由於該位置會顯示警告訊息IP 位址將被隱藏。"
],
"Remove Background Music": "移除背景音樂",
"Removes the background music file": "移除背景音樂檔案",
"No background music file is set": "未設定背景音樂檔案",
"Menus": "選單",
"Web": "網頁",
"Enter custom URL": "輸入自訂網址",
"Select URL": "選擇網址",
"Enter URL": "輸入網址",
"web_browser_info": [
"啟動內建網頁瀏覽器。\n",
"注意:此瀏覽器功能非常有限,部分網站可能無法載入,且有 30 分鐘逾時限制,超時後將關閉瀏覽器。"
],
"Advanced Options": "進階選項",
"Slow": "慢",
"Normal": "正常",
"Fast": "快",
"Logging": "記錄檔",
"Logs to /config/sphaira/log.txt": "記錄至 /config/sphaira/log.txt",
"Replace hbmenu on exit": "離開時取代 hbmenu",
"hbmenu_replace_info": [
"啟用後,會將 /hbmenu.nro 替換為 Sphaira並將 hbmenu 備份至 /switch/hbmenu.nro\n",
"停用此選項將可選擇還原 hbmenu。"
],
"Add / modify mounts": "新增 / 修改掛載點",
"mount_options_info": [
"建立、修改、刪除網路掛載 (HTTP, FTP, SFTP, SMB, NFS)。",
"掛載選項僅需設定網址和名稱,其他欄位 (如連接埠、使用者、密碼等) 為選填。\n",
"任何變更都需要重新啟動 Sphaira 才能生效。"
],
"Boost CPU during transfer": "傳輸時加速 CPU",
"transfer_boost_info": [
"在傳輸期間啟用加速模式,可提高傳輸速度。",
"這會將 CPU 設定為 1785mhz 並將 GPU 降低至 76mhz。"
],
"Text scroll speed": "文字捲動速度",
"Change how fast the scrolling text updates": "更改捲動文字的更新速度",
"Set center menu": "設定中央選單",
"Press OK to restart Sphaira": "按 OK 重新啟動 Sphaira",
"Set the menu that appears on the center tab.": "設定顯示在中央分頁的選單。",
"Set left-side menu": "設定左側選單",
"Set the menu that appears on the left tab.": "設定顯示在左側分頁的選單。",
"Set right-side menu": "設定右側選單",
"Set the menu that appears on the right tab.": "設定顯示在右側分頁的選單。",
"Install options": "安裝選項",
"install_options_info": [
"更改安裝選項。",
"您可以從此處啟用安裝功能。"
],
"Export options": "匯出選項",
"Change the export options.": "更改匯出選項。",
"Install Options": "安裝選項",
"System memory": "系統記憶體",
"microSD card": "microSD 卡",
"Enable sysmmc": "啟用真實系統 (SysMMC)",
"Enables installing whilst in sysMMC mode.": "啟用在真實系統模式下進行安裝。",
"Enable emummc": "啟用虛擬系統 (EmuMMC)",
"Enables installing whilst in emuMMC mode.": "啟用在虛擬系統模式下進行安裝。",
"Install location": "安裝位置",
"Allow downgrade": "允許降級",
"Allows for installing title updates that are lower than the currently installed update.": "允許安裝比目前已安裝版本更舊的更新檔。",
"Skip if already installed": "若已安裝則跳過",
"Skips installing titles / ncas if they're already installed.": "若已安裝該 Title / NCA則跳過安裝。",
"Ticket only": "僅安裝 Ticket",
"Installs tickets only, useful if the title was already installed however the tickets were missing or corrupted.": "僅安裝 Ticket適用於遊戲已安裝但 Ticket 遺失或損毀的情況。",
"Skip base": "跳過本體",
"Skips installing the base application.": "跳過安裝應用程式本體。",
"Skip patch": "跳過更新檔 (UPD)",
"Skips installing updates.": "跳過安裝更新檔。",
"Skip dlc": "跳過追加內容 (DLC)",
"Skips installing DLC.": "跳過安裝 DLC。",
"Skip data patch": "跳過資料更新",
"Skips installing DLC update (data patch).": "跳過安裝 DLC 更新 (資料更新)。",
"Skip ticket": "跳過 Ticket",
"Skips installing tickets, not recommended.": "跳過安裝 Ticket不建議使用。",
"Skip NCA hash verify": "跳過 NCA 雜湊驗證",
"skip_nca_info": [
"啟用此選項以跳過 sha256 驗證。這是針對整個 NCA 的雜湊檢查。",
"用於驗證 NCA 是否有效且未損毀。",
"您可能在安裝損毀的遊戲時看過「正在檢查損毀資料」的選項。",
"該檢查執行各種雜湊檢查,包括針對 NCA 的雜湊。\n",
"建議保持停用此選項。"
],
"Skip RSA header verify": "跳過 RSA 標頭驗證",
"nca_verify_info": [
"啟用此選項以跳過 RSA NCA 固定金鑰驗證。",
"這是針對 NCA 標頭的雜湊檢查,用於驗證標頭是否被修改。",
"標頭由任天堂簽署,因此無法偽造,能可靠地檢測修改過的 NCA 標頭 (如 NSP/XCI 轉換檔)。\n",
"建議保持停用此選項,除非您需要安裝 NSP/XCI 轉換檔。"
],
"Skip RSA NPDM verify": "跳過 RSA NPDM 驗證",
"npdm_verify_info": [
"啟用此選項以跳過 RSA NPDM 固定金鑰驗證。\n",
"目前此選項尚未實作 (Stubbed)。"
],
"Ignore distribution bit": "忽略分發位元",
"nca_distbit_info": [
"若設定,將忽略 NCA 標頭中的分發位元 (Distribution bit)。",
"分發位元用於標示 NCA 是 Eshop 版還是卡匣 (GameCard) 版。",
"您通常無法啟動安裝後且分發位元設為卡匣版的遊戲。\n",
"建議保持停用此選項。"
],
"Convert to common ticket": "轉換為通用 Ticket",
"ticket_convert_info": [
"[需要金鑰] 將個人化 Ticket 轉換為通用 (偽造) Ticket。\n",
"建議保持啟用此選項。"
],
"Convert to standard crypto": "轉換為標準加密",
"titlekey_crypto_info": [
"[需要金鑰] 將 TitleKey 轉換為標準加密,也稱為「無 Ticket (Ticketless)」。\n",
"建議保持停用此選項。"
],
"Lower master key": "降低主金鑰 (Master Key)",
"keyarea_crypto_info": [
"[需要金鑰] 使用主金鑰 0 加密 Keak (金鑰區域金鑰),允許遊戲在所有韌體版本上啟動。",
"隱含執行標準加密。\n",
"請注意,僅因遊戲可解密而在任何韌體上啟動,並不代表它能正常運作。強烈建議更新您的韌體和 Atmosphere 版本來遊玩遊戲,而不是啟用此選項。\n",
"建議保持停用此選項。"
],
"Lower system version": "降低系統版本要求",
"cnmt_fw_info": [
"將 CNMT 擴充標頭中的 system_firmware 欄位設定為 0。",
"注意:如果主金鑰高於韌體版本,遊戲仍無法啟動,因為韌體沒有解密 Keak 的金鑰 (見上文)。\n",
"建議保持停用此選項。"
],
"Export Options": "匯出選項",
"Created nested folder": "已建立巢狀資料夾",
"game_folder_info": [
"使用遊戲名稱建立資料夾。",
"例如:/名稱/名稱.xci",
"停用此選項將使用 /名稱.xci"
],
"Append folder with .xci": "資料夾名稱加上 .xci",
"xci_folder_info": [
"XCI 提取時會在資料夾名稱加上 .xci 副檔名。",
"例如:/名稱.xci/名稱.xci\n",
"某些裝置僅在 XCI 資料夾名稱與 XCI 檔案名稱完全相同時才能運作。"
],
"Trim XCI": "裁剪 XCI (瘦身)",
"Removes the unused data at the end of the XCI, making the output smaller.": "移除 XCI 尾端未使用的資料,讓輸出的檔案更小。",
"Label trimmed XCI": "標記已裁剪的 XCI",
"Names the trimmed xci.\nFor example, /name/name (trimmed).xci": "命名已裁剪的 XCI。\n例如/名稱/名稱 (trimmed).xci",
"Converts personalised ticket to a fake common ticket.": "將個人化 Ticket 轉換為偽造的通用 Ticket。",
"NSZ level": "NSZ 壓縮等級",
"compress_level_info": [
"設定匯出為 NSZ 時使用的壓縮等級。\n",
"注意Switch CPU 速度不快,設定太高的值會導致",
"匯出時間非常長,但檔案大小縮減有限。\n",
"建議將此值設定為 3。"
],
"NSZ threads": "NSZ 執行緒",
"compress_threads_info": [
"設定壓縮 NCA 時使用的執行緒數量。\n",
"小於 3 的值允許另一個執行緒自由運作,例如讀/寫執行緒。",
"但在測試中,值為 3 通常效能最佳。",
"值為 0 將不使用執行緒,僅應於測試時使用,因為速度總是較慢。\n",
"建議將此值設定在 1-3 之間。"
],
"NSZ long distance mode": "NSZ 長距離模式",
"Enables \"Long Distance Mode\" which can reduce the output size at the cost of speed.": "啟用「長距離模式」,可縮小輸出檔案大小,但會降低速度。",
"NSZ block compression": "NSZ 區塊壓縮",
"block_compress_info": [
"啟用區塊壓縮,將 NCA 壓縮成區塊 (代價是壓縮率較差)",
"這允許隨機存取,讓 NCZ 可以像檔案系統一樣被掛載。\n",
"注意Sphaira 尚不支援將 NCZ 掛載為檔案系統,但最終將會加入此功能。"
],
"NSZ block size": "NSZ 區塊大小",
"Sets the size of each block. The smaller the size, the faster the random access is at the cost of compression ratio.": "設定每個區塊的大小。區塊越小,隨機存取速度越快,但壓縮率較低。",
"NSZ block compression is disabled.": "NSZ 區塊壓縮已停用。",
"FTP Options": "FTP 選項",
"Restarting FTP server...": "正在重新啟動 FTP 伺服器...",
"Enable": "啟用",
"Enable FTP server to run in the background.": "啟用 FTP 伺服器在背景執行。",
"Port": "連接埠",
"Opens the FTP server on this port.": "在此連接埠開啟 FTP 伺服器。",
"Anon": "匿名",
"login_require_info": [
"允許您在未設定使用者名稱和密碼的情況下登入。",
"如果停用,您必須在下方設定使用者名稱和密碼!"
],
"User": "使用者",
"Sets the username, must be set if anon is disabled.": "設定使用者名稱,若停用匿名則必須設定。",
"Pass": "密碼",
"Sets the password, must be set if anon is disabled.": "設定密碼,若停用匿名則必須設定。",
"Show album": "顯示相簿",
"Shows the microSD card album folder.": "顯示 microSD 卡的相簿資料夾。",
"Show Atmosphere contents": "顯示 Atmosphere contents",
"Shows the shortcut for the /atmosphere/contents folder.": "顯示 /atmosphere/contents 資料夾的捷徑。",
"Show bis storage": "顯示 BIS 儲存區",
"bis_contents_info": [
"顯示 BIS 資料夾,包含以下內容:",
"- BootPartition1Root.bin",
"- BootPartition2Root.bin",
"- UserDataRoot.bin",
"- BootConfigAndPackage2Part1.bin",
"- BootConfigAndPackage2Part2.bin",
"- BootConfigAndPackage2Part3.bin",
"- BootConfigAndPackage2Part4.bin",
"- BootConfigAndPackage2Part5.bin",
"- BootConfigAndPackage2Part6.bin",
"- CalibrationFile.bin",
"- SafeMode.bin",
"- User.bin",
"- System.bin",
"- SystemProperEncryption.bin"
],
"Show bis file systems": "顯示 BIS 檔案系統",
"bis_fs_info": [
"顯示以下 BIS 檔案系統:",
"- bis_calibration_file",
"- bis_safe_mode",
"- bis_user",
"- bis_system"
],
"Show system contents": "顯示系統 contents",
"Shows the system contents folder.": "顯示系統 contents 資料夾。",
"Show user contents": "顯示使用者 contents",
"Shows the user contents folder.": "顯示使用者 contents 資料夾。",
"Show microSD contents": "顯示 microSD contents",
"microsd_contents_info": [
"顯示 microSD contents 資料夾。\n",
"注意:這不是一般的 microSD 卡儲存空間,而是",
"儲存 NCA 的位置。一般的 microSD 卡總是會被掛載。"
],
"Show games": "顯示遊戲",
"games_ftp_info": [
"顯示遊戲資料夾。\n",
"此資料夾包含所有您已安裝的遊戲,允許您透過 FTP 建立備份!\n",
"注意:此資料夾為唯讀。您無法透過 FTP 刪除遊戲。"
],
"Show install": "顯示安裝目錄",
"install_ftp_info": [
"顯示安裝資料夾。\n",
"此資料夾用於透過 FTP 安裝遊戲。\n",
"注意嘗試安裝遊戲時您必須開啟「FTP 安裝」選單!"
],
"Show mounts": "顯示掛載點",
"mounts_ftp_info": [
"顯示掛載資料夾。\n",
"此資料夾包含所有新增至 Sphaira 的掛載點,允許您透過 FTP 存取它們!",
"例如,您可以透過 FTP 存取您的 SMB、WebDav 或其他 FTP 掛載。"
],
"Show switch": "顯示 Switch 目錄",
"homebrew_folder_info": [
"顯示 /switch 資料夾的捷徑。",
"這是包含您所有自製軟體 (NRO) 的資料夾。"
],
"MTP Options": "MTP 選項",
"Restarting MTP server...": "正在重新啟動 MTP 伺服器...",
"Enable MTP server to run in the background.": "啟用 MTP 伺服器在背景執行。",
"Pre-allocate file": "預先配置檔案",
"prealloc_info": [
"啟用在寫入前預先配置檔案大小。",
"這能加快檔案寫入速度,但如果符合以下所有條件,可能會導致逾時:",
"- 使用 Windows",
"- 使用虛擬系統 (emuMMC)",
"- 傳輸大型檔案 (>1GB)\n",
"此選項應保持啟用,但如果您符合上述條件並遇到逾時,",
"請嘗試停用此選項後重試。"
],
"games_mtp_info": [
"顯示遊戲資料夾。\n",
"此資料夾包含所有您已安裝的遊戲,允許您透過 MTP 建立備份!\n",
"注意:此資料夾為唯讀。您無法透過 MTP 刪除遊戲。"
],
"install_mtp_info": [
"顯示安裝資料夾。\n",
"此資料夾用於透過 MTP 安裝遊戲。\n",
"注意嘗試安裝遊戲時您必須開啟「MTP 安裝」選單!"
],
"mounts_mtp_info": [
"顯示掛載資料夾。\n",
"此資料夾包含所有新增至 Sphaira 的掛載點,允許您透過 MTP 存取它們!",
"例如,您可以透過 MTP 存取您的 SMB、WebDav 和 FTP 掛載。"
],
"Show DevNull": "顯示 DevNull",
"usb_benchmark_info": [
"顯示 DevNull (速度測試) 資料夾。\n",
"此資料夾用於測試 USB 上傳效能。",
"這是一個虛擬資料夾,實際上不會寫入任何資料到磁碟。"
],
"HDD Options": "硬碟選項",
"mount_hdd_info": [
"啟用掛載已連接的 USB/HDD 硬碟裝置。",
"連接的裝置可用於檔案瀏覽器,也可作為提取遊戲和存檔時的備份位置。"
],
"HDD write protect": "硬碟寫入保護",
"Makes the connected HDD read-only.": "將連接的硬碟設為唯讀。",
"Installing is disabled, enable now?": "安裝功能已停用,要現在啟用嗎?",
"WARNING: Installing apps will lead to a ban!": "警告:安裝未授權的應用程式會導致主機被 Ban",
"Installing enabled!": "安裝功能已啟用!",
"microSD card (/dumps/)": "microSD 卡 (/dumps/)",
"USB export to PC (usb_export.py)": "USB 匯出至電腦 (usb_export.py)",
"USB transfer (Switch 2 Switch)": "USB 傳輸 (Switch 對 Switch)",
"/dev/null (Speed Test)": "/dev/null (速度測試)",
"Waiting for USB connection...": "等待 USB 連線中...",
"USB connected, sending file list": "USB 已連線,正在傳送檔案列表",
"Sent file list, waiting for command...": "已傳送檔案列表,等待指令中...",
"waiting for usb connection...": "等待 USB 連線中...",
"Exporting": "正在匯出",
"Export failed!": "匯出失敗!",
"Export successfull!": "匯出成功!",
"Select export location": "選擇匯出位置",
"Please launch MTP install menu before trying to install": "嘗試安裝前請先開啟 MTP 安裝選單",
"Album": "相簿",
"Install (NSP, XCI, NSZ, XCZ)": "安裝 (NSP、XCI、NSZ、XCZ)",
" (Read Only)": " (唯讀)",
"Unknown": "未知",
"Application": "應用程式",
"Creating Program": "正在建立程式",
"Creating Control": "正在建立控制項",
"Creating Meta": "正在建立 Meta",
"Writing Nca": "正在寫入 Nca",
"Updating ncm database": "正在更新 ncm 資料庫",
"Pushing application record": "正在推送應用程式記錄",
"Failed to remove old forwarder, please manually remove it!": "移除舊的前導程式失敗,請手動移除!",
"An error occurred": "發生錯誤",
"If this message appears repeatedly, please open an issue.": "如果此訊息重複出現,請回報問題 (Issue)。",
"Failed to load music": "無法載入音樂",
"Artist: Unknown": "演出者:未知",
"Album: Unknown": "專輯:未知",
"Select": "選擇",
"Are you sure you wish to cancel?": "您確定要取消嗎?",
"No": "否",
"Yes": "是",
"%zu hours %zu minutes remaining": "剩餘 %zu 時 %zu 分",
"%zu minutes %zu seconds remaining": "剩餘 %zu 分 %zu 秒",
"%zu seconds remaining": "剩餘 %zu 秒",
"Closing empty sidebar": "關閉空的側邊欄",
"All": "全部",
"Emulators": "模擬器",
"Tools": "工具",
"Advanced": "進階",
"Themes": "佈景主題",
"Legacy": "舊版相容",
"Misc": "雜項",
"Updated": "更新時間",
"Downloads": "下載次數",
"Size": "大小",
"Alphabetical": "按字母順序",
"Desc": "遞減",
"Asc": "遞增",
"Removing ": "正在移除 ",
"Downloading ": "正在下載 ",
"Checking MD5": "正在檢查 MD5",
"Options": "選項",
"More by Author": "作者的其他作品",
"Leave Feedback": "留下回饋",
"Visit Website": "造訪網站",
"version: %s": "版本:%s",
"updated: %s": "更新日期:%s",
"category: %s": "分類:%s",
"extracted: %s": "已解壓:%s",
"app_dls: %s": "下載次數:%s",
"Loading...": "載入中...",
"Failed to download manifest": "無法下載資訊清單",
"Details": "詳細資料",
"Changelog": "更新日誌",
"Downloaded ": "已下載 ",
"Uninstalling ": "正在解除安裝 ",
"Removed ": "已移除 ",
"Install": "安裝",
"Update": "更新",
"Launch": "啟動",
"Remove": "移除",
"Completely remove ": "完全移除 ",
"AppStore": "程式商店",
"Info": "資訊",
"AppStore Options": "程式商店選項",
"Descending": "遞減",
"Ascending": "遞增",
"List": "列表",
"Icon": "圖示",
"Grid": "格狀",
"Filter": "篩選",
"Sort": "排序",
"Order": "順序",
"Layout": "版面配置",
"Search": "搜尋",
"Empty!": "空的!",
"Filter: %s | Sort: %s | Order: %s": "篩選:%s | 排序:%s | 順序:%s",
"File Picker": "檔案選擇器",
"Failed to parse nro": "解析 NRO 失敗",
"Name": "名稱",
"Set the name of the application": "設定應用程式名稱",
"Author": "作者",
"Set the author of the application": "設定應用程式作者",
"Version": "版本",
"Set the display version of the application": "設定應用程式的顯示版本",
"Set the path to the icon for the forwarder": "設定前導程式的圖示路徑",
"Create": "建立",
"Failed to load icon": "載入圖示失敗",
"Create the forwarder.": "建立前導程式。",
"All fields must be non-empty!": "所有欄位都不能留空!",
"Open": "開啟",
"Empty...": "空的...",
"%zd files": "%zd 個檔案",
"%zd dirs": "%zd 個目錄",
"Open with DayBreak?": "用 DayBreak 開啟?",
"Launch ": "啟動 ",
"Launch option for: ": "啟動選項:",
"Select launcher for: ": "選擇啟動器:",
"Install Selected files?": "安裝選取的檔案?",
"Installing ": "正在安裝 ",
"Installed ": "已安裝 ",
"File install failed!": "檔案安裝失敗!",
"Extracting ": "正在解壓縮 ",
"Extract failed!": "解壓縮失敗!",
"Extract success!": "解壓縮成功!",
"Compressing ": "正在壓縮 ",
"Compress failed!": "壓縮失敗!",
"Compress success!": "壓縮成功!",
"Failed to delete directory": "無法刪除資料夾",
"Failed to delete file": "無法刪除檔案",
"Deleting": "正在刪除",
"Scanning ": "正在掃描 ",
"Pasting": "正在貼上",
"Pasting ": "正在貼上 ",
"Creating ": "正在建立 ",
"Copying ": "正在複製 ",
"Deleting ": "正在刪除 ",
"Hashing": "正在計算雜湊",
"Failed to hash file...": "計算檔案雜湊失敗...",
"File Options": "檔案選項",
"Mount": "掛載",
"Sort By": "排序依據",
"Sort Options": "排序選項",
"Show Hidden": "顯示隱藏檔",
"Folders First": "資料夾優先",
"Hidden Last": "隱藏檔置後",
"Cut": "剪下",
"Copy": "複製",
"Paste": "貼上",
"Paste file(s)?": "貼上檔案?",
"Rename": "重新命名",
"Set new name": "設定新名稱",
"Failed to rename file: ": "重新命名檔案失敗:",
"Delete": "刪除",
"Delete Selected files?": "刪除選取的檔案?",
"Install Forwarder": "安裝前導程式",
"Extract zip": "解壓縮 zip",
"Extract Options": "解壓縮選項",
"Extract here": "解壓縮至此",
"Extract to root": "解壓縮至根目錄",
"Are you sure you want to extract to root?": "確定要解壓縮至根目錄嗎?",
"Extract to...": "解壓縮至...",
"Enter the path to the folder to extract into": "輸入要解壓縮到的資料夾路徑",
"Compress to zip": "壓縮為 zip",
"Compress Options": "壓縮選項",
"Compress": "壓縮",
"Compress to...": "壓縮至...",
"Enter the path to the folder to compress into": "輸入要壓縮到的資料夾路徑",
"Create File": "建立檔案",
"Set File Name": "設定檔案名稱",
"Create Folder": "建立資料夾",
"Set Folder Name": "設定資料夾名稱",
"View as text (unfinished)": "以文字檢視 (未完成)",
"Set as background music": "設為背景音樂",
"Failed to set default music path": "設定預設音樂路徑失敗",
"Hash": "雜湊",
"Hash Options": "雜湊選項",
"Ignore read only": "忽略唯讀屬性",
"Failed to mount FS.": "掛載檔案系統失敗。",
"Close FileBrowser?": "關閉檔案瀏覽器?",
"Split": "分割",
"Close": "關閉",
"FTP Install": "FTP 安裝",
"Connection Type: WiFi | Strength: ": "連線類型WiFi | 強度:",
"Connection Type: Ethernet": "連線類型:乙太網路",
"Connection Type: None": "連線類型:無",
"Host:": "主機:",
"Port:": "連接埠:",
"Username:": "使用者名稱:",
"Password:": "密碼:",
"SSID:": "SSID",
"Passphrase:": "密碼:",
"Success": "成功",
"Failed to launch application": "啟動應用程式失敗",
"Game Options": "遊戲選項",
"Hide forwarders": "隱藏前導程式",
"View application content": "檢視應用程式內容",
"Launch random game": "隨機啟動遊戲",
"Export NSP": "匯出 NSP",
"Not supported in Applet Mode": "不支援小程式模式",
"Export NSZ": "匯出 NSZ",
"Exports to NSZ (compressed NSP)": "匯出為 NSZ (壓縮的 NSP)",
"Are you sure you want to delete ": "確定要刪除 ",
"Advanced options": "進階選項",
"Refresh": "重新整理",
"Create contents folder": "建立 contents 資料夾",
"Folder create failed!": "建立資料夾失敗!",
"Folder created!": "資料夾已建立!",
"Create save": "建立存檔",
"Select user to create save for": "選擇要建立存檔的使用者",
"Delete title cache": "刪除 Title 快取",
"Are you sure you want to delete the title cache?": "您確定要刪除 Title 快取嗎?",
"Updating application record list": "正在更新應用程式記錄列表",
"Delete failed!": "刪除失敗!",
"Delete successfull!": "刪除成功!",
"Select content to export": "選擇要匯出的內容",
"Export All": "匯出全部",
"Export Application": "匯出應用程式",
"Export Patch": "匯出更新檔 (Patch)",
"Export AddOnContent": "匯出追加內容 (DLC)",
"Export DataPatch": "匯出資料更新 (DataPatch)",
"Creating": "正在建立",
"Save create failed!": "建立存檔失敗!",
"Save create successfull!": "建立存檔成功!",
"Failed to delete meta entry": "刪除 Meta 項目失敗",
"None": "無",
"Common": "通用",
"Personalised": "個人化",
"Missing": "遺失",
"View Content": "檢視內容",
"Content Options": "內容選項",
"Are you sure you want to delete the selected entries?": "您確定要刪除選取的項目嗎?",
"Reset required system version": "重設系統版本要求",
"Are you sure you want to reset required system version?": "您確定要重設系統版本要求嗎?",
"Reset": "重設",
"Failed to reset required system version": "重設系統版本要求失敗",
"Required System Version: %u.%u.%u": "系統版本要求:%u.%u.%u",
"Required Application Version: v%u": "應用程式版本要求v%u",
"Content Count: %u (%u missing)": "內容數量:%u (遺失 %u)",
"Content Count: %u": "內容數量:%u",
"Ticket: %s": "Ticket%s",
"Key Generation: %u (%s)": "金鑰世代:%u (%s)",
"Display Version: %s": "顯示版本:%s",
"Mount Fs": "掛載檔案系統",
"Failed to mount NCA": "掛載 NCA 失敗",
"NCA Options": "NCA 選項",
"Export NCA": "匯出 NCA",
"Export NCA decrypted": "匯出已解密 NCA",
"Exports the NCA with all fs sections decrypted (NCA header is still encrypted).": "匯出所有檔案系統區段皆已解密的 NCA (NCA 標頭仍為加密狀態)。",
"Verify NCA 256 hash": "驗證 NCA 256 雜湊",
"NCA hash missmatch!": "NCA 雜湊不符!",
"NCA hash valid.": "NCA 雜湊有效。",
"nca_validate_info": [
"對 NCA 執行 sha256 雜湊運算以檢查其是否有效。\n",
"注意:這只能檢測雜湊是否不符,無法驗證",
"內容是否經過修改。"
],
"Verify NCA fixed key": "驗證 NCA 固定金鑰",
"NCA fixed key is invalid!": "NCA 固定金鑰無效!",
"NCA fixed key is valid.": "NCA 固定金鑰有效。",
"nca_fixedkey_info": [
"執行 RSA NCA 固定金鑰驗證。",
"這是針對 NCA 標頭的雜湊檢查,用於驗證標頭是否被修改。",
"標頭由任天堂簽署,因此無法偽造,能可靠地檢測修改過的 NCA 標頭 (如 NSP/XCI 轉換檔)。"
],
"Failed to decrypt NCA": "解密 NCA 失敗",
"Application Type: %s": "應用程式類型:%s",
"Content Type: %s": "內容類型:%s",
"Distribution Type: %s": "分發類型:%s",
"Program ID: %016lX": "程式 ID%016lX",
"SDK Version: %u.%u.%u.%u": "SDK 版本:%u.%u.%u.%u",
"Export XCI (Gamecard)": "匯出 XCI (遊戲卡匣)",
"Export XCZ (Compressed XCI)": "匯出 XCZ (壓縮的 XCI)",
"GameCard": "遊戲卡匣",
"Gc install failed!": "卡匣安裝失敗!",
"Gc install success!": "卡匣安裝成功!",
"Select content to dump": "選擇要提取的內容",
"Export All Bins": "匯出所有 Bin",
"Export XCI": "匯出 XCI",
"Export Card ID Set": "匯出卡匣 ID Set",
"Export Card UID": "匯出卡匣 UID",
"Export Certificate": "匯出憑證",
"Export Initial Data": "匯出初始資料",
"Failed to mount GameCard filesystem": "掛載遊戲卡匣檔案系統失敗",
"System memory %.1f GB": "系統記憶體 %.1f GB",
"microSD card %.1f GB": "microSD 卡 %.1f GB",
"App-ID: 0%lX": "App-ID0%lX",
"Key-Gen: %u (%s)": "金鑰世代:%u (%s)",
"Size: %.2f GB": "大小:%.2f GB",
"Base: %zu Patch: %zu Addon: %zu Data: %zu": "本體:%zu 更新:%zu DLC%zu 資料:%zu",
"Prev": "上一個",
"Next": "下一個",
"No GameCard inserted": "未插入遊戲卡匣",
"WARNING: GameCard is already trimmed!": "警告:遊戲卡匣已經過裁剪!",
"Continue": "繼續",
"GameCard is trimmed, full dump is not possible!": "遊戲卡匣已經過裁剪,無法完整提取!",
"Downloading json": "正在下載 json",
"Download": "下載",
"Failed to download json": "下載 json 失敗",
"Select release to download for ": "選擇要下載的版本:",
"Select asset to download for ": "選擇要下載的資源檔:",
"Failed to download app!": "下載應用程式失敗!",
"Unstar": "取消星號",
"Unstarred ": "已取消星號 ",
"Star": "加上星號",
"Starred ": "已加星號 ",
"Homebrew Options": "自製軟體選項",
"Updated (Star)": "更新時間 (星號)",
"Alphabetical (Star)": "按字母順序 (星號)",
"Size (Star)": "大小 (星號)",
"Display entries in Ascending or Descending order.": "以遞增或遞減順序顯示項目。",
"Change the layout to List, Icon and Grid.": "將版面配置更改為列表、圖示和格狀。",
"Show hidden": "顯示隱藏檔",
"Shows all hidden homebrew.": "顯示所有隱藏的自製軟體。",
"Test": "測試",
"Hide": "隱藏",
"Hides the selected homebrew.\n\nTo unhide homebrew, enable \"Show hidden\" in the sort options.": "隱藏選取的自製軟體。\n\n若要取消隱藏請在排序選項中啟用「顯示隱藏檔」。",
"Mount NRO Fs": "掛載 NRO 檔案系統",
"Failed to mount NRO FileSystem": "掛載 NRO 檔案系統失敗",
"Mounts the NRO FileSystem (icon, nacp and RomFS).": "掛載 NRO 檔案系統 (圖示、NACP 和 RomFS)。",
"hb_remove_info": [
"永久刪除選取的自製軟體。\n",
"該自製軟體建立的檔案和資料夾仍會保留。",
"請使用檔案瀏覽器刪除它們。"
],
"Failed to load image": "載入圖片失敗",
"Install failed!": "安裝失敗!",
"Install success!": "安裝成功!",
"Drag'n'Drop (NSP, XCI, NSZ, XCZ) to the install folder": "拖放檔案 (NSP、XCI、NSZ、XCZ) 至 install 資料夾",
"Failed to install, press B to exit...": "安裝失敗,請按  離開...",
"Irs": "紅外成像",
"0 (Sideways)": "0 (橫向)",
"90 (Flat)": "90 (平放)",
"180 (-Sideways)": "180 (反向橫向)",
"270 (Upside down)": "270 (倒置)",
"Grey": "灰色",
"Ironbow": "彩虹熱圖 (Ironbow)",
"Green": "綠色",
"Red": "紅色",
"Blue": "藍色",
"All leds": "所有 LED",
"Bright group": "高亮度群組",
"Dim group": "低亮度群組",
"Normal image": "正常影像",
"Negative image": "負片影像",
"Controller": "控制器",
"Rotation": "旋轉",
"Colour": "色彩",
"Light Target": "照明目標",
"Gain": "增益",
"Negative Image": "負片影像",
"Format": "格式",
"Trimming Format": "裁剪格式",
"External Light Filter": "外部濾光片",
"Load Default": "載入預設值",
"Ambient Noise Level: ": "環境噪音等級:",
"Pad ": "控制器 ",
"HandHeld": "手提模式",
" (Available)": " (可用)",
" (Unsupported)": " (不支援)",
" (Unconnected)": " (未連線)",
"The homebrew menu.\n\nAllows you to launch, delete and mount homebrew!": "自製軟體選單。\n\n允許您啟動、刪除和掛載自製軟體",
"Download and update apps.\n\nInternet connection required.": "下載並更新應用程式。\n\n需要網際網路連線。",
"View all installed games. In this menu you can launch, backup, create savedata and much more.": "檢視所有已安裝的遊戲。您可以在此選單中啟動、備份、建立存檔等。",
"Browse files on you SD Card. You can move, copy, delete, extract zip, create zip, upload and much more.\n\nA connected USB/HDD can be opened by mounting it in the advanced options.": "瀏覽 SD 卡上的檔案。您可以移動、複製、刪除、解壓縮 zip、建立 zip、上傳等。\n\n連接的 USB/HDD 可透過進階選項中的掛載功能開啟。",
"View save data for each user. You can backup and restore saves.\n\nExperimental support for backing up system saves is possible.": "檢視每位使用者的存檔資料。您可以備份和還原存檔。\n\n支援實驗性的系統存檔備份功能。",
"Download releases directly from GitHub. Custom entries can be added to /config/sphaira/github": "直接從 GitHub 下載發行版本。可將自訂項目新增至 /config/sphaira/github",
"Install apps via FTP.": "透過 FTP 安裝應用程式。",
"MTP Install": "MTP 安裝",
"Install apps via MTP.": "透過 MTP 安裝應用程式。",
"USB Install": "USB 安裝",
"Install apps via USB.\n\nA USB client is required on PC.": "透過 USB 安裝應用程式。\n\n電腦端需要 USB 用戶端軟體。",
"View info on the inserted Game Card (GC). You can backup and install the inserted GC. To swap GC's, simply remove the old GC and insert the new one. You do not need to exit the menu.": "檢視已插入遊戲卡匣的資訊。您可以備份和安裝已插入的卡匣。如要更換卡匣,只需取出舊卡匣並插入新卡匣即可,無需離開選單。",
"IRS (Infrared Joycon Camera)": "IRS (紅外線 Joy-Con 攝影機)",
"InfraRed Sensor (IRS) is the small camera found on right JoyCon.": "紅外線感應器 (IRS) 是位於右側 Joy-Con 上的小型攝影機。",
"Update avaliable: ": "有可用更新:",
"Download via the Network options!": "請透過網路選項下載!",
"Menu": "選單",
"Menu Options": "選單選項",
"Auto": "自動",
"English": "English",
"Japanese": "日本語",
"French": "Français",
"German": "Deutsch",
"Italian": "Italiano",
"Spanish": "Español",
"Chinese (Simplified)": "简体中文",
"Korean": "한국어",
"Dutch": "Dutch",
"Portuguese": "Português",
"Russian": "Русский",
"Chinese (Traditional)": "繁體中文",
"Swedish": "Svenska",
"Vietnamese": "Vietnamese",
"Ukrainian": "Українська",
"Launch one of Sphaira's menus:\n": "啟動 Sphaira 的其中一個選單:\n",
"\nYou can change the left/right menu in the Advanced Options.": " \n您可以在進階選項中更改左側/右側選單。",
"Network": "網路",
"Network Options": "網路選項",
"Download update: ": "下載更新:",
"Failed to download update": "下載更新失敗",
"Updated to ": "已更新至 ",
"ftp_settings_info": [
"啟用 / 修改 FTP 伺服器設定,例如連接埠、使用者/密碼和顯示的資料夾。\n",
"注意:更改任何選項,會在離開選項選單時自動重新啟動 FTP 伺服器。"
],
"mtp_settings_info": [
"啟用 / 修改 MTP 回應端設定,例如顯示的資料夾。\n",
"注意:更改任何選項,會在離開選項選單時自動重新啟動 MTP 伺服器。"
],
"HDD": "HDD 硬碟",
"Enable / modify the HDD mount options.": "啟用 / 修改硬碟掛載選項。",
"NXlink": "NXlink",
"nxlink_enable_info": [
"啟用 NXlink 伺服器在背景執行。",
"NXlink 用於將 .nro 從電腦傳送到 Switch。\n",
"如果您不是開發者,可以停用此選項。"
],
"nxlink_toggle_info": [
"切換 FTP、MTP、硬碟 和 NXlink\n",
"如果 Sphaira 有可用更新,您可以從此選單下載。"
],
"Theme": "佈景主題",
"Language": "語言",
"translation_info": [
"更換語言。\n",
"如果找不到您的語言,或缺少翻譯,請考慮在 github.com/ITotalJustice/sphaira 提交 PR (Pull Request)。",
""
],
"advanced_options_info": [
"更改進階選項。",
"請查看資訊框以更了解每個選項。"
],
"System %.1f GB": "系統 %.1f GB",
"microSD %.1f GB": "microSD %.1f GB",
"[Applet Mode]": "[小程式模式]",
"Ethernet": "乙太網路",
"No Internet": "無網際網路連線",
"State: %s | Speed: %s": "狀態:%s | 速度:%s",
"Failed to mount save filesystem": "掛載存檔檔案系統失敗",
"Save Options": "存檔選項",
"System": "系統",
"Account": "帳號",
"BCAT": "BCAT",
"Device": "裝置",
"Temporary": "暫存",
"Cache": "快取",
"System BCAT": "系統 BCAT",
"Data Type": "資料類型",
"Backup": "備份",
"Backup the selected save(s) to a location of your choice.": "將選取的存檔備份至您選擇的位置。",
"Backup to...": "備份至...",
"Backup the selected save(s) to a location of your choice, and set the name of the backup.": "將選取的存檔備份至您選擇的位置,並設定備份名稱。",
"save_backuprestore_info": [
"還原目前 Title 的存檔。",
"如果啟用「自動備份」,存檔將先被備份然後才還原。",
"自動備份的存檔名稱中將包含「Auto」。"
],
"Auto backup on restore": "還原時自動備份",
"If enabled, when restoring a save, the current save will first be backed up.": "啟用時,還原存檔前會先備份目前的存檔。",
"Compress backup": "壓縮備份",
"save_backup_compress_info": [
"如果啟用,備份將被壓縮為 zip 檔案。\n",
"注意:停用此選項不會停用 zip 檔案格式,只會停用壓縮",
"儲存在 zip 中的檔案。",
"停用壓縮將使備份速度更快,但檔案較大。"
],
"Select backup location": "選擇備份位置",
"Backup failed!": "備份失敗!",
"Backup successfull!": "備份成功!",
"Select restore location": "選擇還原位置",
"Invalid location type!": "無效的位置類型!",
"No saves found in ": "找不到存檔於 ",
"Restore save for: ": "還原存檔給:",
"Are you sure you want to restore ": "您確定要還原 ",
"Auto backup": "自動備份",
"Restore failed!": "還原失敗!",
"Restore successfull!": "還原成功!",
"Set name for ": "設定名稱給 ",
"Set backup name": "設定備份名稱",
"Flushing zip to file": "正在將 zip 寫入檔案",
"Disable MTP for usb install": "為 USB 安裝停用 MTP",
"Re-enabled MTP": "已重新啟用 MTP",
"Installed via usb": "已透過 USB 安裝",
"USB install failed!": "USB 安裝失敗!",
"Usb install success!": "USB 安裝成功!",
"Waiting for connection...": "等待連線中...",
"Connected, waiting for file list...": "已連線,等待檔案列表中...",
"Connected, starting transfer...": "已連線,開始傳輸...",
"Transferring data...": "資料傳輸中...",
"Press B to exit...": "請按  離開...",
"Failed to init usb, press B to exit...": "USB 初始化失敗,請按  離開...",
"Detached": "已斷開",
"Attached": "已連接",
"Powered": "已供電",
"Default": "預設",
"Address": "位址",
"Configured": "已設定",
"Suspended": "已暫停",
"USB 1.0 Low Speed": "USB 1.0 低速",
"USB 1.1 Full Speed": "USB 1.1 全速",
"USB 2.0 High Speed": "USB 2.0 高速",
"USB 3.0 Super Speed": "USB 3.0 超高速",
"Mount Creator": "掛載建立器",
"Type": "類型",
"Select the type of the forwarder.": "選擇前導程式的類型。",
"URL": "網址",
"Set the URL of the application": "設定應用程式的網址",
"Optional: Set the port of the server. If left empty, the default port for the protocol will be used.": "選填:設定伺服器的連接埠。若留空,將使用通訊協定的預設連接埠。",
"Timeout": "逾時",
"Timeout in milliseconds": "逾時 (毫秒)",
"Optional: Set the timeout in seconds.": "選填:設定逾時秒數。",
"Optional: Set the username of the application": "選填:設定應用程式的使用者名稱",
"Optional: Set the password of the application": "選填:設定應用程式的密碼",
"Dump path": "提取路徑",
"Optional: Set the dump path used when exporting games and saves.": "選填:設定匯出遊戲和存檔時使用的提取路徑。",
"Read only": "唯讀",
"mount_readonly_info": [
"將檔案系統掛載為唯讀。\n",
"設定此選項也會隱藏該掛載點,使其不顯示為匯出選項。"
],
"No stat file": "不檢查檔案狀態",
"filecheck_disable_info": [
"啟用此選項可停止檔案瀏覽器檢查每個檔案的大小和時間戳記。",
"這能改善瀏覽效能。"
],
"No stat dir": "不檢查目錄狀態",
"dircheck_disable_info": [
"啟用此選項可停止檔案瀏覽器檢查資料夾中的檔案和資料夾數量。",
"這能改善瀏覽效能,特別是對於目錄列表速度較慢的伺服器。"
],
"FS hidden": "隱藏檔案系統",
"Hide the mount from being visible in the file browser.": "隱藏掛載點,使其不顯示於檔案瀏覽器中。",
"Export hidden": "隱藏匯出",
"Hide the mount from being visible as a export option for games and saves.": "隱藏掛載點,使其不顯示於遊戲和存檔的匯出選項中。",
"Save": "儲存",
"Mount entry saved. Restart Sphaira to apply changes.": "掛載項目已儲存。請重新啟動 Sphaira 以套用變更。",
"Saves the mount entry.\n\nNOTE: You must restart Sphaira for changes to take effect!": "儲存掛載項目。\n\n注意您必須重新啟動 Sphaira 才能使變更生效!",
"Name and URL must be set!": "名稱和網址必須設定!",
"Devoptab Options": "Devoptab 選項",
"Create New Entry": "建立新項目",
"Creates a new mount option.\n\nNOTE: You must restart Sphaira for changes to take effect!": "建立新的掛載選項。\n\n注意您必須重新啟動 Sphaira 才能使變更生效!",
"Modify Existing Entry": "修改現有項目",
"No mount entries found.": "找不到掛載項目。",
"Modify Entry": "修改項目",
"Modify an existing mount option.\n\nNOTE: You must restart Sphaira for changes to take effect!": "修改現有的掛載選項。\n\n注意您必須重新啟動 Sphaira 才能使變更生效!",
"Delete Existing Entry": "刪除現有項目",
"Delete Entry": "刪除項目",
"Delete an existing mount option.\n\nNOTE: You must restart Sphaira for changes to take effect!": "刪除現有的掛載選項。\n\n注意您必須重新啟動 Sphaira 才能使變更生效!",
"Section #": "區段 #"
}

View File

@@ -1,494 +0,0 @@
{
"[Applet Mode]": "[小程序模式]",
"No Internet": "网络未连接",
"Switch-Handheld!": "切换至掌机模式!",
"Switch-Docked!": "切换至底座模式!",
"Warning! Logs are enabled, Sphaira will run slowly!": "警告日志已启用将导致Sphaira运行缓慢",
"Audio disabled due to suspended game": "由于游戏暂停,音频已禁用",
"Are you sure you wish to cancel?": "您确定要取消吗?",
"An error occurred": "发生错误",
"If this message appears repeatedly, please open an issue.": "若此消息反复出现,请提交问题报告。",
"Menu Options": "菜单选项",
"Menu": "菜单",
"Theme": "主题",
"Theme Options": "主题选项",
"Select Theme": "选择主题",
"Music": "音乐",
"12 Hour Time": "12小时制时间",
"Download Default Music": "下载默认音乐",
"Failed to download default_music.bfstm, please try again": "下载default_music.bfstm失败请重试",
"Overwrite current default music?": "覆盖当前默认音乐?",
"Network": "网络",
"Network Options": "网络选项",
"Ftp": "FTP",
"Mtp": "MTP",
"MTP Install": "MTP安装",
"Nxlink": "Nxlink上传",
"Nxlink Connected": "Nxlink已连接",
"Nxlink Upload": "Nxlink上传中",
"Nxlink Finished": "Nxlink已结束",
"Hdd": "HDD",
"Hdd write protect": "HDD写保护",
"Language": "语言",
"Auto": "自动",
"English": "English",
"Japanese": "日本語",
"French": "Français",
"German": "Deutsch",
"Italian": "Italiano",
"Spanish": "Español",
"Chinese": "中文",
"Korean": "한국어",
"Dutch": "Dutch",
"Portuguese": "Português",
"Russian": "Русский",
"Swedish": "Svenska",
"Vietnamese": "Vietnamese",
"Ukrainian": "Українська",
"Misc": "拓展",
"Misc Options": "拓展选项",
"Games": "游戏",
"Game Options": "游戏选项",
"Hide forwarders": "隐藏前端启动",
"Launch random game": "启动随机游戏",
"List meta records": "列出元数据记录",
"Entries": "条目",
"Failed to list application meta entries": "未能列出应用程序元条目",
"No meta entries found...\n": "未找到元条目...\n",
"Updating application record list": "更新应用程序记录列表",
"Dump": "转储",
"Select content to dump": "选择要转储的内容",
"Dump All": "转储全部内容",
"Dump Application": "转储应用程序(本体)",
"Dump Patch": "转储更新补丁(UPD)",
"Dump AddOnContent": "转储追加内容(DLC)",
"Dump DataPatch": "转储数据补丁",
"Dump All Bins": "转储全部文件",
"Dump XCI": "转储.xci",
"Dump Card ID Set": "转储游戏卡ID",
"Dump Card UID": "转储游戏卡UID",
"Dump Certificate": "转储游戏证书",
"Dump Initial Data": "转储初始数据",
"Select dump location": "选择转储位置",
"microSD card (/dumps/NSP/)": "microSD卡/dumps/NSP/",
"USB transfer (Switch 2 Switch)": "USB传输Switch对Switch",
"/dev/null (Speed Test)": "/dev/null速度测试",
"Dumping": "正在转储",
"Dump successfull!": "转储成功!",
"Dump failed!": "转储失败!",
"Success": "成功",
"Delete successfull!": "删除成功!",
"Delete failed!": "删除失败!",
"Title cache": "标题缓存",
"Saves": "存档",
"Save Options": "存档选项",
"Account": "账户",
"Backup": "备份",
"Auto backup": "自动备份",
"Auto backup on restore": "还原时自动备份",
"Compress backup": "压缩备份",
"Are you sure you want to backup save(s)?": "您确定要备份存档吗?",
"No saves found in ": "未找到存档 ",
"Backed up to ": "已备份到 ",
"Backup successfull!": "已备份成功!",
"Backup failed!": "备份失败!",
"Restore save for: ": "还原备份文件: ",
"Are you sure you want to restore ": "您确定要还原已备份文件吗 ",
"Restore successfull!": "已还原成功!",
"Restore failed!": "还原失败!",
"Data Type": "数据类型",
"System": "系统",
"BCAT": "BCAT数据",
"Device": "设备",
"Temporary": "临时",
"Cache": "缓存",
"System BCAT": "系统备份",
"Select backup location": "选择备份位置",
"Select restore location": "选择还原位置",
"Themezer": "在线主题",
"Themezer Options": "在线主题选项",
"Nsfw": "公共场合不宜的主题",
"Page": "页面",
"Page %zu / %zu": "页面 %zu / %zu",
"Enter Page Number": "输入跳转的页码",
"Bad Page": "错误的页面",
"Download theme?": "下载该主题?",
"GitHub": "GitHub",
"Downloading json": "正在下载 json",
"Select asset to download for ": "选择要下载的资源用于 ",
"Failed to download json": "下载json失败",
"Failed to download app!": "下载应用程序失败!",
"FTP Install": "通过 FTP 安装",
"Connection Type: WiFi | Strength: ": "连接类型WiFi |强度:",
"Connection Type: Ethernet": "连接类型:以太网",
"Connection Type: None": "连接类型:无",
"Host:": "主机:",
"Port:": "端口:",
"Username:": "用户名:",
"Password:": "密码:",
"SSID:": "网络名称:",
"Passphrase:": "密码:",
"Failed to install, press B to exit...": "通过 FTP 安装失败,按 B 键退出...",
"Install success!": "通过 FTP 安装成功。",
"Install failed!": "通过 FTP 安装失败。",
"USB Install": "通过 USB 安装",
"USB": "USB",
"Connected, waiting for file list...": "已连接,正在等待文件列表...",
"Connected, starting transfer...": "已连接,开始传输...",
"Failed to init usb, press B to exit...": "USB 初始化失败,按 B 键退出...",
"Waiting for connection...": "等待连接中...",
"Transferring data...": "正在传输数据...",
"USB connected, sending file list": "USB已连接正在发送文件列表",
"Sent file list, waiting for command...": "已发送文件列表,正在等待命令...",
"waiting for usb connection...": "等待USB连接...",
"Disable MTP for usb install": "暂时禁用 USB 安装的 MTP 功能",
"Re-enabled MTP": "重新启用 MTP",
"Installed via usb": "通过 USB 安装",
"Usb install success!": "USB安装成功",
"Usb install failed!": "USB安装失败",
"State: %s | Speed: %s": "状态: %s | 速度: %s",
"Detached": "已断开",
"Attached": "已连接",
"Powered": "已供电",
"Default": "默认",
"Address": "地址",
"Configured": "已配置",
"Suspended": "已挂起",
"USB 1.0 Low Speed": "USB 1.0 低速",
"USB 1.1 Full Speed": "USB 1.1 全速",
"USB 2.0 High Speed": "USB 2.0 高速",
"USB 3.0 Super Speed": "USB 3.0 超高速",
"Drag'n'Drop (NSP, XCI, NSZ, XCZ) to the install folder": "拖放文件(NSP, XCI, NSZ, XCZ)至安装文件夹",
"Failed to install via MTP, press B to exit...": "MTP安装失败请按B键退出...",
"MTP install success!": "MTP安装成功",
"MTP install failed!": "MTP安装失败",
"Press B to exit...": "按 B 键退出...",
"GameCard Install": "游戏卡安装",
"GameCard": "游戏卡",
"GC": "GC",
"System memory %.1f GB": "主机内存 %.1f GB",
"microSD card %.1f GB": "microSD卡 %.1f GB",
"Exit": "退出",
"Install disabled...\nPlease enable installing via the install options.": "安装已禁用...\n请通过安装选项启用安装。",
"No GameCard inserted": "未插入游戏卡",
"GameCard is already trimmed!": "游戏卡已被修剪!",
"WARNING: GameCard is already trimmed!": "警告:游戏卡已被修剪!",
"Continue": "继续",
"Gc install success!": "游戏安装成功。",
"Gc install failed!": "游戏安装失败。",
"IRS (Infrared Joycon Camera)": "IRS(Joycon红外摄像头)",
"IRS": "IRS",
"Irs": "红外成像",
"Ambient Noise Level: ": "环境噪声等级:",
"Controller": "控制器",
"Pad ": "手柄 ",
"HandHeld": "掌机模式",
" (Available)": " (可用)",
" (Unsupported)": " (不支持)",
" (Unconnected)": " (未连接)",
"Rotation": "旋转",
"0 (Sideways)": "0度",
"90 (Flat)": "90度",
"180 (-Sideways)": "180度",
"270 (Upside down)": "270度",
"Colour": "颜色",
"Grey": "灰色",
"Ironbow": "紫黄",
"Green": "绿色",
"Red": "红色",
"Blue": "蓝色",
"Light Target": "光源目标",
"All leds": "全部",
"Bright group": "亮色组",
"Dim group": "暗色组",
"None": "无",
"Gain": "曝光",
"Negative Image": "负片图像",
"Normal image": "正常图像",
"Negative image": "负片图像",
"Format": "格式",
"Trimming Format": "修剪格式",
"320x240": "320×240",
"160x120": "160×120",
"80x60": "80×60",
"40x30": "40×30",
"20x15": "20×15",
"External Light Filter": "外部光滤镜",
"Load Default": "加载默认值",
"Web": "网络",
"Select URL": "选择链接",
"Enter custom URL": "输入自定义链接",
"Enter URL": "输入网址",
"Advanced": "高级",
"Advanced Options": "高级选项",
"Logging": "日志",
"Replace hbmenu on exit": "退出后用Sphaira替换hbmenu",
"Restore hbmenu?": "恢复 hbmenu",
"Restore": "恢复",
"Failed to find /switch/hbmenu.nro\nUse the Appstore to re-install hbmenu": "未能找到 /switch/hbmenu.nro\n请使用应用商店重新安装 hbmenu",
"Failed to restore hbmenu, please re-download hbmenu": "恢复 hbmenu 失败,请重新下载 hbmenu",
"Failed to restore hbmenu, using sphaira instead": "恢复 hbmenu 失败,改用 Sphaira",
"Restored hbmenu, closing sphaira": "已恢复 hbmenu正在关闭 Sphaira",
"Restored hbmenu": "已恢复 hbmenu",
"Restart Sphaira?": "重启 Sphaira",
"Press OK to restart Sphaira": "按OK键以重启shphaira菜单",
"Boost CPU during transfer": "传输时提升CPU频率",
"Text scroll speed": "文本滚动速度",
"Slow": "慢",
"Normal": "正常",
"Fast": "快",
"Set left-side menu": "设置左侧菜单",
"Set right-side menu": "设置右侧菜单",
"Install options": "安装选项",
"Install Options": "安装选项",
"Enable sysmmc": "启用sysmmc",
"Enable emummc": "启用emummc",
"Show install warning": "显示安装警告",
"Install location": "安装位置",
"System memory": "主机内存",
"microSD card": "SD卡",
"Boost CPU clock": "提升 CPU 频率",
"Allow downgrade": "允许降级",
"Skip if already installed": "若已安装则跳过",
"Ticket only": "仅安装票据",
"Skip base": "跳过基础部分",
"Skip patch": "跳过更新补丁(UPD)",
"Skip dlc": "跳过追加内容(DLC)",
"Skip data patch": "跳过数据补丁",
"Skip ticket": "跳过票据",
"Skip NCA hash verify": "跳过 NCA 哈希验证",
"Skip RSA header verify": "跳过 RSA 头部验证",
"Skip RSA NPDM verify": "跳过 RSA NPDM 验证",
"Ignore distribution bit": "忽略分布位",
"Convert to standard crypto": "转换为标准加密方式",
"Lower master key": "降低主密钥",
"Lower system version": "降低系统版本",
"Dump options": "转储选项",
"Dump Options": "转储选项",
"Created nested folder": "已创建嵌套文件夹",
"Append folder with .xci": "用.xci附加文件夹",
"Trim XCI": "裁剪 XCI",
"Label trimmed XCI": "标记已裁剪的XCI",
"Multi-threaded USB transfer": "多线程USB传输",
"Homebrew": "自制软件",
"Apps": "应用",
"Homebrew Options": "自制软件选项",
"Hide Sphaira": "在应用列表中隐藏Sphaira",
"Install Forwarder": "安装前端应用",
"WARNING: Installing forwarders will lead to a ban!": "警告安装前端应用可能导致ban机",
"Installing Forwarder": "正在生成前端应用",
"Creating Program": "正在创建程序",
"Creating Control": "正在创建控制器",
"Creating Meta": "正在创建元数据",
"Writing Nca": "正在写入Nca",
"Updating ncm database": "正在更新ncm数据库",
"Pushing application record": "正在推送应用记录",
"Failed to install forwarder": "前端应用安装失败",
"Unstar": "取消星标",
"Star": "星标",
"Unstarred ": "取消星标 ",
"Starred ": "已星标 ",
"Failed to remove old forwarder, please manually remove it!": "删除旧前端应用失败,请手动删除!",
"AppStore": "应用商店",
"Appstore": "应用商店",
"Store": "商店",
"Filter: %s | Sort: %s | Order: %s": "筛选: %s | 排序: %s | 顺序: %s",
"AppStore Options": "应用商店选项",
"Info": "信息",
"Changelog": "更新日志",
"Details": "详情",
"version: %s": "版本: %s",
"updated: %s": "更新时间: %s",
"category: %s": "分类: %s",
"extracted: %.2f MiB": "应用大小: %.2f MiB",
"app_dls: %s": "下载量: %s",
"More by Author": "作者更多作品",
"Leave Feedback": "留言反馈",
"FileBrowser": "文件浏览器",
"Files": "文件",
"%zd files": "%zd 个文件",
"%zd dirs": "%zd 个文件夹",
"File Options": "文件选项",
"Show Hidden": "显示隐藏项目",
"Folders First": "文件夹靠前",
"Hidden Last": "隐藏项目置后",
"Cut": "剪切",
"Copy": "复制",
"Copying ": "正在复制 ",
"Paste": "粘贴",
"Paste file(s)?": "粘贴 个文件(夹)",
"Pasting ": "正在粘贴 ",
"Pasting": "正在粘贴",
"Rename": "重命名",
"Set New File Name": "输入新命名",
"Failed to delete directory": "删除目录失败",
"Failed to delete file": "删除文件失败",
"Extract zip": "解压 zip",
"Extract Options": "解压选项",
"Extract here": "解压到这里",
"Extract to root": "解压到根目录",
"Are you sure you want to extract to root?": "您确定要解压到根目录吗?",
"Extract to...": "解压到...",
"Enter the path to the folder to extract into": "输入要解压到的文件夹的路径",
"Extracting ": "正在解压",
"Extract success!": "解压成功!",
"Extract failed!": "解压失败!",
"Compress to zip": "压缩到zip",
"Compress Options": "压缩选项",
"Compress": "压缩",
"Compress to...": "压缩到...",
"Compressing ": "正在压缩 ",
"Compress success!": "压缩成功!",
"Compress failed!": "压缩失败",
"Create File": "新建文件",
"Set File Name": "输入文件名",
"Create Folder": "新建文件夹",
"Set Folder Name": "输入文件夹名",
"Creating ": "正在创建 ",
"View as text (unfinished)": "以文本形式查看(未完善)",
"Upload": "上传",
"Select upload location": "选择上传位置",
"No upload locations set!": "未设置上传位置",
"Uploading": "正在上传",
"Upload successfull!": "上传成功!",
"Upload failed!": "上传失败!",
"Hash": "哈希",
"Hash Options": "哈希选项",
"Hashing": "正在计算文件哈希",
"Failed to hash file...": "计算文件哈希失败...",
"Ignore read only": "忽略只读",
"Mount": "挂载",
"Sd": "SD卡",
"Image System memory": "主机内存图像",
"Image microSD card": "SD卡图像",
"Empty...": "空...",
"Open with DayBreak?": "使用DayBreak打开",
"Launch ": "启动 ",
"Launch option for: ": "启动选项:",
"Select launcher for: ": "选择启动器用于:",
"Close FileBrowser?": "是否关闭文件浏览器?",
"Sort By": "排序方式",
"Sort Options": "排序选项",
"Filter": "筛选",
"All": "全部",
"Emulators": "模拟器",
"Tools": "工具",
"Themes": "主题",
"Legacy": "旧版",
"Sort": "排序",
"Size": "按大小",
"Size (Star)": "按大小(星标优先)",
"Alphabetical": "按字母顺序",
"Alphabetical (Star)": "按字母顺序(星标优先)",
"Updated": "最近使用",
"Updated (Star)": "最近更新(星标优先)",
"Downloads": "下载",
"Likes": "点赞量",
"ID": "ID",
"Order": "顺序",
"Descending": "降序",
"Descending (down)": "降序",
"Desc": "降序",
"Ascending": "升序",
"Ascending (Up)": "升序",
"Asc": "升序",
"Layout": "布局",
"List": "列表",
"Icon": "图标",
"Grid": "网格",
"Search": "搜索",
"Options": "选项",
"Split": "拆分",
"OK": "确定",
"Back": "返回",
"Select": "选择",
"Open": "打开",
"Close": "关闭",
"Launch": "启动",
"Restart": "重启",
"Next": "下一项",
"Prev": "上一项",
"Yes": "是",
"No": "否",
"On": "开启",
"Off": "关闭",
"Install": "安装",
"Install Selected files?": "安装所选文件?",
"Installing ": "正在安装 ",
"Installed ": "已安装",
"Installed!": "安装完成!",
"Trying to load ": "尝试加载 ",
"Checking MD5": "正在校验 MD5",
"Delete": "删除",
"Delete Selected files?": "删除选中的文件?",
"Are you sure you want to delete ": "您确定要删除吗 ",
"Scanning ": "正在扫描 ",
"Deleting ": "正在删除 ",
"Deleting": "正在删除",
"Remove": "删除",
"Completely remove ": "彻底删除 ",
"Removing ": "正在移除 ",
"Uninstalling ": "正在卸载 ",
"Removed ": "已移除 ",
"Download": "下载",
"Downloading ": "正在下载 ",
"Downloaded ": "已下载 ",
"Download via the Network options!": "通过网络选项下载!",
"Update": "更新",
"Update avaliable: ": "有可用更新!",
"Download update: ": "下载更新:",
"Updated to ": "更新至 ",
"Failed to download update": "更新下载失败",
"%zu hours %zu minutes remaining": "剩余 %zu 小时 %zu 分钟",
"%zu minutes %zu seconds remaining": "剩余 %zu 分钟 %zu 秒",
"%zu seconds remaining": "剩余 %zu 秒",
"Loading...": "加载中...",
"Loading": "加载中",
"Empty!": "空空如也!",
"Not Ready...": "尚未准备好...",
"Error loading page!": "页面加载失败!",
"USB Speed Status": "USB速度状态",
"Data Type": "数据类型",
"Save Location Selection": "存档位置选择",
"MTP Transfer": "MTP传输",
"USB Installation": "USB安装",
"Archive Data": "存档数据",
"Game Card Data": "游戏卡数据",
"Storage Path": "存储路径",
"MTP Connection": "MTP连接",
"USB Device": "USB设备",
"Data Category": "数据类别",
"Save Management": "存档管理",
"Transfer Mode": "传输模式",
"Installation Method": "安装方式",
"File Type": "文件类型",
"Storage Device": "存储设备",
"Data Transfer": "数据传输",
"Save Data Type": "存档数据类型",
"USB Connection": "USB连接",
"MTP Settings": "MTP设置",
"USB Configuration": "USB配置",
"Data Storage": "数据存储"
}

View File

@@ -5,10 +5,21 @@
namespace sphaira::i18n { namespace sphaira::i18n {
enum class WordOrder {
PhraseName, // default: SVO (English, French, German, etc.)
NamePhrase // SOV (Japanese, Korean)
};
bool init(long index); bool init(long index);
void exit(); void exit();
std::string get(std::string_view str); std::string get(std::string_view str);
std::string get(std::string_view str, std::string_view fallback);
WordOrder GetWordOrder();
bool WordOrderLocale();
std::string Reorder(std::string_view phrase, std::string_view name);
} // namespace sphaira::i18n } // namespace sphaira::i18n

View File

@@ -839,9 +839,10 @@ void App::SetReplaceHbmenuEnable(bool enable) {
NacpStruct actual_hbmenu_nacp; NacpStruct actual_hbmenu_nacp;
if (R_FAILED(nro_get_nacp("/switch/hbmenu.nro", actual_hbmenu_nacp))) { if (R_FAILED(nro_get_nacp("/switch/hbmenu.nro", actual_hbmenu_nacp))) {
App::Push<ui::OptionBox>( App::Push<ui::OptionBox>(
"Failed to find /switch/hbmenu.nro\n" i18n::get("missing_hbmenu_info",
"Use the Appstore to re-install hbmenu"_i18n, "Failed to find /switch/hbmenu.nro\n"
"OK"_i18n "Use the Appstore to re-install hbmenu"
), "OK"_i18n
); );
return; return;
} }
@@ -1960,18 +1961,23 @@ void App::DisplayThemeOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>("Music"_i18n, App::GetThemeMusicEnable(), [](bool& enable){ options->Add<ui::SidebarEntryBool>("Music"_i18n, App::GetThemeMusicEnable(), [](bool& enable){
App::SetThemeMusicEnable(enable); App::SetThemeMusicEnable(enable);
}, "Enable background music.\n" }, i18n::get("bgm_enable_info",
"Each theme can have it's own music file. " "Enable background music.\n"
"If a theme does not set a music file, the default music is loaded instead (if it exists)."_i18n); "Each theme can have it's own music file. "
"If a theme does not set a music file, the default music is loaded instead (if it exists)."
)
);
options->Add<ui::SidebarEntryBool>("Show IP address"_i18n, App::GetApp()->m_show_ip_addr, options->Add<ui::SidebarEntryBool>("Show IP address"_i18n, App::GetApp()->m_show_ip_addr,
"Shows the IP address in all menus, including the WiFi strength.\n\n" i18n::get("display_ip_info",
"NOTE: The IP address will be hidden in applet mode due to the applet warning being displayed in it's place."_i18n "Shows the IP address in all menus, including the WiFi strength.\n\n"
"NOTE: The IP address will be hidden in applet mode due to the applet warning being displayed in it's place."
)
); );
// todo: add file picker for music here. // todo: add file picker for music here.
// todo: add array to audio which has the list of supported extensions. // todo: add array to audio which has the list of supported extensions.
auto remove_music = options->Add<ui::SidebarEntryCallback>("Remove Background Music", [](){ auto remove_music = options->Add<ui::SidebarEntryCallback>("Remove Background Music"_i18n, [](){
g_app->m_default_music.Set(""); g_app->m_default_music.Set("");
audio::CloseSong(&g_app->m_background_music); audio::CloseSong(&g_app->m_background_music);
}, "Removes the background music file"_i18n); }, "Removes the background music file"_i18n);
@@ -2003,7 +2009,7 @@ void App::DisplayMenuOptions(bool left_side) {
}, i18n::get(e.info)); }, i18n::get(e.info));
if (e.IsInstall()) { if (e.IsInstall()) {
entry->Depends(App::GetInstallEnable, i18n::get(App::INSTALL_DEPENDS_STR), App::ShowEnableInstallPrompt); entry->Depends(App::GetInstallEnable, i18n::get("enable_install_info", App::INSTALL_DEPENDS_STR), App::ShowEnableInstallPrompt);
} }
} }
@@ -2033,8 +2039,10 @@ void App::DisplayMenuOptions(bool left_side) {
} }
); );
}, },
"Launch the built-in web browser.\n\n", i18n::get("web_browser_info",
"NOTE: The browser is very limted, some websites will fail to load and there's a 30 minute timeout which closes the browser"_i18n); "Launch the built-in web browser.\n\n"
"NOTE: The browser is very limted, some websites will fail to load and there's a 30 minute timeout which closes the browser"
));
} }
} }
@@ -2064,18 +2072,21 @@ void App::DisplayAdvancedOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>("Replace hbmenu on exit"_i18n, App::GetReplaceHbmenuEnable(), [](bool& enable){ options->Add<ui::SidebarEntryBool>("Replace hbmenu on exit"_i18n, App::GetReplaceHbmenuEnable(), [](bool& enable){
App::SetReplaceHbmenuEnable(enable); App::SetReplaceHbmenuEnable(enable);
}, "When enabled, it replaces /hbmenu.nro with Sphaira, creating a backup of hbmenu to /switch/hbmenu.nro\n\n" \ }, i18n::get("hbmenu_replace_info",
"Disabling will give you the option to restore hbmenu."_i18n); "When enabled, it replaces /hbmenu.nro with Sphaira, creating a backup of hbmenu to /switch/hbmenu.nro\n\n"
"Disabling will give you the option to restore hbmenu."));
options->Add<ui::SidebarEntryCallback>("Add / modify mounts"_i18n, [](){ options->Add<ui::SidebarEntryCallback>("Add / modify mounts"_i18n, [](){
devoptab::DisplayDevoptabSideBar(); devoptab::DisplayDevoptabSideBar();
}, "Create, modify, delete network mounts (HTTP, FTP, SFTP, SMB, NFS).\n" }, i18n::get("mount_options_info",
"Mount options only require a URL and Name be set, with other fields being optional, such as port, user, pass etc.\n\n" "Create, modify, delete network mounts (HTTP, FTP, SFTP, SMB, NFS).\n"
"Any changes made will require restarting Sphaira to take effect."_i18n); "Mount options only require a URL and Name be set, with other fields being optional, such as port, user, pass etc.\n\n"
"Any changes made will require restarting Sphaira to take effect."));
options->Add<ui::SidebarEntryBool>("Boost CPU during transfer"_i18n, App::GetApp()->m_progress_boost_mode, options->Add<ui::SidebarEntryBool>("Boost CPU during transfer"_i18n, App::GetApp()->m_progress_boost_mode,
"Enables boost mode during transfers which can improve transfer speed. " i18n::get("transfer_boost_info",
"This sets the CPU to 1785mhz and lowers the GPU 76mhz"_i18n); "Enables boost mode during transfers which can improve transfer speed. "
"This sets the CPU to 1785mhz and lowers the GPU 76mhz"));
options->Add<ui::SidebarEntryArray>("Text scroll speed"_i18n, text_scroll_speed_items, [](s64& index_out){ options->Add<ui::SidebarEntryArray>("Text scroll speed"_i18n, text_scroll_speed_items, [](s64& index_out){
App::SetTextScrollSpeed(index_out); App::SetTextScrollSpeed(index_out);
@@ -2141,8 +2152,9 @@ void App::DisplayAdvancedOptions(bool left_side) {
options->Add<ui::SidebarEntryCallback>("Install options"_i18n, [left_side](){ options->Add<ui::SidebarEntryCallback>("Install options"_i18n, [left_side](){
App::DisplayInstallOptions(left_side); App::DisplayInstallOptions(left_side);
}, "Change the install options.\n" }, i18n::get("install_options_info",
"You can enable installing from here."_i18n); "Change the install options.\n"
"You can enable installing from here."));
options->Add<ui::SidebarEntryCallback>("Export options"_i18n, [left_side](){ options->Add<ui::SidebarEntryCallback>("Export options"_i18n, [left_side](){
App::DisplayDumpOptions(left_side); App::DisplayDumpOptions(left_side);
@@ -2194,46 +2206,54 @@ void App::DisplayInstallOptions(bool left_side) {
"Skips installing tickets, not recommended."_i18n); "Skips installing tickets, not recommended."_i18n);
options->Add<ui::SidebarEntryBool>("Skip NCA hash verify"_i18n, App::GetApp()->m_skip_nca_hash_verify, options->Add<ui::SidebarEntryBool>("Skip NCA hash verify"_i18n, App::GetApp()->m_skip_nca_hash_verify,
"Enables the option to skip sha256 verification. This is a hash over the entire NCA. " i18n::get("skip_nca_info",
"It is used to verify that the NCA is valid / not corrupted. " "Enables the option to skip sha256 verification. This is a hash over the entire NCA. "
"You may have seen the option for \"checking for corrupted data\" when a corrupted game is installed. " "It is used to verify that the NCA is valid / not corrupted. "
"That check performs various hash checks, including the hash over the NCA.\n\n" "You may have seen the option for \"checking for corrupted data\" when a corrupted game is installed. "
"It is recommended to keep this disabled."_i18n); "That check performs various hash checks, including the hash over the NCA.\n\n"
"It is recommended to keep this disabled."));
options->Add<ui::SidebarEntryBool>("Skip RSA header verify"_i18n, App::GetApp()->m_skip_rsa_header_fixed_key_verify, options->Add<ui::SidebarEntryBool>("Skip RSA header verify"_i18n, App::GetApp()->m_skip_rsa_header_fixed_key_verify,
"Enables the option to skip RSA NCA fixed key verification. " i18n::get("nca_verify_info",
"This is a hash over the NCA header. It is used to verify that the header has not been modified. " "Enables the option to skip RSA NCA fixed key verification. "
"The header is signed by nintendo, thus it cannot be forged, and is reliable to detect modified NCA headers (such as NSP/XCI converts).\n\n" "This is a hash over the NCA header. It is used to verify that the header has not been modified. "
"It is recommended to keep this disabled, unless you need to install nsp/xci converts."_i18n); "The header is signed by nintendo, thus it cannot be forged, and is reliable to detect modified NCA headers (such as NSP/XCI converts).\n\n"
"It is recommended to keep this disabled, unless you need to install nsp/xci converts."));
options->Add<ui::SidebarEntryBool>("Skip RSA NPDM verify"_i18n, App::GetApp()->m_skip_rsa_npdm_fixed_key_verify, options->Add<ui::SidebarEntryBool>("Skip RSA NPDM verify"_i18n, App::GetApp()->m_skip_rsa_npdm_fixed_key_verify,
"Enables the option to skip RSA NPDM fixed key verification.\n\n" i18n::get("npdm_verify_info",
"Currently, this option is stubbed (not implemented)."_i18n); "Enables the option to skip RSA NPDM fixed key verification.\n\n"
"Currently, this option is stubbed (not implemented)."));
options->Add<ui::SidebarEntryBool>("Ignore distribution bit"_i18n, App::GetApp()->m_ignore_distribution_bit, options->Add<ui::SidebarEntryBool>("Ignore distribution bit"_i18n, App::GetApp()->m_ignore_distribution_bit,
"If set, it will ignore the distribution bit in the NCA header. " i18n::get("nca_distbit_info",
"The distribution bit is used to signify whether a NCA is Eshop or GameCard. " "If set, it will ignore the distribution bit in the NCA header. "
"You cannot (normally) launch install games that have the distruction bit set to GameCard.\n\n" "The distribution bit is used to signify whether a NCA is Eshop or GameCard. "
"It is recommended to keep this disabled."_i18n); "You cannot (normally) launch install games that have the distruction bit set to GameCard.\n\n"
"It is recommended to keep this disabled."));
options->Add<ui::SidebarEntryBool>("Convert to common ticket"_i18n, App::GetApp()->m_convert_to_common_ticket, options->Add<ui::SidebarEntryBool>("Convert to common ticket"_i18n, App::GetApp()->m_convert_to_common_ticket,
"[Requires keys] Converts personalised tickets to common (fake) tickets.\n\n" i18n::get("ticket_convert_info",
"It is recommended to keep this enabled."_i18n); "[Requires keys] Converts personalised tickets to common (fake) tickets.\n\n"
"It is recommended to keep this enabled."));
options->Add<ui::SidebarEntryBool>("Convert to standard crypto"_i18n, App::GetApp()->m_convert_to_standard_crypto, options->Add<ui::SidebarEntryBool>("Convert to standard crypto"_i18n, App::GetApp()->m_convert_to_standard_crypto,
"[Requires keys] Converts titlekey to standard crypto, also known as \"ticketless\".\n\n" i18n::get("titlekey_crypto_info",
"It is recommended to keep this disabled."_i18n); "[Requires keys] Converts titlekey to standard crypto, also known as \"ticketless\".\n\n"
"It is recommended to keep this disabled."));
options->Add<ui::SidebarEntryBool>("Lower master key"_i18n, App::GetApp()->m_lower_master_key, options->Add<ui::SidebarEntryBool>("Lower master key"_i18n, App::GetApp()->m_lower_master_key,
"[Requires keys] Encrypts the keak (key area key) with master key 0, which allows the game to be launched on every fw. " i18n::get("keyarea_crypto_info",
"Implicitly performs standard crypto.\n\n" "[Requires keys] Encrypts the keak (key area key) with master key 0, which allows the game to be launched on every fw. "
"Do note that just because the game can be launched on any fw (as it can be decrypted), doesn't mean it will work. It is strongly recommened to update your firmware and Atmosphere version in order to play the game, rather than enabling this option.\n\n" "Implicitly performs standard crypto.\n\n"
"It is recommended to keep this disabled."_i18n); "Do note that just because the game can be launched on any fw (as it can be decrypted), doesn't mean it will work. It is strongly recommened to update your firmware and Atmosphere version in order to play the game, rather than enabling this option.\n\n"
"It is recommended to keep this disabled."));
options->Add<ui::SidebarEntryBool>("Lower system version"_i18n, App::GetApp()->m_lower_system_version, options->Add<ui::SidebarEntryBool>("Lower system version"_i18n, App::GetApp()->m_lower_system_version,
"Sets the system_firmware field in the cnmt extended header to 0. " i18n::get("cnmt_fw_info",
"Note: if the master key is higher than fw version, the game still won't launch as the fw won't have the key to decrypt keak (see above).\n\n" "Sets the system_firmware field in the cnmt extended header to 0. "
"It is recommended to keep this disabled."_i18n); "Note: if the master key is higher than fw version, the game still won't launch as the fw won't have the key to decrypt keak (see above).\n\n"
"It is recommended to keep this disabled."));
} }
void App::DisplayDumpOptions(bool left_side) { void App::DisplayDumpOptions(bool left_side) {
@@ -2242,30 +2262,34 @@ void App::DisplayDumpOptions(bool left_side) {
ui::SidebarEntryArray::Items nsz_level_items; ui::SidebarEntryArray::Items nsz_level_items;
for (auto& e : NSZ_COMPRESS_LEVEL_OPTIONS) { for (auto& e : NSZ_COMPRESS_LEVEL_OPTIONS) {
nsz_level_items.emplace_back(e.name); nsz_level_items.emplace_back(i18n::get(e.name));
} }
ui::SidebarEntryArray::Items nsz_thread_items; ui::SidebarEntryArray::Items nsz_thread_items;
for (auto& e : NSZ_COMPRESS_THREAD_OPTIONS) { for (auto& e : NSZ_COMPRESS_THREAD_OPTIONS) {
nsz_thread_items.emplace_back(e.name); nsz_thread_items.emplace_back(i18n::get(e.name));
} }
ui::SidebarEntryArray::Items nsz_block_items; ui::SidebarEntryArray::Items nsz_block_items;
for (auto& e : NSZ_COMPRESS_BLOCK_OPTIONS) { for (auto& e : NSZ_COMPRESS_BLOCK_OPTIONS) {
nsz_block_items.emplace_back(e.name); nsz_block_items.emplace_back(i18n::get(e.name));
} }
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Created nested folder"_i18n, App::GetApp()->m_dump_app_folder, "Created nested folder"_i18n, App::GetApp()->m_dump_app_folder,
"Creates a folder using the name of the game.\n" i18n::get("game_folder_info",
"For example, /name/name.xci\n" "Creates a folder using the name of the game.\n"
"Disabling this would use /name.xci"_i18n "For example, /name/name.xci\n"
"Disabling this would use /name.xci"
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Append folder with .xci"_i18n, App::GetApp()->m_dump_append_folder_with_xci, "Append folder with .xci"_i18n, App::GetApp()->m_dump_append_folder_with_xci,
"XCI dumps will name the folder with the .xci extension.\n" i18n::get("xci_folder_info",
"For example, /name.xci/name.xci\n\n" "XCI dumps will name the folder with the .xci extension.\n"
"Some devices only function is the xci folder is named exactly the same as the xci."_i18n "For example, /name.xci/name.xci\n\n"
"Some devices only function is the xci folder is named exactly the same as the xci."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Trim XCI"_i18n, App::GetApp()->m_dump_trim_xci, "Trim XCI"_i18n, App::GetApp()->m_dump_trim_xci,
@@ -2284,20 +2308,24 @@ void App::DisplayDumpOptions(bool left_side) {
options->Add<ui::SidebarEntryArray>("NSZ level"_i18n, nsz_level_items, [](s64& index_out){ options->Add<ui::SidebarEntryArray>("NSZ level"_i18n, nsz_level_items, [](s64& index_out){
App::GetApp()->m_nsz_compress_level.Set(index_out); App::GetApp()->m_nsz_compress_level.Set(index_out);
}, App::GetApp()->m_nsz_compress_level.Get(), }, App::GetApp()->m_nsz_compress_level.Get(),
"Sets the compression level used when exporting to NSZ.\n\n" i18n::get("compress_level_info",
"NOTE: The switch CPU is not very fast, and setting the value too high can " "Sets the compression level used when exporting to NSZ.\n\n"
"result in exporting taking a very long time for very little gain in size.\n\n" "NOTE: The switch CPU is not very fast, and setting the value too high can "
"It is recommended to set this value to 3."_i18n "result in exporting taking a very long time for very little gain in size.\n\n"
"It is recommended to set this value to 3."
)
); );
options->Add<ui::SidebarEntryArray>("NSZ threads"_i18n, nsz_thread_items, [](s64& index_out){ options->Add<ui::SidebarEntryArray>("NSZ threads"_i18n, nsz_thread_items, [](s64& index_out){
App::GetApp()->m_nsz_compress_threads.Set(index_out); App::GetApp()->m_nsz_compress_threads.Set(index_out);
}, App::GetApp()->m_nsz_compress_threads.Get(), }, App::GetApp()->m_nsz_compress_threads.Get(),
"Sets the number of threads used when compression the NCA.\n\n" i18n::get("compress_threads_info",
"A value less than 3 allows for another thread to run freely, such as read/write threads. " "Sets the number of threads used when compression the NCA.\n\n"
"However in my testing, a value of 3 was usually the most performant.\n" "A value less than 3 allows for another thread to run freely, such as read/write threads. "
"A value of 0 will use no threads and should only be used for testing as it is always slower.\n\n" "However in my testing, a value of 3 was usually the most performant.\n"
"It is recommended to set this value between 1-3."_i18n "A value of 0 will use no threads and should only be used for testing as it is always slower.\n\n"
"It is recommended to set this value between 1-3."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
@@ -2307,9 +2335,11 @@ void App::DisplayDumpOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"NSZ block compression"_i18n, App::GetApp()->m_nsz_compress_block, "NSZ block compression"_i18n, App::GetApp()->m_nsz_compress_block,
"Enables block compression, which compresses the NCA into blocks (at the cost of compression ratio) " i18n::get("block_compress_info",
"which allows for random access, allowing the NCZ to be mounted as a file system.\n\n" "Enables block compression, which compresses the NCA into blocks (at the cost of compression ratio) "
"NOTE: Sphaira does not yet support mounting NCZ as a file system, but it will be added evntually."_i18n "which allows for random access, allowing the NCZ to be mounted as a file system.\n\n"
"NOTE: Sphaira does not yet support mounting NCZ as a file system, but it will be added evntually."
)
); );
auto block_size_option = options->Add<ui::SidebarEntryArray>("NSZ block size"_i18n, nsz_block_items, [](s64& index_out){ auto block_size_option = options->Add<ui::SidebarEntryArray>("NSZ block size"_i18n, nsz_block_items, [](s64& index_out){
@@ -2338,7 +2368,7 @@ void App::DisplayFtpOptions(bool left_side) {
}, "Enable FTP server to run in the background."_i18n); }, "Enable FTP server to run in the background."_i18n);
options->Add<ui::SidebarEntryTextInput>( options->Add<ui::SidebarEntryTextInput>(
"Port", App::GetApp()->m_ftp_port.Get(), "", "", 1, 5, "Port"_i18n, App::GetApp()->m_ftp_port.Get(), "", "", 1, 5,
"Opens the FTP server on this port."_i18n, "Opens the FTP server on this port."_i18n,
[](auto* input){ [](auto* input){
App::GetApp()->m_ftp_port.Set(input->GetNumValue()); App::GetApp()->m_ftp_port.Set(input->GetNumValue());
@@ -2347,12 +2377,14 @@ void App::DisplayFtpOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Anon"_i18n, App::GetApp()->m_ftp_anon, "Anon"_i18n, App::GetApp()->m_ftp_anon,
"Allows you to login without setting a username and password.\n" i18n::get("login_require_info",
"If disabled, you must set a user name and password below!"_i18n "Allows you to login without setting a username and password.\n"
"If disabled, you must set a user name and password below!"
)
); );
options->Add<ui::SidebarEntryTextInput>( options->Add<ui::SidebarEntryTextInput>(
"User", App::GetApp()->m_ftp_user.Get(), "", "", -1, 64, "User"_i18n, App::GetApp()->m_ftp_user.Get(), "", "", -1, 64,
"Sets the username, must be set if anon is disabled."_i18n, "Sets the username, must be set if anon is disabled."_i18n,
[](auto* input){ [](auto* input){
App::GetApp()->m_ftp_user.Set(input->GetValue()); App::GetApp()->m_ftp_user.Set(input->GetValue());
@@ -2360,7 +2392,7 @@ void App::DisplayFtpOptions(bool left_side) {
); );
options->Add<ui::SidebarEntryTextInput>( options->Add<ui::SidebarEntryTextInput>(
"Pass", App::GetApp()->m_ftp_pass.Get(), "", "", -1, 64, "Pass"_i18n, App::GetApp()->m_ftp_pass.Get(), "", "", -1, 64,
"Sets the password, must be set if anon is disabled."_i18n, "Sets the password, must be set if anon is disabled."_i18n,
[](auto* input){ [](auto* input){
App::GetApp()->m_ftp_pass.Set(input->GetValue()); App::GetApp()->m_ftp_pass.Set(input->GetValue());
@@ -2379,30 +2411,34 @@ void App::DisplayFtpOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show bis storage"_i18n, App::GetApp()->m_ftp_show_bis_storage, "Show bis storage"_i18n, App::GetApp()->m_ftp_show_bis_storage,
"Shows the bis folder which contains the following:\n" i18n::get("bis_contents_info",
"- BootPartition1Root.bin\n" "Shows the bis folder which contains the following:\n"
"- BootPartition2Root.bin\n" "- BootPartition1Root.bin\n"
"- UserDataRoot.bin\n" "- BootPartition2Root.bin\n"
"- BootConfigAndPackage2Part1.bin\n" "- UserDataRoot.bin\n"
"- BootConfigAndPackage2Part2.bin\n" "- BootConfigAndPackage2Part1.bin\n"
"- BootConfigAndPackage2Part3.bin\n" "- BootConfigAndPackage2Part2.bin\n"
"- BootConfigAndPackage2Part4.bin\n" "- BootConfigAndPackage2Part3.bin\n"
"- BootConfigAndPackage2Part5.bin\n" "- BootConfigAndPackage2Part4.bin\n"
"- BootConfigAndPackage2Part6.bin\n" "- BootConfigAndPackage2Part5.bin\n"
"- CalibrationFile.bin\n" "- BootConfigAndPackage2Part6.bin\n"
"- SafeMode.bin\n" "- CalibrationFile.bin\n"
"- User.bin\n" "- SafeMode.bin\n"
"- System.bin\n" "- User.bin\n"
"- SystemProperEncryption.bin"_i18n "- System.bin\n"
"- SystemProperEncryption.bin"
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show bis file systems"_i18n, App::GetApp()->m_ftp_show_bis_fs, "Show bis file systems"_i18n, App::GetApp()->m_ftp_show_bis_fs,
"Shows the following bis file systems:\n" i18n::get("bis_fs_info",
"- bis_calibration_file\n" "Shows the following bis file systems:\n"
"- bis_safe_mode\n" "- bis_calibration_file\n"
"- bis_user\n" "- bis_safe_mode\n"
"- bis_system"_i18n "- bis_user\n"
"- bis_system"
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
@@ -2417,37 +2453,47 @@ void App::DisplayFtpOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show microSD contents"_i18n, App::GetApp()->m_ftp_show_content_sd, "Show microSD contents"_i18n, App::GetApp()->m_ftp_show_content_sd,
"Shows the microSD contents folder.\n\n" i18n::get("microsd_contents_info",
"NOTE: This is not the normal microSD card storage, it is instead " "Shows the microSD contents folder.\n\n"
"the location where NCA's are stored. The normal microSD card is always mounted."_i18n "NOTE: This is not the normal microSD card storage, it is instead "
"the location where NCA's are stored. The normal microSD card is always mounted."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show games"_i18n, App::GetApp()->m_ftp_show_games, "Show games"_i18n, App::GetApp()->m_ftp_show_games,
"Shows the games folder.\n\n" i18n::get("games_ftp_info",
"This folder contains all of your installed games, allowing you to create " "Shows the games folder.\n\n"
"backups over FTP!\n\n" "This folder contains all of your installed games, allowing you to create "
"NOTE: This folder is read-only. You cannot delete games over FTP."_i18n "backups over FTP!\n\n"
"NOTE: This folder is read-only. You cannot delete games over FTP."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show install"_i18n, App::GetApp()->m_ftp_show_install, "Show install"_i18n, App::GetApp()->m_ftp_show_install,
"Shows the install folder.\n\n" i18n::get("install_ftp_info",
"This folder is used for installing games via FTP.\n\n" "Shows the install folder.\n\n"
"NOTE: You must open the \"FTP Install\" menu when trying to install a game!"_i18n "This folder is used for installing games via FTP.\n\n"
"NOTE: You must open the \"FTP Install\" menu when trying to install a game!"
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show mounts"_i18n, App::GetApp()->m_ftp_show_mounts, "Show mounts"_i18n, App::GetApp()->m_ftp_show_mounts,
"Shows the mounts folder.\n\n" i18n::get("mounts_ftp_info",
"This folder is contains all of the mounts added to Sphaira, allowing you to acces them over FTP!\n" "Shows the mounts folder.\n\n"
"For example, you can access your SMB, WebDav or other FTP mounts over FTP."_i18n "This folder is contains all of the mounts added to Sphaira, allowing you to acces them over FTP!\n"
"For example, you can access your SMB, WebDav or other FTP mounts over FTP."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show switch"_i18n, App::GetApp()->m_ftp_show_switch, "Show switch"_i18n, App::GetApp()->m_ftp_show_switch,
"Shows the shortcut for the /switch folder." i18n::get("homebrew_folder_info",
"This is the folder that contains all your homebrew (NRO's)."_i18n "Shows the shortcut for the /switch folder."
"This is the folder that contains all your homebrew (NRO's)."
)
); );
} }
@@ -2473,13 +2519,15 @@ void App::DisplayMtpOptions(bool left_side) {
#if 0 #if 0
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Pre-allocate file"_i18n, App::GetApp()->m_mtp_allocate_file, "Pre-allocate file"_i18n, App::GetApp()->m_mtp_allocate_file,
"Enables pre-allocating the file size before writing.\n" i18n::get("prealloc_info",
"This speeds up file writes, however, this can cause timeouts if all these conditions are met:\n" "Enables pre-allocating the file size before writing.\n"
"- using Windows\n" "This speeds up file writes, however, this can cause timeouts if all these conditions are met:\n"
"- using emuMMC\n" "- using Windows\n"
"- transferring a large file (>1GB)\n\n" "- using emuMMC\n"
"This option should be left enabled, however if you use the above and experience timeouts, " "- transferring a large file (>1GB)\n\n"
"then try again with this option disabled."_i18n "This option should be left enabled, however if you use the above and experience timeouts, "
"then try again with this option disabled."
)
); );
#endif #endif
@@ -2490,9 +2538,11 @@ void App::DisplayMtpOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show microSD contents"_i18n, App::GetApp()->m_mtp_show_content_sd, "Show microSD contents"_i18n, App::GetApp()->m_mtp_show_content_sd,
"Shows the microSD contents folder.\n\n" i18n::get("microsd_contents_info",
"NOTE: This is not the normal microSD card storage, it is instead " "Shows the microSD contents folder.\n\n"
"the location where NCA's are stored. The normal microSD card is always mounted."_i18n "NOTE: This is not the normal microSD card storage, it is instead "
"the location where NCA's are stored. The normal microSD card is always mounted."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
@@ -2507,31 +2557,39 @@ void App::DisplayMtpOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show games"_i18n, App::GetApp()->m_mtp_show_games, "Show games"_i18n, App::GetApp()->m_mtp_show_games,
"Shows the games folder.\n\n" i18n::get("games_mtp_info",
"This folder contains all of your installed games, allowing you to create " "Shows the games folder.\n\n"
"backups over MTP!\n\n" "This folder contains all of your installed games, allowing you to create "
"NOTE: This folder is read-only. You cannot delete games over MTP."_i18n "backups over MTP!\n\n"
"NOTE: This folder is read-only. You cannot delete games over MTP."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show install"_i18n, App::GetApp()->m_mtp_show_install, "Show install"_i18n, App::GetApp()->m_mtp_show_install,
"Shows the install folder.\n\n" i18n::get("install_mtp_info",
"This folder is used for installing games via MTP.\n\n" "Shows the install folder.\n\n"
"NOTE: You must open the \"MTP Install\" menu when trying to install a game!"_i18n "This folder is used for installing games via MTP.\n\n"
"NOTE: You must open the \"MTP Install\" menu when trying to install a game!"
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show mounts"_i18n, App::GetApp()->m_mtp_show_mounts, "Show mounts"_i18n, App::GetApp()->m_mtp_show_mounts,
"Shows the mounts folder.\n\n" i18n::get("mounts_mtp_info",
"This folder is contains all of the mounts added to Sphaira, allowing you to acces them over MTP!\n" "Shows the mounts folder.\n\n"
"For example, you can access your SMB, WebDav and FTP mounts over MTP."_i18n "This folder is contains all of the mounts added to Sphaira, allowing you to acces them over MTP!\n"
"For example, you can access your SMB, WebDav and FTP mounts over MTP."
)
); );
options->Add<ui::SidebarEntryBool>( options->Add<ui::SidebarEntryBool>(
"Show DevNull"_i18n, App::GetApp()->m_mtp_show_speedtest, "Show DevNull"_i18n, App::GetApp()->m_mtp_show_speedtest,
"Shows the DevNull (Speed Test) folder.\n\n" i18n::get("usb_benchmark_info",
"This folder is used for benchmarking USB uploads. " "Shows the DevNull (Speed Test) folder.\n\n"
"This ia virtual folder, nothing is actally written to disk."_i18n "This folder is used for benchmarking USB uploads. "
"This ia virtual folder, nothing is actally written to disk."
)
); );
} }
@@ -2541,8 +2599,10 @@ void App::DisplayHddOptions(bool left_side) {
options->Add<ui::SidebarEntryBool>("Enable"_i18n, App::GetHddEnable(), [](bool& enable){ options->Add<ui::SidebarEntryBool>("Enable"_i18n, App::GetHddEnable(), [](bool& enable){
App::SetHddEnable(enable); App::SetHddEnable(enable);
}, "Enable mounting of connected USB/HDD devices. " }, i18n::get("mount_hdd_info",
"Connected devices can be used in the FileBrowser, as well as a backup location when dumping games and saves."_i18n "Enable mounting of connected USB/HDD devices. "
"Connected devices can be used in the FileBrowser, as well as a backup location when dumping games and saves."
)
); );
options->Add<ui::SidebarEntryBool>("HDD write protect"_i18n, App::GetWriteProtect(), [](bool& enable){ options->Add<ui::SidebarEntryBool>("HDD write protect"_i18n, App::GetWriteProtect(), [](bool& enable){

View File

@@ -285,7 +285,7 @@ Result DumpToUsb(ui::ProgressBox* pbox, BaseSource* source, std::span<const fs::
const auto file_size = source->GetSize(path); const auto file_size = source->GetSize(path);
pbox->SetImage(source->GetIcon(path)); pbox->SetImage(source->GetIcon(path));
pbox->SetTitle(source->GetName(path)); pbox->SetTitle(source->GetName(path));
pbox->NewTransfer("Waiting for USB connection..."); pbox->NewTransfer("Waiting for USB connection..."_i18n);
// wait until usb is ready. // wait until usb is ready.
while (true) { while (true) {

View File

@@ -14,42 +14,86 @@ yyjson_val* root{};
std::unordered_map<std::string, std::string> g_tr_cache{}; std::unordered_map<std::string, std::string> g_tr_cache{};
Mutex g_mutex{}; Mutex g_mutex{};
std::string get_internal(std::string_view str) { static WordOrder g_word_order = WordOrder::PhraseName;
static WordOrder DetectWordOrder(const std::string& lang) {
// SOV Language.
if (lang == "ja" || lang == "ko")
return WordOrder::NamePhrase;
// Default: SVO Language.
return WordOrder::PhraseName;
}
static std::string get_internal(std::string_view str, std::string_view fallback) {
SCOPED_MUTEX(&g_mutex); SCOPED_MUTEX(&g_mutex);
const std::string kkey = {str.data(), str.length()}; const std::string kkey{str.data(), str.length()};
if (auto it = g_tr_cache.find(kkey); it != g_tr_cache.end()) { if (auto it = g_tr_cache.find(kkey); it != g_tr_cache.end()) {
return it->second; return it->second;
} }
// add default entry // add default entry
const auto it = g_tr_cache.emplace(kkey, kkey).first; const auto it = g_tr_cache.emplace(kkey, std::string{fallback}).first;
if (!json || !root) { if (!json || !root) {
log_write("no json or root\n"); log_write("no json or root\n");
return kkey; return std::string{fallback};
} }
auto key = yyjson_obj_getn(root, str.data(), str.length()); yyjson_val* node = yyjson_obj_getn(root, str.data(), str.length());
if (!key) { if (!node && str != fallback) {
node = yyjson_obj_getn(root, fallback.data(), fallback.length());
if (node) {
log_write("\tfallback-key matched: [%s]\n", std::string(fallback).c_str());
}
}
if (!node) {
log_write("\tfailed to find key: [%s]\n", kkey.c_str()); log_write("\tfailed to find key: [%s]\n", kkey.c_str());
return kkey; return std::string{fallback};
} }
auto val = yyjson_get_str(key); std::string ret;
auto val_len = yyjson_get_len(key);
if (!val || !val_len) { // key > string
if (const char* val = yyjson_get_str(node)) {
size_t len = yyjson_get_len(node);
if (len) {
ret.assign(val, len);
}
}
// key > array of strings (multi-line)
if (ret.empty() && yyjson_is_arr(node)) {
size_t idx, max;
yyjson_val* elem;
yyjson_arr_foreach(node, idx, max, elem) {
if (idx) ret.push_back('\n');
if (yyjson_is_str(elem)) {
const char* s = yyjson_get_str(elem);
size_t len = yyjson_get_len(elem);
if (s && len) ret.append(s, len);
}
}
}
if (ret.empty()) {
log_write("\tfailed to get value: [%s]\n", kkey.c_str()); log_write("\tfailed to get value: [%s]\n", kkey.c_str());
return kkey; ret = std::string{fallback};
} }
// update entry in cache // update entry in cache
const std::string ret = {val, val_len};
g_tr_cache.insert_or_assign(it, kkey, ret); g_tr_cache.insert_or_assign(it, kkey, ret);
return ret; return ret;
} }
static std::string get_internal(std::string_view str) {
return get_internal(str, str);
}
} // namespace } // namespace
bool init(long index) { bool init(long index) {
@@ -76,14 +120,15 @@ bool init(long index) {
case 4: setLanguage = SetLanguage_DE; break; // "German" case 4: setLanguage = SetLanguage_DE; break; // "German"
case 5: setLanguage = SetLanguage_IT; break; // "Italian" case 5: setLanguage = SetLanguage_IT; break; // "Italian"
case 6: setLanguage = SetLanguage_ES; break; // "Spanish" case 6: setLanguage = SetLanguage_ES; break; // "Spanish"
case 7: setLanguage = SetLanguage_ZHCN; break; // "Chinese" case 7: setLanguage = SetLanguage_ZHCN; break; // "Chinese (Simplified)"
case 8: setLanguage = SetLanguage_KO; break; // "Korean" case 8: setLanguage = SetLanguage_KO; break; // "Korean"
case 9: setLanguage = SetLanguage_NL; break; // "Dutch" case 9: setLanguage = SetLanguage_NL; break; // "Dutch"
case 10: setLanguage = SetLanguage_PT; break; // "Portuguese" case 10: setLanguage = SetLanguage_PT; break; // "Portuguese"
case 11: setLanguage = SetLanguage_RU; break; // "Russian" case 11: setLanguage = SetLanguage_RU; break; // "Russian"
case 12: lang_name = "se"; break; // "Swedish" case 12: setLanguage = SetLanguage_ZHTW; break; // "Chinese (Traditional)"
case 13: lang_name = "vi"; break; // "Vietnamese" case 13: lang_name = "se"; break; // "Swedish"
case 14: lang_name = "uk"; break; // "Ukrainian" case 14: lang_name = "vi"; break; // "Vietnamese"
case 15: lang_name = "uk"; break; // "Ukrainian"
} }
switch (setLanguage) { switch (setLanguage) {
@@ -92,15 +137,17 @@ bool init(long index) {
case SetLanguage_DE: lang_name = "de"; break; case SetLanguage_DE: lang_name = "de"; break;
case SetLanguage_IT: lang_name = "it"; break; case SetLanguage_IT: lang_name = "it"; break;
case SetLanguage_ES: lang_name = "es"; break; case SetLanguage_ES: lang_name = "es"; break;
case SetLanguage_ZHCN: lang_name = "zh"; break; case SetLanguage_ZHCN: lang_name = "zh-CN"; break;
case SetLanguage_KO: lang_name = "ko"; break; case SetLanguage_KO: lang_name = "ko"; break;
case SetLanguage_NL: lang_name = "nl"; break; case SetLanguage_NL: lang_name = "nl"; break;
case SetLanguage_PT: lang_name = "pt"; break; case SetLanguage_PT: lang_name = "pt"; break;
case SetLanguage_RU: lang_name = "ru"; break; case SetLanguage_RU: lang_name = "ru"; break;
case SetLanguage_ZHTW: lang_name = "zh"; break; case SetLanguage_ZHTW: lang_name = "zh-TW"; break;
default: break; default: break;
} }
g_word_order = DetectWordOrder(lang_name);
const fs::FsPath sdmc_path = "/config/sphaira/i18n/" + lang_name + ".json"; const fs::FsPath sdmc_path = "/config/sphaira/i18n/" + lang_name + ".json";
const fs::FsPath romfs_path = "romfs:/i18n/" + lang_name + ".json"; const fs::FsPath romfs_path = "romfs:/i18n/" + lang_name + ".json";
fs::FsPath path = sdmc_path; fs::FsPath path = sdmc_path;
@@ -138,6 +185,7 @@ void exit() {
if (json) { if (json) {
yyjson_doc_free(json); yyjson_doc_free(json);
json = nullptr; json = nullptr;
root = nullptr;
} }
g_i18n_data.clear(); g_i18n_data.clear();
} }
@@ -146,12 +194,40 @@ std::string get(std::string_view str) {
return get_internal(str); return get_internal(str);
} }
std::string get(std::string_view str, std::string_view fallback) {
return get_internal(str, fallback);
}
// Reorders sentence structure based on locale.
WordOrder GetWordOrder() {
return g_word_order;
}
bool WordOrderLocale() {
return g_word_order == WordOrder::NamePhrase;
}
std::string Reorder(std::string_view phrase, std::string_view name) {
std::string p = i18n::get(phrase);
std::string out;
out.reserve(phrase.length() + name.length());
if (g_word_order == WordOrder::NamePhrase) {
out.append(name);
out.append(p);
} else {
out.append(p);
out.append(name);
}
return out;
}
} // namespace sphaira::i18n } // namespace sphaira::i18n
namespace literals { namespace literals {
std::string operator""_i18n(const char* str, size_t len) { std::string operator""_i18n(const char* str, size_t len) {
return sphaira::i18n::get_internal({str, len}); return sphaira::i18n::get({str, len});
} }
} // namespace literals } // namespace literals

View File

@@ -2,6 +2,7 @@
#include "fs.hpp" #include "fs.hpp"
#include "app.hpp" #include "app.hpp"
#include "utils/devoptab.hpp" #include "utils/devoptab.hpp"
#include "i18n.hpp"
#include <cstring> #include <cstring>
@@ -29,7 +30,7 @@ auto GetStdio(bool write) -> StdioEntries {
} }
if (e.flags & FsEntryFlag::FsEntryFlag_ReadOnly) { if (e.flags & FsEntryFlag::FsEntryFlag_ReadOnly) {
e.name += " (Read Only)"; e.name += i18n::get(" (Read Only)");
} }
out.emplace_back(e); out.emplace_back(e);

View File

@@ -8,6 +8,7 @@
#include "yati/nx/ncm.hpp" #include "yati/nx/ncm.hpp"
#include "utils/thread.hpp" #include "utils/thread.hpp"
#include "i18n.hpp"
#include <cstring> #include <cstring>
#include <atomic> #include <atomic>
@@ -113,8 +114,8 @@ auto& GetNcmEntry(u8 storage_id) {
void FakeNacpEntry(ThreadResultData* e) { void FakeNacpEntry(ThreadResultData* e) {
e->status = NacpLoadStatus::Error; e->status = NacpLoadStatus::Error;
// fake the nacp entry // fake the nacp entry
std::strcpy(e->lang.name, "Corrupted"); std::strcpy(e->lang.name, "Corrupted"_i18n.c_str());
std::strcpy(e->lang.author, "Corrupted"); std::strcpy(e->lang.author, "Corrupted"_i18n.c_str());
} }
Result LoadControlManual(u64 id, NacpStruct& nacp, ThreadResultData* data) { Result LoadControlManual(u64 id, NacpStruct& nacp, ThreadResultData* data) {

View File

@@ -354,7 +354,7 @@ auto UninstallApp(ProgressBox* pbox, const Entry& entry) -> Result {
// remove directory, this will also delete manifest and info // remove directory, this will also delete manifest and info
const auto dir = BuildPackageCachePath(entry); const auto dir = BuildPackageCachePath(entry);
pbox->NewTransfer("Removing "_i18n + dir.toString()); pbox->NewTransfer(i18n::Reorder("Removing ", dir.toString()));
if (R_FAILED(fs.DeleteDirectoryRecursively(dir))) { if (R_FAILED(fs.DeleteDirectoryRecursively(dir))) {
log_write("failed to delete folder: %s\n", dir.s); log_write("failed to delete folder: %s\n", dir.s);
} else { } else {
@@ -384,7 +384,7 @@ auto InstallApp(ProgressBox* pbox, const Entry& entry) -> Result {
// 1. download the zip // 1. download the zip
if (!pbox->ShouldExit()) { if (!pbox->ShouldExit()) {
pbox->NewTransfer("Downloading "_i18n + entry.title); pbox->NewTransfer(i18n::Reorder("Downloading ", entry.title));
log_write("starting download\n"); log_write("starting download\n");
const auto url = BuildZipUrl(entry); const auto url = BuildZipUrl(entry);
@@ -739,7 +739,7 @@ void EntryMenu::Draw(NVGcontext* vg, Theme* theme) {
text_start_y += text_inc_y; text_start_y += text_inc_y;
gfx::drawTextArgs(vg, text_start_x, text_start_y, font_size, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "updated: %s"_i18n.c_str(), m_entry.updated.c_str()); gfx::drawTextArgs(vg, text_start_x, text_start_y, font_size, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "updated: %s"_i18n.c_str(), m_entry.updated.c_str());
text_start_y += text_inc_y; text_start_y += text_inc_y;
gfx::drawTextArgs(vg, text_start_x, text_start_y, font_size, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "category: %s"_i18n.c_str(), m_entry.category.c_str()); gfx::drawTextArgs(vg, text_start_x, text_start_y, font_size, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "category: %s"_i18n.c_str(), i18n::get(m_entry.category).c_str());
text_start_y += text_inc_y; text_start_y += text_inc_y;
gfx::drawTextArgs(vg, text_start_x, text_start_y, font_size, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "extracted: %s"_i18n.c_str(), utils::formatSizeStorage(m_entry.extracted).c_str()); gfx::drawTextArgs(vg, text_start_x, text_start_y, font_size, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "extracted: %s"_i18n.c_str(), utils::formatSizeStorage(m_entry.extracted).c_str());
text_start_y += text_inc_y; text_start_y += text_inc_y;
@@ -806,7 +806,7 @@ void EntryMenu::UpdateOptions() {
App::PushErrorBox(rc, "Failed to, TODO: add message here"_i18n); App::PushErrorBox(rc, "Failed to, TODO: add message here"_i18n);
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {
App::Notify("Downloaded "_i18n + m_entry.title); App::Notify(i18n::Reorder("Downloaded ", m_entry.title));
m_entry.status = EntryStatus::Installed; m_entry.status = EntryStatus::Installed;
m_menu.SetDirty(); m_menu.SetDirty();
UpdateOptions(); UpdateOptions();
@@ -822,7 +822,7 @@ void EntryMenu::UpdateOptions() {
App::PushErrorBox(rc, "Failed to, TODO: add message here"_i18n); App::PushErrorBox(rc, "Failed to, TODO: add message here"_i18n);
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {
App::Notify("Removed "_i18n + m_entry.title); App::Notify(i18n::Reorder("Removed ", m_entry.title));
m_entry.status = EntryStatus::Get; m_entry.status = EntryStatus::Get;
m_menu.SetDirty(); m_menu.SetDirty();
UpdateOptions(); UpdateOptions();
@@ -833,7 +833,7 @@ void EntryMenu::UpdateOptions() {
const Option install_option{"Install"_i18n, install}; const Option install_option{"Install"_i18n, install};
const Option update_option{"Update"_i18n, install}; const Option update_option{"Update"_i18n, install};
const Option launch_option{"Launch"_i18n, launch}; const Option launch_option{"Launch"_i18n, launch};
const Option remove_option{"Remove"_i18n, "Completely remove "_i18n + m_entry.title + '?', uninstall}; const Option remove_option{"Remove"_i18n, i18n::Reorder("Completely remove ", m_entry.title) + '?', uninstall};
m_options.clear(); m_options.clear();
switch (m_entry.status) { switch (m_entry.status) {

View File

@@ -86,7 +86,7 @@ constexpr FsEntry FS_ENTRIES[]{
}; };
constexpr std::string_view AUDIO_EXTENSIONS[] = { constexpr std::string_view AUDIO_EXTENSIONS[] = {
"mp3", "ogg", "flac", "wav", "aac" "ac3", "aif", "asf", "bfwav", "mp3", "ogg", "flac", "wav", "aac", "ac3", "aif", "asf", "bfwav",
"bfsar", "bfstm", "bwav", "bfsar", "bfstm", "bwav",
}; };
constexpr std::string_view VIDEO_EXTENSIONS[] = { constexpr std::string_view VIDEO_EXTENSIONS[] = {
@@ -315,23 +315,23 @@ ForwarderForm::ForwarderForm(const FileAssocEntry& assoc, const RomDatabaseIndex
const auto icon = m_assoc.path; const auto icon = m_assoc.path;
m_name = this->Add<SidebarEntryTextInput>( m_name = this->Add<SidebarEntryTextInput>(
"Name", name, "", "", -1, sizeof(NacpLanguageEntry::name) - 1, "Name"_i18n, name, "", "", -1, sizeof(NacpLanguageEntry::name) - 1,
"Set the name of the application"_i18n "Set the name of the application"_i18n
); );
m_author = this->Add<SidebarEntryTextInput>( m_author = this->Add<SidebarEntryTextInput>(
"Author", author, "", "", -1, sizeof(NacpLanguageEntry::author) - 1, "Author"_i18n, author, "", "", -1, sizeof(NacpLanguageEntry::author) - 1,
"Set the author of the application"_i18n "Set the author of the application"_i18n
); );
m_version = this->Add<SidebarEntryTextInput>( m_version = this->Add<SidebarEntryTextInput>(
"Version", version, "", "", -1, sizeof(NacpStruct::display_version) - 1, "Version"_i18n, version, "", "", -1, sizeof(NacpStruct::display_version) - 1,
"Set the display version of the application"_i18n "Set the display version of the application"_i18n
); );
const std::vector<std::string> filters{"nro", "png", "jpg"}; const std::vector<std::string> filters{"nro", "png", "jpg"};
m_icon = this->Add<SidebarEntryFilePicker>( m_icon = this->Add<SidebarEntryFilePicker>(
"Icon", icon, filters, "Icon"_i18n, icon, filters,
"Set the path to the icon for the forwarder"_i18n "Set the path to the icon for the forwarder"_i18n
); );
@@ -362,7 +362,7 @@ ForwarderForm::ForwarderForm(const FileAssocEntry& assoc, const RomDatabaseIndex
// try and read icon file into memory, bail if this fails. // try and read icon file into memory, bail if this fails.
const auto rc = fs::FsStdio().read_entire_file(m_icon->GetValue(), config.icon); const auto rc = fs::FsStdio().read_entire_file(m_icon->GetValue(), config.icon);
if (R_FAILED(rc)) { if (R_FAILED(rc)) {
App::PushErrorBox(rc, "Failed to load icon"); App::PushErrorBox(rc, "Failed to load icon"_i18n);
return; return;
} }
} }
@@ -721,7 +721,7 @@ void FsView::OnClick() {
} else { } else {
// special case for nro // special case for nro
if (IsSd() && IsSamePath(entry.GetExtension(), "nro")) { if (IsSd() && IsSamePath(entry.GetExtension(), "nro")) {
App::Push<OptionBox>("Launch "_i18n + entry.GetName() + '?', App::Push<OptionBox>(i18n::Reorder("Launch ", entry.GetName()) + '?',
"No"_i18n, "Launch"_i18n, 1, [this](auto op_index){ "No"_i18n, "Launch"_i18n, 1, [this](auto op_index){
if (op_index && *op_index) { if (op_index && *op_index) {
nro_launch(GetNewPathCurrent()); nro_launch(GetNewPathCurrent());
@@ -872,7 +872,7 @@ void FsView::InstallFiles() {
App::Push<ui::ProgressBox>(0, "Installing "_i18n, "", [this, targets](auto pbox) -> Result { App::Push<ui::ProgressBox>(0, "Installing "_i18n, "", [this, targets](auto pbox) -> Result {
for (auto& e : targets) { for (auto& e : targets) {
R_TRY(yati::InstallFromFile(pbox, m_fs.get(), GetNewPath(e))); R_TRY(yati::InstallFromFile(pbox, m_fs.get(), GetNewPath(e)));
App::Notify("Installed "_i18n + e.GetName()); App::Notify(i18n::Reorder("Installed ", e.GetName()));
} }
R_SUCCEED(); R_SUCCEED();
@@ -1255,7 +1255,7 @@ void FsView::OnDeleteCallback() {
const auto full_path = GetNewPath(selected.m_path, p.name); const auto full_path = GetNewPath(selected.m_path, p.name);
if (p.IsDir()) { if (p.IsDir()) {
pbox->NewTransfer("Scanning "_i18n + full_path); pbox->NewTransfer(i18n::Reorder("Scanning ", full_path));
R_TRY(get_collections(src_fs, full_path, p.name, collections)); R_TRY(get_collections(src_fs, full_path, p.name, collections));
} }
} }
@@ -1298,7 +1298,7 @@ void FsView::OnPasteCallback() {
const auto dst_path = GetNewPath(m_path, p.name); const auto dst_path = GetNewPath(m_path, p.name);
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Pasting "_i18n + src_path); pbox->NewTransfer(i18n::Reorder("Pasting ", src_path));
if (p.IsDir()) { if (p.IsDir()) {
m_fs->RenameDirectory(src_path, dst_path); m_fs->RenameDirectory(src_path, dst_path);
@@ -1333,7 +1333,7 @@ void FsView::OnPasteCallback() {
const auto full_path = GetNewPath(selected.m_path, p.name); const auto full_path = GetNewPath(selected.m_path, p.name);
if (p.IsDir()) { if (p.IsDir()) {
pbox->NewTransfer("Scanning "_i18n + full_path); pbox->NewTransfer(i18n::Reorder("Scanning ", full_path));
R_TRY(get_collections(src_fs, full_path, p.name, collections)); R_TRY(get_collections(src_fs, full_path, p.name, collections));
} }
} }
@@ -1347,11 +1347,11 @@ void FsView::OnPasteCallback() {
if (p.IsDir()) { if (p.IsDir()) {
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Creating "_i18n + dst_path); pbox->NewTransfer(i18n::Reorder("Creating ", dst_path));
m_fs->CreateDirectory(dst_path); m_fs->CreateDirectory(dst_path);
} else { } else {
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Copying "_i18n + src_path); pbox->NewTransfer(i18n::Reorder("Copying ", src_path));
R_TRY(pbox->CopyFile(src_fs, m_fs.get(), src_path, dst_path, is_same_fs)); R_TRY(pbox->CopyFile(src_fs, m_fs.get(), src_path, dst_path, is_same_fs));
R_TRY(on_paste_file(src_path, dst_path)); R_TRY(on_paste_file(src_path, dst_path));
} }
@@ -1369,7 +1369,7 @@ void FsView::OnPasteCallback() {
const auto dst_path = GetNewPath(base_dst_path, p.name); const auto dst_path = GetNewPath(base_dst_path, p.name);
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Creating "_i18n + dst_path); pbox->NewTransfer(i18n::Reorder("Creating ", dst_path));
m_fs->CreateDirectory(dst_path); m_fs->CreateDirectory(dst_path);
} }
@@ -1381,7 +1381,7 @@ void FsView::OnPasteCallback() {
const auto dst_path = GetNewPath(base_dst_path, p.name); const auto dst_path = GetNewPath(base_dst_path, p.name);
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Copying "_i18n + src_path); pbox->NewTransfer(i18n::Reorder("Copying ", src_path));
R_TRY(pbox->CopyFile(src_fs, m_fs.get(), src_path, dst_path, is_same_fs)); R_TRY(pbox->CopyFile(src_fs, m_fs.get(), src_path, dst_path, is_same_fs));
R_TRY(on_paste_file(src_path, dst_path)); R_TRY(on_paste_file(src_path, dst_path));
} }
@@ -1514,7 +1514,7 @@ Result FsView::DeleteAllCollections(ProgressBox* pbox, fs::Fs* fs, const FsDirCo
const auto full_path = FsView::GetNewPath(c.path, p.name); const auto full_path = FsView::GetNewPath(c.path, p.name);
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Deleting "_i18n + full_path.toString()); pbox->NewTransfer(i18n::Reorder("Deleting ", full_path.toString()));
if ((mode & FsDirOpenMode_ReadDirs) && p.type == FsDirEntryType_Dir) { if ((mode & FsDirOpenMode_ReadDirs) && p.type == FsDirEntryType_Dir) {
log_write("deleting dir: %s\n", full_path.s); log_write("deleting dir: %s\n", full_path.s);
R_TRY(fs->DeleteDirectory(full_path)); R_TRY(fs->DeleteDirectory(full_path));
@@ -1545,7 +1545,7 @@ static Result DeleteAllCollectionsWithSelected(ProgressBox* pbox, fs::Fs* fs, co
const auto full_path = FsView::GetNewPath(selected.m_path, p.name); const auto full_path = FsView::GetNewPath(selected.m_path, p.name);
pbox->SetTitle(p.name); pbox->SetTitle(p.name);
pbox->NewTransfer("Deleting "_i18n + full_path.toString()); pbox->NewTransfer(i18n::Reorder("Deleting ", full_path.toString()));
if ((mode & FsDirOpenMode_ReadDirs) && p.type == FsDirEntryType_Dir) { if ((mode & FsDirOpenMode_ReadDirs) && p.type == FsDirEntryType_Dir) {
log_write("deleting dir: %s\n", full_path.s); log_write("deleting dir: %s\n", full_path.s);
@@ -1805,7 +1805,7 @@ void FsView::DisplayOptions() {
options->Add<SidebarEntryCallback>("Extract to..."_i18n, [this](){ options->Add<SidebarEntryCallback>("Extract to..."_i18n, [this](){
std::string out; std::string out;
if (R_SUCCEEDED(swkbd::ShowText(out, "Extract path", "Enter the path to the folder to extract into", fs::AppendPath(m_path, ""))) && !out.empty()) { if (R_SUCCEEDED(swkbd::ShowText(out, "Extract path", "Enter the path to the folder to extract into"_i18n.c_str(), fs::AppendPath(m_path, ""))) && !out.empty()) {
UnzipFiles(out); UnzipFiles(out);
} }
}); });
@@ -1823,7 +1823,7 @@ void FsView::DisplayOptions() {
options->Add<SidebarEntryCallback>("Compress to..."_i18n, [this](){ options->Add<SidebarEntryCallback>("Compress to..."_i18n, [this](){
std::string out; std::string out;
if (R_SUCCEEDED(swkbd::ShowText(out, "Compress path", "Enter the path to the folder to compress into", m_path)) && !out.empty()) { if (R_SUCCEEDED(swkbd::ShowText(out, "Compress path", "Enter the path to the folder to compress into"_i18n.c_str(), m_path)) && !out.empty()) {
ZipFiles(out); ZipFiles(out);
} }
}); });

View File

@@ -201,7 +201,7 @@ void FreeEntry(NVGcontext* vg, Entry& e) {
void LaunchEntry(const Entry& e) { void LaunchEntry(const Entry& e) {
const auto rc = appletRequestLaunchApplication(e.app_id, nullptr); const auto rc = appletRequestLaunchApplication(e.app_id, nullptr);
Notify(rc, "Failed to launch application"); Notify(rc, "Failed to launch application"_i18n);
} }
Result CreateSave(u64 app_id, AccountUid uid) { Result CreateSave(u64 app_id, AccountUid uid) {
@@ -372,7 +372,7 @@ Menu::Menu(u32 flags) : grid::Menu{"Games"_i18n, flags} {
LoadControlEntry(e, true); LoadControlEntry(e, true);
App::Push<OptionBox>( App::Push<OptionBox>(
"Launch "_i18n + e.GetName(), i18n::Reorder("Launch ", e.GetName()) + '?',
"Back"_i18n, "Launch"_i18n, 1, [this, &e](auto op_index){ "Back"_i18n, "Launch"_i18n, 1, [this, &e](auto op_index){
if (op_index && *op_index) { if (op_index && *op_index) {
LaunchEntry(e); LaunchEntry(e);
@@ -397,7 +397,7 @@ Menu::Menu(u32 flags) : grid::Menu{"Games"_i18n, flags} {
// completely deletes the application record and all data. // completely deletes the application record and all data.
options->Add<SidebarEntryCallback>("Delete"_i18n, [this](){ options->Add<SidebarEntryCallback>("Delete"_i18n, [this](){
const auto buf = "Are you sure you want to delete "_i18n + m_entries[m_index].GetName() + "?"; const auto buf = i18n::Reorder("Are you sure you want to delete ", m_entries[m_index].GetName()) + "?";
App::Push<OptionBox>( App::Push<OptionBox>(
buf, buf,
"Back"_i18n, "Delete"_i18n, 0, [this](auto op_index){ "Back"_i18n, "Delete"_i18n, 0, [this](auto op_index){
@@ -839,7 +839,7 @@ void DeleteMetaEntries(u64 app_id, int image, const std::string& name, const tit
R_SUCCEED(); R_SUCCEED();
}, [](Result rc){ }, [](Result rc){
App::PushErrorBox(rc, "Failed to delete meta entry"); App::PushErrorBox(rc, "Failed to delete meta entry"_i18n);
}); });
} }

View File

@@ -181,23 +181,23 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
char req_vers_buf[128]; char req_vers_buf[128];
const auto ver = e.content_meta.extened.application.required_system_version; const auto ver = e.content_meta.extened.application.required_system_version;
switch (e.status.meta_type) { switch (e.status.meta_type) {
case NcmContentMetaType_Application: std::snprintf(req_vers_buf, sizeof(req_vers_buf), "Required System Version: %u.%u.%u", SYSVER_MAJOR(ver), SYSVER_MINOR(ver), SYSVER_MICRO(ver)); break; case NcmContentMetaType_Application: std::snprintf(req_vers_buf, sizeof(req_vers_buf), "Required System Version: %u.%u.%u"_i18n.c_str(), SYSVER_MAJOR(ver), SYSVER_MINOR(ver), SYSVER_MICRO(ver)); break;
case NcmContentMetaType_Patch: std::snprintf(req_vers_buf, sizeof(req_vers_buf), "Required System Version: %u.%u.%u", SYSVER_MAJOR(ver), SYSVER_MINOR(ver), SYSVER_MICRO(ver)); break; case NcmContentMetaType_Patch: std::snprintf(req_vers_buf, sizeof(req_vers_buf), "Required System Version: %u.%u.%u"_i18n.c_str(), SYSVER_MAJOR(ver), SYSVER_MINOR(ver), SYSVER_MICRO(ver)); break;
case NcmContentMetaType_AddOnContent: std::snprintf(req_vers_buf, sizeof(req_vers_buf), "Required Application Version: v%u", ver >> 16); break; case NcmContentMetaType_AddOnContent: std::snprintf(req_vers_buf, sizeof(req_vers_buf), "Required Application Version: v%u"_i18n.c_str(), ver >> 16); break;
} }
if (e.missing_count) { if (e.missing_count) {
gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Content Count: %u (%u missing)", e.content_meta.header.content_count, e.missing_count); gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Content Count: %u (%u missing)"_i18n.c_str(), e.content_meta.header.content_count, e.missing_count);
} else { } else {
gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Content Count: %u", e.content_meta.header.content_count); gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Content Count: %u"_i18n.c_str(), e.content_meta.header.content_count);
} }
gfx::drawTextArgs(vg, 50, 455, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Ticket: %s", TICKET_STR[e.ticket_type]); gfx::drawTextArgs(vg, 50, 455, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Ticket: %s"_i18n.c_str(), i18n::get(TICKET_STR[e.ticket_type]).c_str());
gfx::drawTextArgs(vg, 50, 495, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Key Generation: %u (%s)", e.key_gen, nca::GetKeyGenStr(e.key_gen)); gfx::drawTextArgs(vg, 50, 495, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Key Generation: %u (%s)"_i18n.c_str(), e.key_gen, nca::GetKeyGenStr(e.key_gen));
gfx::drawTextArgs(vg, 50, 535, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s", req_vers_buf); gfx::drawTextArgs(vg, 50, 535, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s", req_vers_buf);
if (e.status.meta_type == NcmContentMetaType_Application || e.status.meta_type == NcmContentMetaType_Patch) { if (e.status.meta_type == NcmContentMetaType_Application || e.status.meta_type == NcmContentMetaType_Patch) {
gfx::drawTextArgs(vg, 50, 575, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Display Version: %s", e.nacp.display_version); gfx::drawTextArgs(vg, 50, 575, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Display Version: %s"_i18n.c_str(), e.nacp.display_version);
} }
nvgRestore(vg); nvgRestore(vg);
@@ -224,7 +224,7 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
} }
} }
gfx::drawTextArgs(vg, x + text_xoffset, y + (h / 2.f), 20.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(text_id), "%s", ncm::GetReadableMetaTypeStr(e.status.meta_type)); gfx::drawTextArgs(vg, x + text_xoffset, y + (h / 2.f), 20.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(text_id), "%s", i18n::get(ncm::GetReadableMetaTypeStr(e.status.meta_type)).c_str());
gfx::drawTextArgs(vg, x + text_xoffset + 150, y + (h / 2.f), 20.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(text_id), "%016lX", e.status.application_id); gfx::drawTextArgs(vg, x + text_xoffset + 150, y + (h / 2.f), 20.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(text_id), "%016lX", e.status.application_id);
gfx::drawTextArgs(vg, x + text_xoffset + 400, y + (h / 2.f), 20.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(text_id), "v%u (%u)", e.status.version >> 16, e.status.version); gfx::drawTextArgs(vg, x + text_xoffset + 400, y + (h / 2.f), 20.f, NVG_ALIGN_LEFT | NVG_ALIGN_MIDDLE, theme->GetColour(text_id), "v%u (%u)", e.status.version >> 16, e.status.version);
@@ -233,7 +233,7 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
GetNcmSizeOfMetaStatus(e); GetNcmSizeOfMetaStatus(e);
} }
gfx::drawTextArgs(vg, x + w - text_xoffset, y + (h / 2.f) + 3, 16.f, NVG_ALIGN_RIGHT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT_INFO), "%s", ncm::GetReadableStorageIdStr(e.status.storageID)); gfx::drawTextArgs(vg, x + w - text_xoffset, y + (h / 2.f) + 3, 16.f, NVG_ALIGN_RIGHT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT_INFO), "%s", i18n::get(ncm::GetReadableStorageIdStr(e.status.storageID)).c_str());
gfx::drawTextArgs(vg, x + w - text_xoffset, y + (h / 2.f) - 3, 16.f, NVG_ALIGN_RIGHT | NVG_ALIGN_BOTTOM, theme->GetColour(ThemeEntryID_TEXT_INFO), "%s", utils::formatSizeStorage(e.size).c_str()); gfx::drawTextArgs(vg, x + w - text_xoffset, y + (h / 2.f) - 3, 16.f, NVG_ALIGN_RIGHT | NVG_ALIGN_BOTTOM, theme->GetColour(ThemeEntryID_TEXT_INFO), "%s", utils::formatSizeStorage(e.size).c_str());
if (e.selected) { if (e.selected) {

View File

@@ -205,9 +205,10 @@ Menu::Menu(Entry& entry, const meta::MetaEntry& meta_entry)
} }
} }
}); });
}, "Performs sha256 hash over the NCA to check if it's valid.\n\n" }, i18n::get("nca_validate_info",
"NOTE: This only detects if the hash is missmatched, it does not validate if \ "Performs sha256 hash over the NCA to check if it's valid.\n\n"
the content has been modified at all."_i18n); "NOTE: This only detects if the hash is missmatched, it does not validate if "
"the content has been modified at all."));
options->Add<SidebarEntryCallback>("Verify NCA fixed key"_i18n, [this](){ options->Add<SidebarEntryCallback>("Verify NCA fixed key"_i18n, [this](){
if (R_FAILED(nca::VerifyFixedKey(GetEntry().header))) { if (R_FAILED(nca::VerifyFixedKey(GetEntry().header))) {
@@ -215,9 +216,10 @@ Menu::Menu(Entry& entry, const meta::MetaEntry& meta_entry)
} else { } else {
App::Push<OptionBox>("NCA fixed key is valid."_i18n, "OK"_i18n); App::Push<OptionBox>("NCA fixed key is valid."_i18n, "OK"_i18n);
} }
}, "Performs RSA NCA fixed key verification. "\ }, i18n::get("nca_fixedkey_info",
"This is a hash over the NCA header. It is used to verify that the header has not been modified. "\ "Performs RSA NCA fixed key verification. "
"The header is signed by nintendo, thus it cannot be forged, and is reliable to detect modified NCA headers (such as NSP/XCI converts)."_i18n); "This is a hash over the NCA header. It is used to verify that the header has not been modified. "
"The header is signed by nintendo, thus it cannot be forged, and is reliable to detect modified NCA headers (such as NSP/XCI converts)."));
} }
}}) }})
); );
@@ -307,16 +309,16 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
gfx::drawImage(vg, 90, 130, 256, 256, m_entry.image ? m_entry.image : App::GetDefaultImage()); gfx::drawImage(vg, 90, 130, 256, 256, m_entry.image ? m_entry.image : App::GetDefaultImage());
if (e.header.magic != NCA3_MAGIC) { if (e.header.magic != NCA3_MAGIC) {
gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Failed to decrypt NCA"); gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Failed to decrypt NCA"_i18n.c_str());
} else { } else {
nvgSave(vg); nvgSave(vg);
nvgIntersectScissor(vg, 50, 90, 325, 555); nvgIntersectScissor(vg, 50, 90, 325, 555);
gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Application Type: %s", ncm::GetReadableMetaTypeStr(m_meta_entry.status.meta_type)); gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Application Type: %s"_i18n.c_str(), i18n::get(ncm::GetReadableMetaTypeStr(m_meta_entry.status.meta_type)).c_str());
gfx::drawTextArgs(vg, 50, 455, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Content Type: %s", nca::GetContentTypeStr(e.header.content_type)); gfx::drawTextArgs(vg, 50, 455, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Content Type: %s"_i18n.c_str(), nca::GetContentTypeStr(e.header.content_type));
gfx::drawTextArgs(vg, 50, 495, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Distribution Type: %s", nca::GetDistributionTypeStr(e.header.distribution_type)); gfx::drawTextArgs(vg, 50, 495, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Distribution Type: %s"_i18n.c_str(), nca::GetDistributionTypeStr(e.header.distribution_type));
gfx::drawTextArgs(vg, 50, 535, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Program ID: %016lX", e.header.program_id); gfx::drawTextArgs(vg, 50, 535, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Program ID: %016lX"_i18n.c_str(), e.header.program_id);
gfx::drawTextArgs(vg, 50, 575, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Key Generation: %u (%s)", e.header.GetKeyGeneration(), nca::GetKeyGenStr(e.header.GetKeyGeneration())); gfx::drawTextArgs(vg, 50, 575, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Key Generation: %u (%s)"_i18n.c_str(), e.header.GetKeyGeneration(), nca::GetKeyGenStr(e.header.GetKeyGeneration()));
gfx::drawTextArgs(vg, 50, 615, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "SDK Version: %u.%u.%u.%u", e.header.sdk_major, e.header.sdk_minor, e.header.sdk_micro, e.header.sdk_revision); gfx::drawTextArgs(vg, 50, 615, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "SDK Version: %u.%u.%u.%u"_i18n.c_str(), e.header.sdk_major, e.header.sdk_minor, e.header.sdk_micro, e.header.sdk_revision);
nvgRestore(vg); nvgRestore(vg);
} }

View File

@@ -718,10 +718,10 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
nvgIntersectScissor(vg, 50, 90, 325, 555); nvgIntersectScissor(vg, 50, 90, 325, 555);
gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s", e.lang_entry.name); gfx::drawTextArgs(vg, 50, 415, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s", e.lang_entry.name);
gfx::drawTextArgs(vg, 50, 455, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s", e.lang_entry.author); gfx::drawTextArgs(vg, 50, 455, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "%s", e.lang_entry.author);
gfx::drawTextArgs(vg, 50, 495, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "App-ID: 0%lX", e.app_id); gfx::drawTextArgs(vg, 50, 495, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "App-ID: 0%lX"_i18n.c_str(), e.app_id);
gfx::drawTextArgs(vg, 50, 535, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Key-Gen: %u (%s)", e.key_gen, nca::GetKeyGenStr(e.key_gen)); gfx::drawTextArgs(vg, 50, 535, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Key-Gen: %u (%s)"_i18n.c_str(), e.key_gen, nca::GetKeyGenStr(e.key_gen));
gfx::drawTextArgs(vg, 50, 575, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Size: %.2f GB", (double)size / 0x40000000); gfx::drawTextArgs(vg, 50, 575, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Size: %.2f GB"_i18n.c_str(), (double)size / 0x40000000);
gfx::drawTextArgs(vg, 50, 615, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Base: %zu Patch: %zu Addon: %zu Data: %zu", e.application.size(), e.patch.size(), e.add_on.size(), e.data_patch.size()); gfx::drawTextArgs(vg, 50, 615, 18.f, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "Base: %zu Patch: %zu Addon: %zu Data: %zu"_i18n.c_str(), e.application.size(), e.patch.size(), e.add_on.size(), e.data_patch.size());
nvgRestore(vg); nvgRestore(vg);
} }
@@ -1098,7 +1098,7 @@ void Menu::OnChangeIndex(s64 new_index) {
m_entry_index = new_index; m_entry_index = new_index;
if (m_entries.empty()) { if (m_entries.empty()) {
this->SetSubHeading("No GameCard inserted"); this->SetSubHeading("No GameCard inserted"_i18n);
} else { } else {
const auto index = m_entries.empty() ? 0 : m_entry_index + 1; const auto index = m_entries.empty() ? 0 : m_entry_index + 1;
this->SetSubHeading(std::to_string(index) + " / " + std::to_string(m_entries.size())); this->SetSubHeading(std::to_string(index) + " / " + std::to_string(m_entries.size()));

View File

@@ -108,7 +108,7 @@ auto DownloadApp(ProgressBox* pbox, const GhApiAsset& gh_asset, const AssetEntry
// 2. download the asset // 2. download the asset
if (!pbox->ShouldExit()) { if (!pbox->ShouldExit()) {
pbox->NewTransfer("Downloading "_i18n + gh_asset.name); pbox->NewTransfer(i18n::Reorder("Downloading ", gh_asset.name));
log_write("starting download: %s\n", gh_asset.browser_download_url.c_str()); log_write("starting download: %s\n", gh_asset.browser_download_url.c_str());
const auto result = curl::Api().ToFile( const auto result = curl::Api().ToFile(
@@ -233,7 +233,7 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) {
nvgRestore(vg); nvgRestore(vg);
if (!e.tag.empty()) { if (!e.tag.empty()) {
gfx::drawTextArgs(vg, x + w - text_xoffset, y + (h / 2.f), 16.f, NVG_ALIGN_RIGHT | NVG_ALIGN_MIDDLE, theme->GetColour(ThemeEntryID_TEXT_INFO), "version: %s", e.tag.c_str()); gfx::drawTextArgs(vg, x + w - text_xoffset, y + (h / 2.f), 16.f, NVG_ALIGN_RIGHT | NVG_ALIGN_MIDDLE, theme->GetColour(ThemeEntryID_TEXT_INFO), "version: %s"_i18n.c_str(), e.tag.c_str());
} }
}); });
} }
@@ -427,7 +427,7 @@ void DownloadEntries(const Entry& entry) {
App::PushErrorBox(rc, "Failed to download app!"_i18n); App::PushErrorBox(rc, "Failed to download app!"_i18n);
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {
App::Notify("Downloaded "_i18n + entry.repo); App::Notify(i18n::Reorder("Downloaded ", entry.repo));
auto post_install_message = entry.post_install_message; auto post_install_message = entry.post_install_message;
if (ptr && !ptr->post_install_message.empty()) { if (ptr && !ptr->post_install_message.empty()) {
post_install_message = ptr->post_install_message; post_install_message = ptr->post_install_message;

View File

@@ -67,6 +67,13 @@ Menu::Menu(u32 flags) : grid::Menu{"Homebrew"_i18n, flags} {
}}) }})
); );
// Add Back button only when entered via Menus (Not center, righit, left tab).
if (!(flags & MenuFlag_Tab)) {
this->SetAction(Button::B, Action{"Back"_i18n, [this](){
this->SetPop();
}});
}
OnLayoutChange(); OnLayoutChange();
} }
@@ -168,13 +175,13 @@ void Menu::SetIndex(s64 index) {
if (fs::FsNativeSd().FileExists(star_path)) { if (fs::FsNativeSd().FileExists(star_path)) {
SetAction(Button::R3, Action{"Unstar"_i18n, [this](){ SetAction(Button::R3, Action{"Unstar"_i18n, [this](){
fs::FsNativeSd().DeleteFile(GenerateStarPath(GetEntry().path)); fs::FsNativeSd().DeleteFile(GenerateStarPath(GetEntry().path));
App::Notify("Unstarred "_i18n + GetEntry().GetName()); App::Notify(i18n::Reorder("Unstarred ", GetEntry().GetName()));
SortAndFindLastFile(); SortAndFindLastFile();
}}); }});
} else { } else {
SetAction(Button::R3, Action{"Star"_i18n, [this](){ SetAction(Button::R3, Action{"Star"_i18n, [this](){
fs::FsNativeSd().CreateFile(GenerateStarPath(GetEntry().path)); fs::FsNativeSd().CreateFile(GenerateStarPath(GetEntry().path));
App::Notify("Starred "_i18n + GetEntry().GetName()); App::Notify(i18n::Reorder("Starred ", GetEntry().GetName()));
SortAndFindLastFile(); SortAndFindLastFile();
}}); }});
} }
@@ -469,7 +476,7 @@ void Menu::DisplayOptions() {
// for testing stuff. // for testing stuff.
#if 0 #if 0
options->Add<SidebarEntrySlider>("Test", 1, 0, 2, 10, [](auto& v_out){ options->Add<SidebarEntrySlider>("Test"_i18n, 1, 0, 2, 10, [](auto& v_out){
}); });
#endif #endif
@@ -494,7 +501,7 @@ void Menu::DisplayOptions() {
}, "Mounts the NRO FileSystem (icon, nacp and RomFS)."_i18n); }, "Mounts the NRO FileSystem (icon, nacp and RomFS)."_i18n);
options->Add<SidebarEntryCallback>("Delete"_i18n, [this](){ options->Add<SidebarEntryCallback>("Delete"_i18n, [this](){
const auto buf = "Are you sure you want to delete "_i18n + GetEntry().path.toString() + "?"; const auto buf = i18n::Reorder("Are you sure you want to delete ", GetEntry().path.toString()) + "?";
App::Push<OptionBox>( App::Push<OptionBox>(
buf, buf,
"Back"_i18n, "Delete"_i18n, 1, [this](auto op_index){ "Back"_i18n, "Delete"_i18n, 1, [this](auto op_index){
@@ -510,9 +517,10 @@ void Menu::DisplayOptions() {
} }
}, GetEntry().image }, GetEntry().image
); );
}, "Perminately delete the selected homebrew.\n\n" }, i18n::get("hb_remove_info",
"Files and folders created by the homebrew will still remain. " "Perminately delete the selected homebrew.\n\n"
"Use the FileBrowser to delete them."_i18n); "Files and folders created by the homebrew will still remain. "
"Use the FileBrowser to delete them."));
auto forwarder_entry = options->Add<SidebarEntryCallback>("Install Forwarder"_i18n, [this](){ auto forwarder_entry = options->Add<SidebarEntryCallback>("Install Forwarder"_i18n, [this](){
InstallHomebrew(); InstallHomebrew();

View File

@@ -188,7 +188,7 @@ Menu::Menu(u32 flags) : MenuBase{"Irs"_i18n, flags} {
return; return;
} }
static_assert(IRS_MAX_CAMERAS >= 9, "max camaeras has gotten smaller!"); static_assert(IRS_MAX_CAMERAS >= 9, "max cameras has gotten smaller!");
// open all handles // open all handles
irsGetIrCameraHandle(&m_entries[0].m_handle, HidNpadIdType_No1); irsGetIrCameraHandle(&m_entries[0].m_handle, HidNpadIdType_No1);
@@ -534,7 +534,7 @@ void Menu::updateColourArray() {
auto Menu::GetEntryName(s64 i) -> std::string { auto Menu::GetEntryName(s64 i) -> std::string {
const auto& e = m_entries[i]; const auto& e = m_entries[i];
std::string text = "Pad "_i18n + (i == 8 ? "HandHeld"_i18n : std::to_string(i)); std::string text = i18n::Reorder("Pad ", (i == 8 ? "HandHeld"_i18n : std::to_string(i)));
switch (e.status) { switch (e.status) {
case IrsIrCameraStatus_Available: case IrsIrCameraStatus_Available:
text += " (Available)"_i18n; text += " (Available)"_i18n;

View File

@@ -114,7 +114,7 @@ auto InstallUpdate(ProgressBox* pbox, const std::string url, const std::string v
// 1. download the zip // 1. download the zip
if (!pbox->ShouldExit()) { if (!pbox->ShouldExit()) {
pbox->NewTransfer("Downloading "_i18n + version); pbox->NewTransfer(i18n::Reorder("Downloading ", version));
log_write("starting download: %s\n", url.c_str()); log_write("starting download: %s\n", url.c_str());
const auto result = curl::Api().ToFile( const auto result = curl::Api().ToFile(
@@ -317,11 +317,12 @@ MainMenu::MainMenu() {
language_items.push_back("German"_i18n); language_items.push_back("German"_i18n);
language_items.push_back("Italian"_i18n); language_items.push_back("Italian"_i18n);
language_items.push_back("Spanish"_i18n); language_items.push_back("Spanish"_i18n);
language_items.push_back("Chinese"_i18n); language_items.push_back("Chinese (Simplified)"_i18n);
language_items.push_back("Korean"_i18n); language_items.push_back("Korean"_i18n);
language_items.push_back("Dutch"_i18n); language_items.push_back("Dutch"_i18n);
language_items.push_back("Portuguese"_i18n); language_items.push_back("Portuguese"_i18n);
language_items.push_back("Russian"_i18n); language_items.push_back("Russian"_i18n);
language_items.push_back("Chinese (Traditional)"_i18n);
language_items.push_back("Swedish"_i18n); language_items.push_back("Swedish"_i18n);
language_items.push_back("Vietnamese"_i18n); language_items.push_back("Vietnamese"_i18n);
language_items.push_back("Ukrainian"_i18n); language_items.push_back("Ukrainian"_i18n);
@@ -356,7 +357,7 @@ MainMenu::MainMenu() {
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {
m_update_state = UpdateState::None; m_update_state = UpdateState::None;
App::Notify("Updated to "_i18n + m_update_version); App::Notify(i18n::Reorder("Updated to ", m_update_version));
App::Push<OptionBox>( App::Push<OptionBox>(
"Press OK to restart Sphaira"_i18n, "OK"_i18n, [](auto){ "Press OK to restart Sphaira"_i18n, "OK"_i18n, [](auto){
App::ExitRestart(); App::ExitRestart();
@@ -368,13 +369,15 @@ MainMenu::MainMenu() {
} }
options->Add<SidebarEntryCallback>("FTP"_i18n, [](){ App::DisplayFtpOptions(); }, options->Add<SidebarEntryCallback>("FTP"_i18n, [](){ App::DisplayFtpOptions(); },
"Enable / modify the FTP server settings such as port, user/pass and the folders that are shown.\n\n" i18n::get("ftp_settings_info",
"NOTE: Changing any of the options will automatically restart the FTP server when exiting the options menu."_i18n "Enable / modify the FTP server settings such as port, user/pass and the folders that are shown.\n\n"
"NOTE: Changing any of the options will automatically restart the FTP server when exiting the options menu.")
); );
options->Add<SidebarEntryCallback>("MTP"_i18n, [](){ App::DisplayMtpOptions(); }, options->Add<SidebarEntryCallback>("MTP"_i18n, [](){ App::DisplayMtpOptions(); },
"Enable / modify the MTP responder settings such as the folders that are shown.\n\n" i18n::get("mtp_settings_info",
"NOTE: Changing any of the options will automatically restart the MTP server when exiting the options menu."_i18n "Enable / modify the MTP responder settings such as the folders that are shown.\n\n"
"NOTE: Changing any of the options will automatically restart the MTP server when exiting the options menu.")
); );
options->Add<SidebarEntryCallback>("HDD"_i18n, [](){ options->Add<SidebarEntryCallback>("HDD"_i18n, [](){
@@ -383,12 +386,14 @@ MainMenu::MainMenu() {
options->Add<SidebarEntryBool>("NXlink"_i18n, App::GetNxlinkEnable(), [](bool& enable){ options->Add<SidebarEntryBool>("NXlink"_i18n, App::GetNxlinkEnable(), [](bool& enable){
App::SetNxlinkEnable(enable); App::SetNxlinkEnable(enable);
}, "Enable NXlink server to run in the background. " }, i18n::get("nxlink_enable_info",
"NXlink is used to send .nro's from PC to the switch\n\n" "Enable NXlink server to run in the background. "
"If you are not a developer, you can disable this option."_i18n); "NXlink is used to send .nro's from PC to the switch\n\n"
"If you are not a developer, you can disable this option."));
}, "Toggle FTP, MTP, HDD and NXlink\n\n" }, i18n::get("nxlink_toggle_info",
"If Sphaira has a update available, you can download it from this menu"_i18n); "Toggle FTP, MTP, HDD and NXlink\n\n"
"If Sphaira has a update available, you can download it from this menu"));
options->Add<SidebarEntryCallback>("Theme"_i18n, [](){ options->Add<SidebarEntryCallback>("Theme"_i18n, [](){
App::DisplayThemeOptions(); App::DisplayThemeOptions();
@@ -397,14 +402,16 @@ MainMenu::MainMenu() {
options->Add<SidebarEntryArray>("Language"_i18n, language_items, [](s64& index_out){ options->Add<SidebarEntryArray>("Language"_i18n, language_items, [](s64& index_out){
App::SetLanguage(index_out); App::SetLanguage(index_out);
}, (s64)App::GetLanguage(), }, (s64)App::GetLanguage(),
"Change the language.\n\n" i18n::get("translation_info",
"If your language isn't found, or translations are missing, please consider opening a PR at " "Change the language.\n\n"
"github.com/ITotalJustice/sphaira"_i18n); "If your language isn't found, or translations are missing, please consider opening a PR at "
"github.com/ITotalJustice/sphaira"));
options->Add<SidebarEntryCallback>("Advanced Options"_i18n, [](){ options->Add<SidebarEntryCallback>("Advanced Options"_i18n, [](){
App::DisplayAdvancedOptions(); App::DisplayAdvancedOptions();
}, "Change the advanced options. " }, i18n::get("advanced_options_info",
"Please view the info boxes to better understand each option."_i18n); "Change the advanced options. "
"Please view the info boxes to better understand each option."));
}} }}
)); ));

View File

@@ -91,21 +91,22 @@ void MenuBase::Draw(NVGcontext* vg, Theme* theme) {
gfx::drawTextArgs(vg, storage_x, storage_y, storage_font, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "System %.1f GB"_i18n.c_str(), pdata.emmc_free / 1024.0 / 1024.0 / 1024.0); gfx::drawTextArgs(vg, storage_x, storage_y, storage_font, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "System %.1f GB"_i18n.c_str(), pdata.emmc_free / 1024.0 / 1024.0 / 1024.0);
// gfx::drawTextArgs(vg, storage_x, storage_y, storage_font, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "eMMC %.1f GB"_i18n.c_str(), pdata.emmc_free / 1024.0 / 1024.0 / 1024.0); // gfx::drawTextArgs(vg, storage_x, storage_y, storage_font, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "eMMC %.1f GB"_i18n.c_str(), pdata.emmc_free / 1024.0 / 1024.0 / 1024.0);
// Use progressbar colours (never BACKGROUND) so themes with custom background images work
#if 0 #if 0
Vec4 prog_bar{storage_x, storage_y + 24, STORAGE_BAR_W, STORAGE_BAR_H}; Vec4 prog_bar{storage_x, storage_y + 24, STORAGE_BAR_W, STORAGE_BAR_H};
gfx::drawRect(vg, prog_bar, theme->GetColour(ThemeEntryID_PROGRESSBAR_BACKGROUND), rounding); gfx::drawRect(vg, prog_bar, theme->GetColour(ThemeEntryID_PROGRESSBAR_BACKGROUND), rounding);
gfx::drawRect(vg, prog_bar.x, prog_bar.y, ((double)pdata.emmc_free / (double)pdata.emmc_total) * prog_bar.w, prog_bar.h, theme->GetColour(ThemeEntryID_PROGRESSBAR), rounding); gfx::drawRect(vg, prog_bar.x, prog_bar.y, ((double)pdata.emmc_free / (double)pdata.emmc_total) * prog_bar.w, prog_bar.h, theme->GetColour(ThemeEntryID_PROGRESSBAR), rounding);
#else #else
gfx::drawRect(vg, storage_x, storage_y + 24, STORAGE_BAR_W, STORAGE_BAR_H, theme->GetColour(ThemeEntryID_TEXT_INFO), rounding); gfx::drawRect(vg, storage_x, storage_y + 24, STORAGE_BAR_W, STORAGE_BAR_H, theme->GetColour(ThemeEntryID_PROGRESSBAR), rounding);
gfx::drawRect(vg, storage_x + 1, storage_y + 24 + 1, STORAGE_BAR_W - 2, STORAGE_BAR_H - 2, theme->GetColour(ThemeEntryID_BACKGROUND), rounding); gfx::drawRect(vg, storage_x + 1, storage_y + 24 + 1, STORAGE_BAR_W - 2, STORAGE_BAR_H - 2, theme->GetColour(ThemeEntryID_PROGRESSBAR_BACKGROUND), rounding);
gfx::drawRect(vg, storage_x + 2, storage_y + 24 + 2, STORAGE_BAR_W - (((double)pdata.emmc_free / (double)pdata.emmc_total) * STORAGE_BAR_W) - 4, STORAGE_BAR_H - 4, theme->GetColour(ThemeEntryID_TEXT_INFO), rounding); gfx::drawRect(vg, storage_x + 2, storage_y + 24 + 2, STORAGE_BAR_W - (((double)pdata.emmc_free / (double)pdata.emmc_total) * STORAGE_BAR_W) - 4, STORAGE_BAR_H - 4, theme->GetColour(ThemeEntryID_PROGRESSBAR), rounding);
#endif #endif
storage_x -= (STORAGE_BAR_W + spacing); storage_x -= (STORAGE_BAR_W + spacing);
gfx::drawTextArgs(vg, storage_x, storage_y, storage_font, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "microSD %.1f GB"_i18n.c_str(), pdata.sd_free / 1024.0 / 1024.0 / 1024.0); gfx::drawTextArgs(vg, storage_x, storage_y, storage_font, NVG_ALIGN_LEFT | NVG_ALIGN_TOP, theme->GetColour(ThemeEntryID_TEXT), "microSD %.1f GB"_i18n.c_str(), pdata.sd_free / 1024.0 / 1024.0 / 1024.0);
gfx::drawRect(vg, storage_x, storage_y + 24, STORAGE_BAR_W, STORAGE_BAR_H, theme->GetColour(ThemeEntryID_TEXT_INFO), rounding); gfx::drawRect(vg, storage_x, storage_y + 24, STORAGE_BAR_W, STORAGE_BAR_H, theme->GetColour(ThemeEntryID_PROGRESSBAR), rounding);
gfx::drawRect(vg, storage_x + 1, storage_y + 24 + 1, STORAGE_BAR_W - 2, STORAGE_BAR_H - 2, theme->GetColour(ThemeEntryID_BACKGROUND), rounding); gfx::drawRect(vg, storage_x + 1, storage_y + 24 + 1, STORAGE_BAR_W - 2, STORAGE_BAR_H - 2, theme->GetColour(ThemeEntryID_PROGRESSBAR_BACKGROUND), rounding);
gfx::drawRect(vg, storage_x + 2, storage_y + 24 + 2, STORAGE_BAR_W - (((double)pdata.sd_free / (double)pdata.sd_total) * STORAGE_BAR_W) - 4, STORAGE_BAR_H - 4, theme->GetColour(ThemeEntryID_TEXT_INFO), rounding); gfx::drawRect(vg, storage_x + 2, storage_y + 24 + 2, STORAGE_BAR_W - (((double)pdata.sd_free / (double)pdata.sd_total) * STORAGE_BAR_W) - 4, STORAGE_BAR_H - 4, theme->GetColour(ThemeEntryID_PROGRESSBAR), rounding);
start_x -= (STORAGE_BAR_W + spacing) * 2; start_x -= (STORAGE_BAR_W + spacing) * 2;
// ran out of space, its one or the other. // ran out of space, its one or the other.

View File

@@ -47,7 +47,7 @@ void Menu::Update(Controller* controller, TouchInfo* touch) {
usbDsGetSpeed(&speed); usbDsGetSpeed(&speed);
char buf[128]; char buf[128];
std::snprintf(buf, sizeof(buf), "State: %s | Speed: %s", i18n::get(GetUsbDsStateStr(state)).c_str(), i18n::get(GetUsbDsSpeedStr(speed)).c_str()); std::snprintf(buf, sizeof(buf), "State: %s | Speed: %s"_i18n.c_str(), i18n::get(GetUsbDsStateStr(state)).c_str(), i18n::get(GetUsbDsSpeedStr(speed)).c_str());
SetSubHeading(buf); SetSubHeading(buf);
} }
} }

View File

@@ -404,7 +404,7 @@ void Menu::Update(Controller* controller, TouchInfo* touch) {
} }
if (m_dirty) { if (m_dirty) {
App::Notify("Updating application record list"); App::Notify("Updating application record list"_i18n);
SortAndFindLastFile(true); SortAndFindLastFile(true);
} }
@@ -718,9 +718,11 @@ void Menu::DisplayOptions() {
options->Add<SidebarEntryCallback>("Restore"_i18n, [this](){ options->Add<SidebarEntryCallback>("Restore"_i18n, [this](){
RestoreSave(); RestoreSave();
}, true, }, true,
"Restore the save for the current title.\n" i18n::get("save_backuprestore_info",
"if \"Auto backup\" is enabled, the save will first be backed up and then restored. " "Restore the save for the current title.\n"
"Saves that are auto backed up will have \"Auto\" in their name."_i18n "if \"Auto backup\" is enabled, the save will first be backed up and then restored. "
"Saves that are auto backed up will have \"Auto\" in their name."
)
); );
} }
} }
@@ -735,10 +737,13 @@ void Menu::DisplayOptions() {
options->Add<SidebarEntryBool>("Compress backup"_i18n, m_compress_save_backup.Get(), [this](bool& v_out){ options->Add<SidebarEntryBool>("Compress backup"_i18n, m_compress_save_backup.Get(), [this](bool& v_out){
m_compress_save_backup.Set(v_out); m_compress_save_backup.Set(v_out);
}, "If enabled, backups will be compressed to a zip file.\n\n" }, i18n::get("save_backup_compress_info",
"NOTE: Disabling this option does not disable the zip file, it only disables compressing " "If enabled, backups will be compressed to a zip file.\n\n"
"the files stored in the zip.\n" "NOTE: Disabling this option does not disable the zip file, it only disables compressing "
"Disabling will result in a much faster backup, at the cost of the file size."_i18n); "the files stored in the zip.\n"
"Disabling will result in a much faster backup, at the cost of the file size."
)
);
}); });
} }
@@ -797,7 +802,7 @@ void Menu::RestoreSave() {
if (paths.empty()) { if (paths.empty()) {
App::Push<ui::OptionBox>( App::Push<ui::OptionBox>(
"No saves found in "_i18n + fs::AppendPath(mount, BuildSaveBasePath(m_entries[m_index])).toString(), i18n::Reorder("No saves found in ", fs::AppendPath(mount, BuildSaveBasePath(m_entries[m_index])).toString()),
"OK"_i18n "OK"_i18n
); );
return; return;
@@ -814,7 +819,7 @@ void Menu::RestoreSave() {
const auto file_path = paths[*op_index]; const auto file_path = paths[*op_index];
App::Push<OptionBox>( App::Push<OptionBox>(
"Are you sure you want to restore "_i18n + file_name + "?", i18n::Reorder("Are you sure you want to restore ", file_name) + "?",
"Back"_i18n, "Restore"_i18n, 0, [this, file_path, location](auto op_index){ "Back"_i18n, "Restore"_i18n, 0, [this, file_path, location](auto op_index){
if (op_index && *op_index) { if (op_index && *op_index) {
App::Push<ProgressBox>(0, "Restore"_i18n, "", [this, file_path, location](auto pbox) -> Result { App::Push<ProgressBox>(0, "Restore"_i18n, "", [this, file_path, location](auto pbox) -> Result {
@@ -871,8 +876,8 @@ auto Menu::BuildSavePath(const Entry& e, u32 flags) const -> fs::FsPath {
if (flags & BackupFlag_SetName) { if (flags & BackupFlag_SetName) {
std::string out; std::string out;
while (out.empty()) { while (out.empty()) {
const auto header = "Set name for "_i18n + e.GetName(); const auto header = i18n::Reorder("Set name for ", e.GetName());
if (R_FAILED(swkbd::ShowText(out, header.c_str(), "Set backup name", name, 1, 128))) { if (R_FAILED(swkbd::ShowText(out, header.c_str(), "Set backup name"_i18n.c_str(), name, 1, 128))) {
out.clear(); out.clear();
} }
} }
@@ -1138,7 +1143,7 @@ Result Menu::BackupSaveInternal(ProgressBox* pbox, const dump::DumpLocation& loc
// if we dumped the save to ram, flush the data to file. // if we dumped the save to ram, flush the data to file.
if (!file_download) { if (!file_download) {
pbox->NewTransfer("Flushing zip to file"); pbox->NewTransfer("Flushing zip to file"_i18n);
R_TRY(writer->SetSize(mz_mem.buf.size())); R_TRY(writer->SetSize(mz_mem.buf.size()));
R_TRY(thread::Transfer(pbox, mz_mem.buf.size(), R_TRY(thread::Transfer(pbox, mz_mem.buf.size(),

View File

@@ -252,7 +252,7 @@ auto InstallTheme(ProgressBox* pbox, const PackListEntry& entry) -> Result {
// 1. download the zip // 1. download the zip
if (!pbox->ShouldExit()) { if (!pbox->ShouldExit()) {
pbox->NewTransfer("Downloading "_i18n + entry.details.name); pbox->NewTransfer(i18n::Reorder("Downloading ", entry.details.name));
log_write("starting download\n"); log_write("starting download\n");
const auto url = apiBuildUrlDownloadPack(entry); const auto url = apiBuildUrlDownloadPack(entry);
@@ -272,7 +272,7 @@ auto InstallTheme(ProgressBox* pbox, const PackListEntry& entry) -> Result {
// 2. download the zip // 2. download the zip
if (!pbox->ShouldExit()) { if (!pbox->ShouldExit()) {
pbox->NewTransfer("Downloading "_i18n + entry.details.name); pbox->NewTransfer(i18n::Reorder("Downloading ", entry.details.name));
log_write("starting download: %s\n", download_pack.url.c_str()); log_write("starting download: %s\n", download_pack.url.c_str());
const auto result = curl::Api().ToFile( const auto result = curl::Api().ToFile(
@@ -383,13 +383,13 @@ Menu::Menu(u32 flags) : MenuBase{"Themezer"_i18n, flags} {
const auto& entry = page.m_packList[m_index]; const auto& entry = page.m_packList[m_index];
const auto url = apiBuildUrlDownloadPack(entry); const auto url = apiBuildUrlDownloadPack(entry);
App::Push<ProgressBox>(entry.themes[0].preview.lazy_image.image, "Downloading "_i18n, entry.details.name, [this, &entry](auto pbox) -> Result { App::Push<ProgressBox>(entry.themes[0].preview.lazy_image.image, i18n::Reorder("Downloading ", entry.details.name), [this, &entry](auto pbox) -> Result {
return InstallTheme(pbox, entry); return InstallTheme(pbox, entry);
}, [this, &entry](Result rc){ }, [this, &entry](Result rc){
App::PushErrorBox(rc, "Failed to download theme"_i18n); App::PushErrorBox(rc, "Failed to download theme"_i18n);
if (R_SUCCEEDED(rc)) { if (R_SUCCEEDED(rc)) {
App::Notify("Downloaded "_i18n + entry.details.name); App::Notify(i18n::Reorder("Downloaded ", entry.details.name));
} }
}); });
} }

View File

@@ -87,7 +87,7 @@ void Menu::Update(Controller* controller, TouchInfo* touch) {
usbDsGetSpeed(&speed); usbDsGetSpeed(&speed);
char buf[128]; char buf[128];
std::snprintf(buf, sizeof(buf), "State: %s | Speed: %s", i18n::get(GetUsbDsStateStr(state)).c_str(), i18n::get(GetUsbDsSpeedStr(speed)).c_str()); std::snprintf(buf, sizeof(buf), "State: %s | Speed: %s"_i18n.c_str(), i18n::get(GetUsbDsStateStr(state)).c_str(), i18n::get(GetUsbDsSpeedStr(speed)).c_str());
SetSubHeading(buf); SetSubHeading(buf);
} }

View File

@@ -90,11 +90,11 @@ Menu::Menu(fs::Fs* fs, const fs::FsPath& path) {
} }
if (m_meta.artist.empty()) { if (m_meta.artist.empty()) {
m_meta.artist = "Artist: Unknown"; m_meta.artist = "Artist: Unknown"_i18n;
} }
if (m_meta.album.empty()) { if (m_meta.album.empty()) {
m_meta.album = "Album: Unknown"; m_meta.album = "Album: Unknown"_i18n;
} }
} }

View File

@@ -121,13 +121,13 @@ private:
}; };
DevoptabForm::DevoptabForm(DevoptabType type, const MountConfig& config) DevoptabForm::DevoptabForm(DevoptabType type, const MountConfig& config)
: FormSidebar{"Mount Creator"} : FormSidebar{"Mount Creator"_i18n}
, m_type{type} , m_type{type}
, m_config{config} { , m_config{config} {
SetupButtons(false); SetupButtons(false);
} }
DevoptabForm::DevoptabForm() : FormSidebar{"Mount Creator"} { DevoptabForm::DevoptabForm() : FormSidebar{"Mount Creator"_i18n} {
SetupButtons(true); SetupButtons(true);
} }
@@ -157,7 +157,7 @@ void DevoptabForm::SetupButtons(bool type_change) {
} }
this->Add<SidebarEntryArray>( this->Add<SidebarEntryArray>(
"Type", items, [this](s64& index) { "Type"_i18n, items, [this](s64& index) {
m_type = TYPE_ENTRIES[index].type; m_type = TYPE_ENTRIES[index].type;
UpdateSchemeURL(); UpdateSchemeURL();
}, },
@@ -167,67 +167,70 @@ void DevoptabForm::SetupButtons(bool type_change) {
} }
m_name = this->Add<SidebarEntryTextInput>( m_name = this->Add<SidebarEntryTextInput>(
"Name", m_config.name, "", "", -1, 32, "Name"_i18n, m_config.name, "", "", -1, 32,
"Set the name of the application"_i18n "Set the name of the application"_i18n
); );
m_url = this->Add<SidebarEntryTextInput>( m_url = this->Add<SidebarEntryTextInput>(
"URL", m_config.url, "", "", -1, PATH_MAX, "URL"_i18n, m_config.url, "", "", -1, PATH_MAX,
"Set the URL of the application"_i18n "Set the URL of the application"_i18n
); );
m_port = this->Add<SidebarEntryTextInput>( m_port = this->Add<SidebarEntryTextInput>(
"Port", m_config.port, "", "", 1, 5, "Port"_i18n, m_config.port, "", "", 1, 5,
"Optional: Set the port of the server. If left empty, the default port for the protocol will be used."_i18n "Optional: Set the port of the server. If left empty, the default port for the protocol will be used."_i18n
); );
#if 0 #if 0
m_timeout = this->Add<SidebarEntryTextInput>( m_timeout = this->Add<SidebarEntryTextInput>(
"Timeout", m_config.timeout, "Timeout in milliseconds", 1, 5, "Timeout"_i18n, m_config.timeout, "Timeout in milliseconds", 1, 5,
"Optional: Set the timeout in seconds."_i18n "Optional: Set the timeout in seconds."_i18n
); );
#endif #endif
m_user = this->Add<SidebarEntryTextInput>( m_user = this->Add<SidebarEntryTextInput>(
"User", m_config.user, "", "", -1, PATH_MAX, "User"_i18n, m_config.user, "", "", -1, PATH_MAX,
"Optional: Set the username of the application"_i18n "Optional: Set the username of the application"_i18n
); );
m_pass = this->Add<SidebarEntryTextInput>( m_pass = this->Add<SidebarEntryTextInput>(
"Pass", m_config.pass, "", "", -1, PATH_MAX, "Pass"_i18n, m_config.pass, "", "", -1, PATH_MAX,
"Optional: Set the password of the application"_i18n "Optional: Set the password of the application"_i18n
); );
m_dump_path = this->Add<SidebarEntryTextInput>( m_dump_path = this->Add<SidebarEntryTextInput>(
"Dump path", m_config.dump_path, "", "", -1, PATH_MAX, "Dump path"_i18n, m_config.dump_path, "", "", -1, PATH_MAX,
"Optional: Set the dump path used when exporting games and saves."_i18n "Optional: Set the dump path used when exporting games and saves."_i18n
); );
this->Add<SidebarEntryBool>( this->Add<SidebarEntryBool>(
"Read only", m_config.read_only, "Read only"_i18n, m_config.read_only,
"Mount the filesystem as read only.\n\n" i18n::get("mount_readonly_info",
"Setting this option also hidens the mount from being show as an export option."_i18n "Mount the filesystem as read only.\n\n"
"Setting this option also hidens the mount from being show as an export option.")
); );
this->Add<SidebarEntryBool>( this->Add<SidebarEntryBool>(
"No stat file", m_config.no_stat_file, "No stat file"_i18n, m_config.no_stat_file,
"Enabling stops the file browser from checking the file size and timestamp of each file. " i18n::get("filecheck_disable_info",
"This improves browsing performance."_i18n "Enabling stops the file browser from checking the file size and timestamp of each file. "
"This improves browsing performance.")
); );
this->Add<SidebarEntryBool>( this->Add<SidebarEntryBool>(
"No stat dir", m_config.no_stat_dir, "No stat dir"_i18n, m_config.no_stat_dir,
"Enabling stops the file browser from checking how many files and folders are in a folder. " i18n::get("dircheck_disable_info",
"This improves browsing performance, especially for servers that has slow directory listing."_i18n "Enabling stops the file browser from checking how many files and folders are in a folder. "
"This improves browsing performance, especially for servers that has slow directory listing.")
); );
this->Add<SidebarEntryBool>( this->Add<SidebarEntryBool>(
"FS hidden", m_config.fs_hidden, "FS hidden"_i18n, m_config.fs_hidden,
"Hide the mount from being visible in the file browser."_i18n "Hide the mount from being visible in the file browser."_i18n
); );
this->Add<SidebarEntryBool>( this->Add<SidebarEntryBool>(
"Export hidden", m_config.dump_hidden, "Export hidden"_i18n, m_config.dump_hidden,
"Hide the mount from being visible as a export option for games and saves."_i18n "Hide the mount from being visible as a export option for games and saves."_i18n
); );
@@ -236,7 +239,7 @@ void DevoptabForm::SetupButtons(bool type_change) {
UpdateSchemeURL(); UpdateSchemeURL();
} }
const auto callback = this->Add<SidebarEntryCallback>("Save", [this](){ const auto callback = this->Add<SidebarEntryCallback>("Save"_i18n, [this](){
m_config.name = m_name->GetValue(); m_config.name = m_name->GetValue();
m_config.url = m_url->GetValue(); m_config.url = m_url->GetValue();
m_config.user = m_user->GetValue(); m_config.user = m_user->GetValue();

View File

@@ -226,7 +226,7 @@ Result NszExport(ui::ProgressBox* pbox, const NcaReaderCreator& nca_creator, s64
const auto section_number = std::distance(ncz_sections.begin(), section); const auto section_number = std::distance(ncz_sections.begin(), section);
const auto rsize = section->size - (nca_off - section->offset); const auto rsize = section->size - (nca_off - section->offset);
pbox->NewTransfer("Section #" + std::to_string(section_number) + " - " + collection.name); pbox->NewTransfer("Section #"_i18n + std::to_string(section_number) + " - " + collection.name);
ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only); ZSTD_CCtx_reset(cctx, ZSTD_reset_session_only);
R_TRY(thread::Transfer(pbox, rsize, R_TRY(thread::Transfer(pbox, rsize,