From 6b067bbd06106ec4d492f976cffc4e2ddafd031c Mon Sep 17 00:00:00 2001 From: kaniol-lck <375520360@qq.com> Date: Fri, 12 Jul 2024 17:01:43 +0800 Subject: [PATCH] update translation --- languages/zh_CN.ts | 918 ++++++++++++++++--------- languages/zh_TW.ts | 912 +++++++++++++++--------- src/download/qaria2.cpp | 3 + src/images/image.qrc | 1 + src/images/modrinth/game-mechanics.svg | 1 + src/local/localmod.cpp | 20 +- src/local/localmodfile.cpp | 5 +- src/local/localmodpath.cpp | 2 +- src/modrinth/modrinthapi.cpp | 1 + src/modrinth/modrinthmodinfo.cpp | 1 - src/ui/modmanager.cpp | 2 +- 11 files changed, 1191 insertions(+), 675 deletions(-) create mode 100644 src/images/modrinth/game-mechanics.svg diff --git a/languages/zh_CN.ts b/languages/zh_CN.ts index 93c5bd47..b141a841 100644 --- a/languages/zh_CN.ts +++ b/languages/zh_CN.ts @@ -14,42 +14,42 @@ # Mod管理器 - + Sources 源码 - + Issues 问题 - + Infomation 信息 - + Author: 作者: - + License: 许可证: - + Credit: 致谢: - + Description 描述 - + Mod Manager is a multi-functional application for managing minecraft mods. You can easily download mods from Curseforge or Modrinth to local or update local mods through this application. Hope you can enjoy the convenience brought by this application. If possible, please star it on GitHub and share to friends. Mod管理器是一个多功能的用于管理mod的应用。通过该应用,你可以轻松地从Curseforge或Modrinth上下载mod或者更新本地的mod。 @@ -97,46 +97,46 @@ 存在空或重复的文件名! - + oringinal file name 原始文件名称 - - - - - + + + + + Add to pattern 添加至命名格式 - + mod id mod id - + mod name mod名称 - + mod version mod版本 - + categoried and formatted tag list 分类及格式化的标签列表 - + <html><head/><body><p><br/></p></body></html> <html><head/><body><p><br/></p></body></html> - + Name pattern: 命名格式: @@ -519,7 +519,7 @@ - + Download 下载 @@ -549,33 +549,32 @@ %1mod:%2 - %1 File: %2 - %1文件:%2 + %1文件:%2 - + Downloading 下载中 - - + + Downloaded 已下载 - + [Current] [当前] - + Copy download link 复制下载链接 - + Set as current 设为当前 @@ -586,6 +585,28 @@ Form Form + + + All + 所有 + + + + Select Game Version + 选择游戏版本 + + + + + Any + 任意 + + + + + Game Version : %1 + 游戏版本:%1 + CurseforgeImagePopup @@ -597,54 +618,58 @@ CurseforgeManagerModel - + Name 名称 - + Project ID 项目ID - + Slug 标语 - + Authors 作者 - + Categories 类别 - + Website Link 网站链接 - + Date Modified 修改日期 - + Date Created 创建日期 - + Date Released 发布日期 - + + Popularity Rank + 人气排名 + + Loader Types - 加载器类型 + 加载器类型 @@ -652,9 +677,8 @@ 下载数量 - Popularity Score - 人气分数 + 人气分数 @@ -666,14 +690,15 @@ CurseforgeModBrowser + Search mod on Curseforge... 在Curseforge上搜索mod... - - - - + + + + Any 任意 @@ -686,15 +711,15 @@ 从Curseforge上加载了%1个mod。 - - - + + + Game Version : %1 游戏版本:%1 - - + + Category : %1 类别:%1 @@ -731,8 +756,9 @@ 加载失败 + Sort: - 排序: + 排序: Default @@ -743,42 +769,72 @@ 创建时间 - + + Last Updated 最后更新 - + + Name 名称 - + + Popularity 热门 - + + Featured + 特色 + + + + Author 作者 - + + Total Downloads 下载总量 - + + Early Access + 抢先 体验 + + + + Featured Released + 特色发布 + + + + Released Date + 发布日期 + + + + Rating + 评分 + + + &Mod &Mod - + Download 下载 - + &Curseforge &Curseforge @@ -787,27 +843,27 @@ 路径 (&P) - + Select Game Version 选择游戏版本 - + Select Category 选择类别 - + &View 视图 (&V) - + Categories 类别 - + Game Versions 游戏版本 @@ -816,78 +872,85 @@ 打开文件夹 - + Tool Bar 工具栏 - + Search Bar 搜索栏 - + Mod Mod - + World 世界 - + Modpacks 整合包 - + Texturepacks 材质包 - + Copy Website Link 复制网站链接 - + Open Curseforge Mod Dialog 打开Curseforge mod对话框 - + Open Website Link 打开网站链接 + Category: - 类别: + 类别: + Game Version: - 游戏版本: + 游戏版本: + Mod Loader: mod加载器: + Save To: - 保存至: + 保存至: + ... - ... + ... - + + Category 类别 - + + Game Version 游戏版本 @@ -955,27 +1018,27 @@ %1:%2 - + Translate summary 翻译简介 - + Untranslate summary 取消翻译简介 - + Open Curseforge Mod Dialog 打开Curseforge mod对话框 - + Open Website Link 打开网站链接 - + Copy Website Link 复制网站链接 @@ -984,7 +1047,7 @@ CurseforgeModItemWidget - + Download 下载 @@ -1017,29 +1080,29 @@ %1:%2 - - + + Downloads 次下载 - + Downloading 下载中 - - + + Downloaded 已下载 - + Translate summary 翻译简介 - + Untranslate summary 取消翻译简介 @@ -1063,7 +1126,7 @@ Form - + Downloader 下载器 @@ -1189,6 +1252,94 @@ 上传:%1 + + DownloaderInfoWidget + + + Form + Form + + + + Filen Name: + 文件名称: + + + + Save Folder: + 保存文件夹 : + + + + Completed Length: + 已下载长度: + + + + Total Length: + 总长度: + + + + Download Speed: + 下载速度: + + + + Upload Speed: + 上传速度: + + + + Connections: + 连接: + + + + Num Pieces: + 片段数量: + + + + Piece Length: + 片段长度: + + + + Status: + 状态: + + + + Active + 进行中 + + + + Waiting + 等待中 + + + + Paused + 已暂停 + + + + Complete + 已完成 + + + + Error + 错误 + + + + Removed + 已移除 + + DownloaderItemWidget @@ -1252,30 +1403,43 @@ 打开文件夹 + + DownloaderSpeedWidget + + + Download + 下载 + + + + Upload + 上传 + + ExploreBrowser - + Visit %1 访问%1 - + Refresh Mods 刷新mods - + Open in New Dialog 在新对话框中打开 - + Searching mods... 搜索mod中... - + Failed loading 加载失败 @@ -2224,17 +2388,17 @@ Depends - + 依赖 Conflicts - + 冲突 Breaks - + 无法共存 @@ -2284,17 +2448,17 @@ 信息 - + Homepage 主页 - + Sources 源码 - + Issues 问题 @@ -2306,53 +2470,53 @@ ... - + Description: 描述: - + Websites: 网站: - + File 文件 - + File Name: 文件名称: - + Edit 编辑 - + File Size: 文件大小: - + 2.33 MB - + Created Time: 创建时间: - - + + TextLabel TextLabel - + Modified Time: 修改时间: @@ -2478,22 +2642,22 @@ %1:%2 - + Path: 路径: - + Game Version: 游戏版本: - + Loader Type: 加载器类型: - + Non mod jar files: 非mod的jar文件: @@ -2887,32 +3051,31 @@ ModManager - ModManager - Mod管理器 + Mod管理器 - + &Tools 工具 (&T) - + &Help 帮助 (&H) - + &View 视图 (&V) - + Tags 标签 - + &Path 路径 (&P) @@ -2925,12 +3088,12 @@ 路径 - + Mod Infomation mod信息 - + File List 文件列表 @@ -2939,7 +3102,7 @@ &Mod - + Manage Local Paths 管理本地Mod路径 @@ -2948,75 +3111,80 @@ Ctrl+L - + + Ctrl+, + Ctrl+, + + + New Paths 新建路径 + - Open New Path Dialog 打开新建路径对话框 + - Next Page 下一页 - + Ctrl+Tab Ctrl+Tab - + Previous Page 上一页 - + Ctrl+Shift+Tab Ctrl+Shift+Tab - + Show Mod Authors 显示mod作者 - + About Qt 关于Qt - + Show Mod Release Type 显示mod发布类型 - + Show Mod Game Version 显示mod游戏版本 - - + + Lock Panels 锁定面板 - + Clear Unmatched File Link Caches 清除未匹配的文件链接缓存 - + Curseforge Modpack Curseforge整合包 - + Check Mod Manager Update 检查Mod管理器更新 @@ -3025,27 +3193,27 @@ 打开新建路径对话框 - + Ctrl+Shift+N Ctrl+Shift+N - + Select A Directory... 选择一个路径... - + Ctrl+N Ctrl+N - + Select Multiple Directories... 选择多个路径... - + Ctrl+Alt+N Ctrl+Alt+N @@ -3058,32 +3226,32 @@ F5 - + Show Mod Date Time 显示mod日期时间 - + Show Mod Category 显示mod类别 - + Show Mod Loader Type 显示mod加载器类型 - + Preferences 偏好设置 - + &New Local Path 新建本地路径 (&N) - + Local Paths 本地路径 @@ -3092,26 +3260,25 @@ Mod - + Page Selector 页面选择器 - + Import 导入 - Ctrl+P - Ctrl+P + Ctrl+P Manage Local Mod Browser 管理本地Mod浏览器 - + &About Mod Manager 关于Mod管理器 (&A) @@ -3148,12 +3315,12 @@ 下载器 - + New Mod Path 新建mod路径 - + Edit 编辑 @@ -3167,80 +3334,80 @@ Mod管理器 - + Unlock Panels 解锁面板 - + Reload 重新加载 - - + + Delete 删除 - + Delete this mod path? 删除该mod路径? - + Select your mod directory... 选择你的mod路径... - + Select your mod directories... 选择你的mod路径... - + Clear Caches 清除缓存 - + Clear unmatched file links? By doing this, we will recheck those files unmatched before. 清除未匹配的文件链接? 这么做之后,我们会重新检查之前未匹配的文件。 - + Select a modpack 选择一个整合包 - + Invalid File 无效文件 - + Selected file is not a modpack 选择的文件不是整合包 - + Update Mod Manager: %1 更新Mod管理器:%1 - + Mod Manager is Latest Mod管理器是最新版 - + Update Ready 更新就绪 - + Update Mod Manager to %1 now? 现在将Mod管理器更新至%1? @@ -3276,7 +3443,7 @@ By doing this, we will recheck those files unmatched before. 在您的平台上没有可用的自动更新,请手动更新。 - + Do not show again 不再显示 @@ -3284,62 +3451,101 @@ By doing this, we will recheck those files unmatched before. ModrinthAPI - + World generation 世界生成 - + Technology 科技 - + + Economy + 经济 + + + Food 食物 - + + Game Mechanics + 游戏机制 + + + Magic 魔法 - + + Management + 管理 + + + + Minigame + 小游戏 + + + + Mobs + 生物 + + + + Optimization + 优化 + + + + Social + 社会 + + + Storage 仓储 - + Library - + Adventure 冒险 - + + Transportation + 交通运输 + + + Utility 工具 - + Decoration 装饰 - Miscellaneous - 杂项 + 杂项 - + Equipment 装备 - + Cursed Cursed @@ -3507,7 +3713,7 @@ By doing this, we will recheck those files unmatched before. 下载量 - + Updated 最近更新 @@ -3517,37 +3723,42 @@ By doing this, we will recheck those files unmatched before. 最新 - + + Follows + 跟随数 + + + &Mod &Mod - + Download 下载 - + M&odrinth Modrinth(&O) - + Tool Bar 工具栏 - + Search Bar 搜索栏 - + Categories 类别 - + Game Versions 游戏版本 @@ -3556,17 +3767,17 @@ By doing this, we will recheck those files unmatched before. 路径 (&P) - + Select Game Version 选择游戏版本 - + Select Category 选择类别 - + &View 视图 (&V) @@ -3575,17 +3786,17 @@ By doing this, we will recheck those files unmatched before. 打开文件夹 - + Copy Website Link 复制网站链接 - + Open Website Link 打开网站链接 - + Open Modrinth Mod Dialog 打开Modrinth mod对话框 @@ -3692,22 +3903,22 @@ By doing this, we will recheck those files unmatched before. Dialog - + Author: 作者: - + Description 描述 - + Files 文件 - + Website 网站 @@ -3747,27 +3958,27 @@ By doing this, we will recheck those files unmatched before. %1:%2 - + Translate summary 翻译简介 - + Untranslate summary 取消翻译简介 - + Copy Website Link 复制网站链接 - + Open Website Link 打开网站链接 - + Open Modrinth Mod Dialog 打开Modrinth mod对话框 @@ -3812,14 +4023,14 @@ By doing this, we will recheck those files unmatched before. 0 KB/s - - + + Download 下载 - - + + Downloads 次下载 @@ -3832,23 +4043,23 @@ By doing this, we will recheck those files unmatched before. %1:%2 - + Downloading 下载中 - - + + Downloaded 已下载 - + Translate summary 翻译简介 - + Untranslate summary 取消翻译简介 @@ -3889,6 +4100,7 @@ By doing this, we will recheck those files unmatched before. + Search mod on OptiFine... 在OptiFine上搜索mod... @@ -3914,6 +4126,7 @@ By doing this, we will recheck those files unmatched before. + Get OptiFabric 获取OptiFabric @@ -3923,24 +4136,29 @@ By doing this, we will recheck those files unmatched before. + Show Preview 显示预览版本 + Game Version: 游戏版本: + Save To: - 保存至: + 保存至: + ... - ... + ... + Get OptiForge 获取OptiForge @@ -4043,38 +4261,38 @@ By doing this, we will recheck those files unmatched before. 常规 - + Search mods on startup 在启动时搜索mod - + Show categories and versions selector in tool bar 在工具栏中显示类编和版本选择器 - + Your common mods folder... 你常用的mod文件夹... - - + + ... ... - + Auto fetch Modrinth file list 自动获取Modrinth文件列表 - + Common path: 常用路径: - + Download path: 下载路径: @@ -4133,62 +4351,67 @@ By doing this, we will recheck those files unmatched before. 使用系统图标主题 - + UI style: UI风格: - + Language: 语言: - + No Update 不更新 - + Release 正式版 - + Develop 开发版 - + Mod Manager update: Mod管理器更新: - + + Copy + 复制 + + + Explore 探索 - + Your mods download folder... 你的mod下载文件夹... - + Search result count: 搜索结果数量: - + OptiFine version source: OptiFine版本来源: - + Official Website 官方网站 - + BMCLAPI BMCLAPI @@ -4197,27 +4420,27 @@ By doing this, we will recheck those files unmatched before. 在Modrinth选项卡中显示快照版本 - + Pages 页面 - + Show Curseforge 显示Curseforge - + Show Modrinth 显示Modrinth - + Show OptiFine 显示OptiFine - + Show ReplayMod 显示ReplayMod @@ -4272,172 +4495,172 @@ By doing this, we will recheck those files unmatched before. UI风格: - + Local 本地 - + Load mods on startup 在启动时加载mod - + Mod List mod列表 - + Update 更新 - + Game version match: 游戏版本匹配: - + Minor Version 小版本号 - + Major Version 大版本号 - + Update check interval: 更新检查间隔: - + Always 总是 - + Every Day 每天 - + Never 从不 - + Operation on old files after update: 旧文件在更新后: - + Delete Immediately 立即删除 - + Keep Until Confirm 保留直至确认 - + Do Nothing 不做任何事 - + Update Release Type 更新发布类型 - + Beta Beta - + Alpha Alpha - + Aria2 Aria2 - + Timeout: 超时: - + Max tries: 最大尝试次数: - + Max concurrent downloads: 最大并行下载数: - + Network request timeout: 网络请求超时: - + Type: 类型: - + Default 默认 - + SOCKS 5 SOCKS 5 - + No Proxy 无代理 - + HTTP HTTP - + Caching-only HTTP Caching-only HTTP - + Caching FTP Caching FTP - + Host name: 主机名: - + Port: 端口: - + User: 用户: - + Password: 密码: @@ -4446,27 +4669,27 @@ By doing this, we will recheck those files unmatched before. 网络请求超时: - + Right-click tag menu: 右键标签菜单: - + All available tags 所有可用标签 - + Tags in currentt path 当前路径中的标签 - + Disabled mods at bottom 已禁用的mod置底 - + Starred mods at top 星标mod置顶 @@ -4479,37 +4702,37 @@ By doing this, we will recheck those files unmatched before. 下载线程数量: - + Update Source 更新来源 - + Curseforge Curseforge - + Modrinth Modrinth - + Mod loader match: mod加载器匹配: - + Exact Match 精确匹配 - + Include Unmarked 包含未标注的 - + Network 网络 @@ -4518,22 +4741,22 @@ By doing this, we will recheck those files unmatched before. 下载 - + Proxy 代理 - + Follow System 跟随系统 - + Select your mod directory... 选择你的mod目录... - + Select default mod download directory... 选择默认的mod下载路径... @@ -4589,32 +4812,32 @@ By doing this, we will recheck those files unmatched before. 1.11MB - + Active 进行中 - + Waiting 等待中 - + Paused 已暂停 - + Complete 已完成 - + Error 错误 - + Removed 已移除 @@ -4626,8 +4849,8 @@ By doing this, we will recheck those files unmatched before. QObject - - + + Any 任意 @@ -4712,52 +4935,52 @@ By doing this, we will recheck those files unmatched before. 自定义标签 - + %1 seconds %1秒钟 - + %1 minutes %1分钟 - + %1 hours %1小时 - + %1 days %1天 - + %1 years %1年 - + %1 months %1月 - + Basic 基础 - + Light 明亮 - + Dark 黑暗 - + None @@ -5223,6 +5446,41 @@ By doing this, we will recheck those files unmatched before. Puzzle 解谜 + + + KubeJS + KubeJS + + + + Bug Fixes + 漏洞修复 + + + + Create + 创造 + + + + Performance + 性能 + + + + Education + 教育 + + + + Galacticraft + 星系 + + + + Integrated Dynamics + 内置动态 + Utility QoL 工具生活质量 @@ -5232,32 +5490,32 @@ By doing this, we will recheck those files unmatched before. 工具 - + Custom Download 自定义下载 - + Embedded Library 内嵌库 - + Incompatible 不兼容 - + Optional Dependency 可选依赖 - + Required Dependency 必需依赖 - + Tool 工具 @@ -5343,6 +5601,11 @@ By doing this, we will recheck those files unmatched before. Remove tag 移除标签 + + + Mod Manager + Mod管理器 + ReplayManagerModel @@ -5481,8 +5744,7 @@ By doing this, we will recheck those files unmatched before. Form - - + %1: %2 %1:%2 diff --git a/languages/zh_TW.ts b/languages/zh_TW.ts index fa993b0c..0ee245cf 100644 --- a/languages/zh_TW.ts +++ b/languages/zh_TW.ts @@ -9,32 +9,32 @@ 關於Mod管理器 - + Infomation 信息 - + Author: 作者: - + License: 許可證: - + Credit: 致謝: - + Description 描述 - + Mod Manager is a multi-functional application for managing minecraft mods. You can easily download mods from Curseforge or Modrinth to local or update local mods through this application. Hope you can enjoy the convenience brought by this application. If possible, please star it on GitHub and share to friends. Mod管理器是一個多功能的用於管理mod的應用。通過該應用,你可以輕鬆地從Curseforge或Modrinth上下載mod或者更新本地的mod。 @@ -46,12 +46,12 @@ # Mod管理器 - + Sources 源碼 - + Issues 問題 @@ -97,46 +97,46 @@ 存在空或重複的文件名! - + oringinal file name 原始文件名稱 - - - - - + + + + + Add to pattern 添加至命名格式 - + mod id mod id - + mod name mod名稱 - + mod version mod版本 - + categoried and formatted tag list 分類及格式化的標籤列表 - + <html><head/><body><p><br/></p></body></html> <html><head/><body><p><br/></p></body></html> - + Name pattern: 命名格式: @@ -511,7 +511,7 @@ - + Download 下載 @@ -541,33 +541,28 @@ - - %1 File: %2 - - - - + Downloading 下載中 - - + + Downloaded 已下載 - + [Current] [當前] - + Copy download link 複製下載鏈接 - + Set as current 設為當前 @@ -578,6 +573,28 @@ Form Form + + + All + + + + + Select Game Version + + + + + + Any + 任意 + + + + + Game Version : %1 + + CurseforgeImagePopup @@ -589,53 +606,53 @@ CurseforgeManagerModel - + Name 名稱 - + Project ID - + Slug - + Authors - + Categories - + Website Link - + Date Modified - + Date Created 創建時間 - + Date Released - - Loader Types + + Popularity Rank @@ -643,11 +660,6 @@ Download Count - - - Popularity Score - - Summary @@ -661,29 +673,33 @@ Form + Game Version: - 遊戲版本: + 遊戲版本: + Category: - 類別: + 類別: + Mod Loader: mod加載器: + Save To: - 保存至: + 保存至: - + &Mod - + Download 下載 @@ -696,100 +712,125 @@ 打開文件夾 - + + Early Access + + + + + Featured Released + + + + + Released Date + + + + + Rating + + + + Tool Bar - + Search Bar - + &Curseforge - + Select Game Version - + Select Category - + &View 視圖 (&V) - + Categories - + Game Versions - + Mod - + World - + Modpacks - + Texturepacks - + Copy Website Link - + Open Curseforge Mod Dialog - + Open Website Link + ... - ... + ... + Search mod on Curseforge... 在Curseforge上搜索mod... + Sort: - 排序: + 排序: - + + Category 類別 - + + Game Version 遊戲版本 @@ -802,35 +843,45 @@ 創建時間 - + + Last Updated 最後更新 - + + Name 名稱 - + + Popularity 熱門 - + + Featured + + + + + Author 作者 - + + Total Downloads 下載總量 - - - - + + + + Any 任意 @@ -839,15 +890,15 @@ 自定義 - - - + + + Game Version : %1 - - + + Category : %1 @@ -919,27 +970,27 @@ - Curseforge - + Translate summary - + Untranslate summary - + Open Curseforge Mod Dialog - + Open Website Link - + Copy Website Link @@ -952,7 +1003,7 @@ - + Download 下載 @@ -989,29 +1040,29 @@ %1前 - - + + Downloads 次下載 - + Downloading 下載中 - - + + Downloaded 已下載 - + Translate summary - + Untranslate summary @@ -1035,7 +1086,7 @@ Form - + Downloader 下載器 @@ -1157,6 +1208,94 @@ + + DownloaderInfoWidget + + + Form + Form + + + + Filen Name: + + + + + Save Folder: + + + + + Completed Length: + + + + + Total Length: + + + + + Download Speed: + 下載速度: + + + + Upload Speed: + 上傳速度: + + + + Connections: + + + + + Num Pieces: + + + + + Piece Length: + + + + + Status: + + + + + Active + 進行中 + + + + Waiting + 等待中 + + + + Paused + 已暫停 + + + + Complete + 已完成 + + + + Error + 錯誤 + + + + Removed + 已移除 + + DownloaderItemWidget @@ -1216,30 +1355,43 @@ 打開文件夾 + + DownloaderSpeedWidget + + + Download + 下載 + + + + Upload + + + ExploreBrowser - + Visit %1 訪問%1 - + Refresh Mods - + Open in New Dialog - + Searching mods... - + Failed loading @@ -2180,68 +2332,68 @@ 作者: - + Description: 描述: - + Websites: 網站: - + Homepage 主頁 - + Sources 源碼 - + Issues 問題 - + File 文件 - + File Name: 文件名稱: - + Edit 編輯 - + File Size: 文件大小: - + 2.33 MB - + Created Time: 創建時間: - - + + TextLabel - + Modified Time: 修改時間: @@ -2382,22 +2534,22 @@ Form - + Path: 路徑: - + Game Version: 遊戲版本: - + Loader Type: - + Non mod jar files: @@ -2795,32 +2947,31 @@ ModManager - ModManager - Mod管理器 + Mod管理器 - + &Tools 工具 (&T) - + &Help 幫助 (&H) - + &View 視圖 (&V) - + Tags 標籤 - + &Path 路徑 (&P) @@ -2833,17 +2984,17 @@ 路徑 - + Mod Infomation mod信息 - + File List 文件列表 - + Manage Local Paths @@ -2852,120 +3003,125 @@ Ctrl+L - + New Paths 新建路徑 + - Open New Path Dialog 打開新建路徑對話框 + - Next Page 下一頁 - + Ctrl+Tab Ctrl+Tab - + Previous Page 上一頁 - + Ctrl+Shift+Tab Ctrl+Shift+Tab - + Show Mod Authors 顯示mod作者 - + About Qt 關於Qt - + Show Mod Release Type - + Show Mod Game Version - - + + Lock Panels - + Clear Unmatched File Link Caches - + Curseforge Modpack - + Check Mod Manager Update - + Ctrl+Shift+N Ctrl+Shift+N - + &New Local Path - + Local Paths - + Page Selector 頁面選擇器 - + Import - + + Ctrl+, + + + + Select A Directory... 選擇一個路徑... - + Ctrl+N Ctrl+N - + Select Multiple Directories... 選擇多個路徑... - + Ctrl+Alt+N Ctrl+Alt+N @@ -2978,36 +3134,35 @@ F5 - + Show Mod Date Time 顯示mod日期時間 - + Show Mod Category 顯示mod類別 - + Show Mod Loader Type 顯示mod加載器類型 - + Preferences 偏好設置 - Ctrl+P - Ctrl+P + Ctrl+P Manage Local Mod Browser 管理本地Mod瀏覽器 - + &About Mod Manager 關於Mod管理器 (&A) @@ -3044,7 +3199,7 @@ 下載器 - + New Mod Path 新建mod路徑 @@ -3058,84 +3213,84 @@ - + Unlock Panels - + Edit 編輯 - + Reload 重新加載 - - + + Delete 刪除 - + Delete this mod path? 刪除該mod路徑? - + Select your mod directory... 選擇你的mod路徑... - + Select your mod directories... 選擇你的mod路徑... - + Clear Caches - + Clear unmatched file links? By doing this, we will recheck those files unmatched before. - + Select a modpack - + Invalid File - + Selected file is not a modpack - + Update Mod Manager: %1 - + Mod Manager is Latest - + Update Ready - + Update Mod Manager to %1 now? @@ -3161,7 +3316,7 @@ By doing this, we will recheck those files unmatched before. - + Do not show again @@ -3169,62 +3324,101 @@ By doing this, we will recheck those files unmatched before. ModrinthAPI - + World generation 世界生成 - + Technology 科技 - + + Economy + + + + Food 食物 - + + Game Mechanics + + + + Magic 魔法 - + + Management + + + + + Minigame + + + + + Mobs + 生物 + + + + Optimization + + + + + Social + + + + Storage 倉儲 - + Library - + Adventure 冒險 - + + Transportation + + + + Utility 工具 - + Decoration 裝飾 - Miscellaneous - 雜項 + 雜項 - + Equipment 裝備 - + Cursed Cursed @@ -3387,7 +3581,7 @@ By doing this, we will recheck those files unmatched before. 下載量 - + Updated 最近更新 @@ -3397,37 +3591,42 @@ By doing this, we will recheck those files unmatched before. 最新 - + + Follows + + + + &Mod - + Download 下載 - + M&odrinth - + Tool Bar - + Search Bar - + Categories - + Game Versions @@ -3436,17 +3635,17 @@ By doing this, we will recheck those files unmatched before. 路徑 (&P) - + Select Game Version - + Select Category - + &View 視圖 (&V) @@ -3455,17 +3654,17 @@ By doing this, we will recheck those files unmatched before. 打開文件夾 - + Copy Website Link - + Open Website Link - + Open Modrinth Mod Dialog @@ -3565,22 +3764,22 @@ By doing this, we will recheck those files unmatched before. Dialog - + Author: 作者: - + Description 描述 - + Files 文件 - + Website 網站 @@ -3616,27 +3815,27 @@ By doing this, we will recheck those files unmatched before. - Modrinth - + Translate summary - + Untranslate summary - + Copy Website Link - + Open Website Link - + Open Modrinth Mod Dialog @@ -3681,8 +3880,8 @@ By doing this, we will recheck those files unmatched before. 0 KB/s - - + + Downloads 次下載 @@ -3691,29 +3890,29 @@ By doing this, we will recheck those files unmatched before. %1前 - + Downloading 下載中 - - + + Downloaded 已下載 - - + + Download 下載 - + Translate summary - + Untranslate summary @@ -3754,16 +3953,19 @@ By doing this, we will recheck those files unmatched before. + Game Version: 遊戲版本: + Search mod on OptiFine... 在OptiFine上搜索mod... + Show Preview 顯示預覽版本 @@ -3792,20 +3994,24 @@ By doing this, we will recheck those files unmatched before. 打開文件夾 + Save To: - 保存至: + 保存至: + ... - ... + ... + Get OptiForge 獲取OptiForge + Get OptiFabric 獲取OptiFabric @@ -3896,23 +4102,23 @@ By doing this, we will recheck those files unmatched before. 常規 - + Auto fetch Modrinth file list - + Common path: 常用路徑: - + Your common mods folder... 你常用的mod文件夾... - - + + ... ... @@ -3967,67 +4173,72 @@ By doing this, we will recheck those files unmatched before. - + UI style: - + + Copy + + + + Language: - + No Update - + Release - + Develop - + Mod Manager update: - + Explore 探索 - + Download path: 下載路徑: - + Your mods download folder... 你的mod下載文件夾... - + Search result count: 搜索結果數量: - + OptiFine version source: OptiFine版本來源: - + Official Website 官方網站 - + BMCLAPI BMCLAPI @@ -4036,27 +4247,27 @@ By doing this, we will recheck those files unmatched before. 在Modrinth選項卡中顯示快照版本 - + Pages 頁面 - + Show Curseforge 顯示Curseforge - + Show Modrinth 顯示Modrinth - + Show OptiFine 顯示OptiFine - + Show ReplayMod 顯示ReplayMod @@ -4099,242 +4310,242 @@ By doing this, we will recheck those files unmatched before. UI風格: - + Local 本地 - + Load mods on startup - + Mod List mod列表 - + Update 更新 - + Game version match: 遊戲版本匹配: - + Minor Version 小版本號 - + Major Version 大版本號 - + Update check interval: 更新檢查間隔: - + Always 總是 - + Every Day 每天 - + Never 從不 - + Update Source 更新來源 - + Curseforge Curseforge - + Modrinth Modrinth - + Operation on old files after update: 舊文件在更新後: - + Delete Immediately 立即刪除 - + Keep Until Confirm 保留直至確認 - + Do Nothing 不做任何事 - + Update Release Type - + Beta - + Alpha - + Aria2 Aria2 - + Timeout: 超時: - + Max tries: 最大嘗試次數: - + Max concurrent downloads: 最大並行下載數: - + Network request timeout: - + Type: - + Default 默認 - + SOCKS 5 - + No Proxy - + HTTP - + Caching-only HTTP - + Caching FTP - + Host name: - + Port: - + User: - + Password: - + Right-click tag menu: 右鍵標籤菜單: - + All available tags 所有可用標籤 - + Tags in currentt path 當前路徑中的標籤 - + Disabled mods at bottom 已禁用的mod置底 - + Starred mods at top 星標mod置頂 - + Search mods on startup - + Show categories and versions selector in tool bar - + Mod loader match: mod加載器匹配: - + Exact Match 精確匹配 - + Include Unmarked 包含未標註的 - + Network 網絡 @@ -4351,22 +4562,22 @@ By doing this, we will recheck those files unmatched before. 下載線程數量: - + Proxy 代理 - + Follow System - + Select your mod directory... 選擇你的mod路徑... - + Select default mod download directory... 選擇默認的mod下載路徑... @@ -4414,32 +4625,32 @@ By doing this, we will recheck those files unmatched before. 1.11MB - + Active 進行中 - + Waiting 等待中 - + Paused 已暫停 - + Complete 已完成 - + Error 錯誤 - + Removed 已移除 @@ -4447,8 +4658,8 @@ By doing this, we will recheck those files unmatched before. QObject - - + + Any 任意 @@ -4533,52 +4744,52 @@ By doing this, we will recheck those files unmatched before. 自定義標籤 - + %1 seconds %1秒鐘 - + %1 minutes %1分鐘 - + %1 hours %1小時 - + %1 days %1天 - + %1 years %1年 - + %1 months %1月 - + Basic 基礎 - + Light 明亮 - + Dark 黑暗 - + None @@ -5004,37 +5215,72 @@ By doing this, we will recheck those files unmatched before. Puzzle + + + KubeJS + + + + + Bug Fixes + + + + + Create + + + + + Performance + + + + + Education + + + + + Galacticraft + + + + + Integrated Dynamics + + Utility 工具 - + Custom Download - + Embedded Library - + Incompatible - + Optional Dependency - + Required Dependency - + Tool @@ -5120,6 +5366,11 @@ By doing this, we will recheck those files unmatched before. Remove tag 移除標籤 + + + Mod Manager + + ReplayManagerModel @@ -5246,8 +5497,7 @@ By doing this, we will recheck those files unmatched before. Form - - + %1: %2 diff --git a/src/download/qaria2.cpp b/src/download/qaria2.cpp index 3d3455ab..9bda14be 100644 --- a/src/download/qaria2.cpp +++ b/src/download/qaria2.cpp @@ -46,6 +46,9 @@ QAria2::QAria2(QObject *parent) : QObject(parent) connect(qApp, &QCoreApplication::aboutToQuit, this, [=]{ aria2::shutdown(session_); MMLogger() << "aria2 shutdown."; + // FIXME: sometime app donot exit after close + // (when local mod linked) + qTerminate(); }); updateOptions(); } diff --git a/src/images/image.qrc b/src/images/image.qrc index 1ea4f303..ced2bbf3 100644 --- a/src/images/image.qrc +++ b/src/images/image.qrc @@ -31,6 +31,7 @@ modrinth/transportation.svg liteloader.png rift.png + modrinth/game-mechanics.svg diff --git a/src/images/modrinth/game-mechanics.svg b/src/images/modrinth/game-mechanics.svg new file mode 100644 index 00000000..ad44d0f2 --- /dev/null +++ b/src/images/modrinth/game-mechanics.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/local/localmod.cpp b/src/local/localmod.cpp index 18f6d61c..f29c2ba7 100644 --- a/src/local/localmod.cpp +++ b/src/local/localmod.cpp @@ -671,27 +671,27 @@ void LocalMod::updateIcon() emit modIconUpdated(); return; } - auto applyIcon = [=]{ - if(isDisabled()){ - QImage image(icon_.toImage()); + static auto applyIcon = [](LocalMod *p){ + if(p->isDisabled()){ + QImage image(p->icon_.toImage()); auto alphaChannel = image.convertToFormat(QImage::Format_Alpha8); image = image.convertToFormat(QImage::Format_Grayscale8); image.setAlphaChannel(alphaChannel); - icon_.convertFromImage(image); + p->icon_.convertFromImage(image); } - emit modIconUpdated(); + emit p->modIconUpdated(); }; if(!commonInfo()->iconBytes().isEmpty()){ icon_.loadFromData(commonInfo()->iconBytes()); - applyIcon(); + applyIcon(this); }else if(commonInfo()->id() == "optifine") { icon_.load(":/image/optifine.png"); - applyIcon(); + applyIcon(this); }else if(curseforgeMod_){ auto setCurseforgeIcon = [=]{ icon_ = curseforgeMod_->modInfo().icon(); - applyIcon(); + applyIcon(this); }; if(!curseforgeMod_->modInfo().icon().isNull()) setCurseforgeIcon(); @@ -705,7 +705,7 @@ void LocalMod::updateIcon() } else if(modrinthMod_){ auto setModrinthIcon = [=]{ icon_ = modrinthMod_->modInfo().icon(); - applyIcon(); + applyIcon(this); }; if(!modrinthMod_->modInfo().icon().isNull()) setModrinthIcon(); @@ -718,7 +718,7 @@ void LocalMod::updateIcon() } } else{ icon_.load(":/image/modmanager.png"); - applyIcon(); + applyIcon(this); } } diff --git a/src/local/localmodfile.cpp b/src/local/localmodfile.cpp index 311b4493..2c2ea3c8 100644 --- a/src/local/localmodfile.cpp +++ b/src/local/localmodfile.cpp @@ -31,8 +31,8 @@ LocalModFile::~LocalModFile() ModLoaderType::Type LocalModFile::loadInfo() { - auto timer = new QElapsedTimer; - timer->start(); + // auto timer = new QElapsedTimer; + // timer->start(); if(type() == NotMod) return ModLoaderType::Any; QFile modFile(path_); @@ -87,7 +87,6 @@ ModLoaderType::Type LocalModFile::loadInfo() } } - //qDebug() << "finish" << timer->elapsed(); //for count diff --git a/src/local/localmodpath.cpp b/src/local/localmodpath.cpp index 01c2c640..3c1a3f79 100644 --- a/src/local/localmodpath.cpp +++ b/src/local/localmodpath.cpp @@ -190,7 +190,7 @@ void LocalModPath::loadMods(bool autoLoaderType) //delete unused files nonModFiles_.clear(); for(const auto &file : qAsConst(modFileList)){ - if(!file->parent()){ + if(file->parent() == this){ nonModFiles_ << file->fileInfo().fileName(); file->deleteLater(); } diff --git a/src/modrinth/modrinthapi.cpp b/src/modrinth/modrinthapi.cpp index 0ef32df3..709555c7 100644 --- a/src/modrinth/modrinthapi.cpp +++ b/src/modrinth/modrinthapi.cpp @@ -230,6 +230,7 @@ const QList > &ModrinthAPI::getCategories() { tr("Economy"), "economy" }, { tr("Equipment"), "equipment" }, { tr("Food"), "food" }, + { tr("Game Mechanics"), "game-mechanics" }, { tr("Library"), "library" }, { tr("Magic"), "magic" }, { tr("Management"), "management" }, diff --git a/src/modrinth/modrinthmodinfo.cpp b/src/modrinth/modrinthmodinfo.cpp index 0dc42deb..01e6ac68 100644 --- a/src/modrinth/modrinthmodinfo.cpp +++ b/src/modrinth/modrinthmodinfo.cpp @@ -85,7 +85,6 @@ ModrinthModInfo ModrinthModInfo::fromVariant(const QVariant &variant) if(it != ModrinthAPI::getCategories().end()){ auto [name, iconName] = *it; modInfo.importTag(Tag(name, TagCategory::ModrinthCategory, ":/image/modrinth/" + iconName)); - qDebug() << iconName; } else if(auto loaderType = ModLoaderType::fromString(categoryId); loaderType != ModLoaderType::Any && ModLoaderType::modrinth.contains(loaderType)){ modInfo.loaderTypes_ << loaderType; diff --git a/src/ui/modmanager.cpp b/src/ui/modmanager.cpp index 0a30e8fc..561c3ec5 100644 --- a/src/ui/modmanager.cpp +++ b/src/ui/modmanager.cpp @@ -206,7 +206,7 @@ void ModManager::updateLockPanels() void ModManager::closeEvent(QCloseEvent *event[[maybe_unused]]) { emit closed(); -// qDebug() << "closed"; + qDebug() << "closed"; } #if defined (DE_KDE) || defined (Q_OS_WIN)