Skip to content

Commit

Permalink
补充汉化和一些注意事项
Browse files Browse the repository at this point in the history
  • Loading branch information
cngege committed Apr 14, 2024
1 parent 1b48a64 commit bd18ca8
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 8 deletions.
55 changes: 48 additions & 7 deletions json/localization.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"main": [
["&File","文件"],
["New &repository…","新建仓库"],
["Add &local repository…","添加本地仓库"],
["Clo&ne repository…","克隆仓库"],
["&Options…","选项"],
["New &repository…","新建存储库"],
["Add &local repository…","添加本地存储库"],
["Clo&ne repository…","克隆存储库"],
["&Options…","选项"],
["E&xit","退出"],
["&Edit","编辑"],
["&Undo","撤销"],
Expand All @@ -14,10 +14,10 @@
["&Paste","粘贴"],
["Select &all","全选"],
["&Find","查找"],
["&View","视图"],
["&View\"","视图\""],
["&Changes","更改"],
["&History","历史"],
["Repository &list","仓库列表"],
["Repository &list","存储库列表"],
["&Branches list","分支列表"],
["Go to &Summary","转到摘要"],
["Toggle &full screen","切换全屏"],
Expand All @@ -26,7 +26,48 @@
["Zoom out","缩小"],
["&Reload","重载"],
["&Toggle developer tools","切换开发工具"],
["e\\?t\\?\"Force P&ush…\":\"Force P&ush\":\"P&ush\"","e?t?\"强制推送...\":\"强制推送\":\"推送\""]
["e\\?t\\?\"Force P&ush…\":\"Force P&ush\":\"P&ush\"","e?t?\"强制推送…\":\"强制推送\":\"推送\""],
["&Repository","存储库"],
["Pu&ll","拉取"],
["&Fetch","同步"],
["&View on GitHub","在 GitHub 中显示"],
["`O&pen in \\$\\{t\\?\\?\"Command Prompt\"\\}`","`用 ${t??\"命令提示符\"} 打开`"],
["Show in E&xplorer","在文件管理器中显示"],
["`&Open in \\$\\{e\\?\\?\"external editor\"\\}`","`用 ${e??\"默认编辑器\"} 打开`"],
["\"Create &issue on GitHub\"","\"在GitHub中新建议题\""],
["\"Repository &settings…\"","\"存储库设置…\""],
["\"New &branch…\"","\"新建分支…\""],
["\"&Rename…\"","\"重命名…\""],
["\"&Delete…\"","\"删除…\""],
["\"Discard all changes…\"","\"放弃所有更改…\""],
["c\\?\"&Stash all changes…\":\"&Stash all changes\"","c?\"暂存所有更改…\":\"暂存所有更改\""],
["`&Update from \\$\\{a\\}`","`从 ${a} 中更新`"],
["\"&Compare to branch\"","\"在分支中比较\""],
["\"&Merge into current branch…\"","\"合并到当前分支…\""],
["\"Squas&h and merge into current branch…\"","\"压缩合并到当前分支…\""],
["\"R&ebase current branch…\"","\"对当前分支进行变基…\""],
["\"Compare on &GitHub\"","\"在GitHub上比较\""],
["\"View branch on GitHub\"","\"在GitHub上显示分支\""],
["\"Preview pull request\"","\"预览拉取请求\""],
["\"&Branch\"","\"分支\""],
["\"Report issue…\"","\"报告问题…\""],
["\"Failed opening issue creation page\"","\"打开议题页面出错\""],
["\"&Contact GitHub support…\"","\"联系GitHub支持…\""],
["\"Failed opening contact support page\"","\"打开Github支持页出错\""],
["\"Show User Guides\"","\"显示用户指南\""],
["\"Failed opening user guides page\"","\"打开用户指南页出错\""],
["\"Show keyboard shortcuts\"","\"显示快捷键\""],
["\"Failed opening keyboard shortcuts page\"","\"打开键盘快捷键页面失败\""],
["\"S&how logs in Explorer\"","\"在文件管理器中显示日志\""],
["\"Failed opening logs directory\"","\"打开日志文件夹错误\""],
["\"&Help\"","\"帮助\""],
["\"&About GitHub Desktop\"","\"关于GitHub Desktop\""],
["e\\?\"H&ide stashed changes\":\"Sho&w stashed changes\"","e?\"隐藏暂存的更改\":\"显示暂存的更改\""],
["\"&Remove…\":\"&Remove\"","\"删除…\":\"删除\""],
["\"View &pull request on GitHub\":\"Create &pull request\"","\"在GitHub上查看拉取请求\":\"创建拉取请求\""],
["\"\"","\"\""],
["\"\"","\"\""],
["\"\"","\"\""],
],
"renderer": [
["&FileXXXX","文件XXXX"]
Expand Down
4 changes: 3 additions & 1 deletion json/关于一些注意事项.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ $:匹配输入字符串的结束位置。
( 和 ):捕获括号。
\:转义字符。如果你想匹配上述特殊字符的字面值,或者匹配反斜杠本身,你需要在它前面加上 \

6. 待补充
6. json中数组最后一项结尾不可有逗号, 否则无法读取。如:[["xx","xxx"],["",""],]

7. 待补充

0 comments on commit bd18ca8

Please sign in to comment.