-
-
Notifications
You must be signed in to change notification settings - Fork 249
feat(i18n): add Simplified Chinese for i18n #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
bb0d83d
a2de82c
8839437
6c42e23
c17625f
ed47b23
b9e1163
63ba133
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| { | ||
| "button": { | ||
| "moveStorage": "移动存储位置", | ||
| "openStorage": "打开对应路径", | ||
| "fromMassCodeV1": "来自massCode v1.0", | ||
|
||
| "fromSnippetsLab": "来自SnippetsLab", | ||
| "confirm": "确认", | ||
| "cancel": "取消", | ||
| "update": ["前往 GitHub", "OK"] | ||
| }, | ||
| "newFolder": "新建文件夹", | ||
| "newSnippet": "新建代码片段", | ||
| "newFragment": "新建子片段", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 考虑是否把Snippet翻译为代码块,而Fragment范围为代码片段。昨晚我纠结了好久,这两个单词它们是近义词。话说,“子”字也体现了他们之间的大小和关系。实际上,我到现在也没搞懂,怎么使用Fragment
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个主要是为了显示css和html。在其他语言中,也可以作为类,和这个类的使用案例。当然也可以作为文件名字 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sangyuxiaowu 悲催的是,我不是前端,一下子get不到用途。怎么在vs code使用某个Snippet下的某个Fragment
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 不能叫代码块哦,代码块专指{}这种,用来区分作用域的。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 恩。
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 我全栈还好,学的比较杂。前后端,嵌入式,AI 都有些许涉猎。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sangyuxiaowu 我有软件工程师证,但我没有从事这个行业。前端的知识基本上用不上 ^_^ |
||
| "addDescription": "添加描述", | ||
| "addToFavorites": "添加至收藏夹", | ||
| "addTag": "添加标签", | ||
| "rename": "重命名", | ||
| "duplicate": "复制", | ||
| "delete": "删除", | ||
| "deleteNow": "现在删除", | ||
|
||
| "defaultLanguage": "默认语言", | ||
| "removeFromFavorites": "从收藏夹移除", | ||
| "emptyTrash": "清空回收站", | ||
| "close": "关闭", | ||
| "folder": { | ||
| "untitled": "未命名文件夹", | ||
| "plural": "文件夹" | ||
| }, | ||
| "snippet": { | ||
| "untitled": "未命名代码片段", | ||
| "plural": "代码片段", | ||
| "emptyName": "请输入该代码片段名称", | ||
| "selectedMultiple": "已选中{{count}}个代码片段", | ||
| "noSelected": "未选中任何代码片段" | ||
| }, | ||
| "fragment": "子片段", | ||
| "search": "搜索", | ||
| "line": "行", | ||
| "column": "列", | ||
| "sidebar": { | ||
| "inbox": "收件箱", | ||
|
||
| "favorites": "收藏", | ||
|
||
| "allSnippets": "所有代码片段", | ||
| "trash": "回收站", | ||
| "untitled": "未命名文件夹", | ||
| "folders": "自定义文件夹", | ||
| "library": "库", | ||
| "tags": "标签" | ||
| }, | ||
| "darkMode": "深色模式", | ||
| "background": "背景", | ||
| "restartApp": "重启massCode", | ||
| "updateAvailable": "存在新版本" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "deleteConfirm": "你是否确定要永久删除{{name}}?", | ||
| "deleteConfirmMultipleSnippets": "你是否确定要永久删除{{count}}个选中的代码片段?", | ||
| "noUndo": "你将无法恢复此次操作造成的结果。", | ||
|
||
| "allSnippetsMoveToTrash": "本文件夹内的所有代码片段将被移动至回收站。", | ||
| "deleteTag": "这也将导致所有拥有该标签的代码片段的失去该标签。", | ||
|
||
| "emptyTrash": "你是否确定要永久删除回收站内的所有代码片段?", | ||
| "migrateConfirm": [ | ||
| "你是否确定要从{{name}}迁徙?", | ||
| "在迁移过程中,当前的库将被覆盖。" | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| { | ||
| "app": { | ||
| "label": "massCode", | ||
| "preferences": "首选项", | ||
| "update": { | ||
| "label": "检查更新…", | ||
| "message": "新版本{{newVersion}}现在已经可以下载。\n你现在的版本是{{oldVersion}}。", | ||
| "button": ["前往 GitHub", "OK"], | ||
| "noUpdate": "现在没有可用的更新。" | ||
| }, | ||
| "quit": "退出massCode", | ||
| "about": "关于massCode", | ||
| "hide": "最小化massCode", | ||
| "hideOther": "最小化其它窗口", | ||
| "showAll": "显示所有窗口" | ||
| }, | ||
| "help": { | ||
| "label": "帮助", | ||
| "website": "访问官网", | ||
| "documentation": "访问文档", | ||
| "viewInGitHub": "访问GitHub", | ||
| "changeLog": "更新日志", | ||
| "reportIssue": "提交Issue", | ||
| "giveStar": "给个Star", | ||
| "extension": { | ||
| "vscode": "VS Code 插件", | ||
| "raycast": "Raycast 插件", | ||
| "alfred": "Alfred 插件" | ||
| }, | ||
| "donate": { | ||
| "openCollective": "通过Open Collective捐赠", | ||
| "payPal": "通过PayPal捐赠" | ||
| }, | ||
| "twitter": "访问作者Twitter", | ||
| "devTools": "切换至开发者工具" | ||
| }, | ||
| "file": { | ||
| "label": "文件", | ||
| "find": "查找" | ||
| }, | ||
| "view": { | ||
| "label": "查看", | ||
| "sortBy": { | ||
| "label": "排序片段", | ||
|
||
| "dateModified": "根据修改日期", | ||
| "dateCreated": "根据创建日期", | ||
| "name": "根据片段名" | ||
| } | ||
| }, | ||
| "edit": { | ||
| "label": "编辑", | ||
| "undo": "撤销", | ||
| "redo": "恢复", | ||
| "cut": "剪切", | ||
| "copy": "复制", | ||
| "paste": "粘贴", | ||
| "delete": "删除", | ||
| "selectAll": "全选" | ||
| }, | ||
| "editor": { | ||
| "label": "编辑器", | ||
| "copy": "将代码片段复制至剪贴板", | ||
| "format": "格式化", | ||
| "previewMarkdown": "预览Markdown", | ||
| "previewCode": "预览HTML和CSS" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "title": "首选项", | ||
| "storage": { | ||
| "label": "存储", | ||
| "migrate": "迁徙", | ||
|
||
| "count": "计数" | ||
|
||
| }, | ||
| "editor": { | ||
| "label": "编辑器", | ||
| "fontSize": "字体大小", | ||
| "fontFamily": "字体系列", | ||
| "wrap": { | ||
| "label": "自动换行", | ||
| "wordWrap": "开启", | ||
| "off": "关闭" | ||
| }, | ||
| "tabSize": "Tab空格数", | ||
| "showInvisibles": "显示缩进参考线", | ||
|
||
| "highlightLine": "高亮光标所在行整行", | ||
| "highlightGutter": "高亮光标所在行行号", | ||
| "prettier": { | ||
| "label": "Prettier", | ||
| "trailingComma": { | ||
| "label": "尾后逗号", | ||
| "none": "None", | ||
| "all": "All", | ||
| "es6": "ES6" | ||
| }, | ||
| "semi": "句尾添加分号", | ||
| "singleQuote": "使用单引号代替双引号" | ||
| } | ||
| }, | ||
| "appearance": { | ||
| "label": "外观", | ||
| "theme": { | ||
| "label": "主题", | ||
| "light": "浅色", | ||
| "dark": "深色" | ||
| } | ||
| }, | ||
| "language": { | ||
| "label": "Language", | ||
| "en": "English", | ||
| "ru": "Русский", | ||
| "zh": "简体中文" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "description": { | ||
| "storage": "要使用iCloud Drive、Google Drive和Dropbox等同步服务,只需将存储路径设置为相应的同步文件夹即可。", | ||
| "migrate": { | ||
| "1": "从massCode v1.0迁移:选择包含数据库文件的文件夹。", | ||
| "2": "从SnippetsLab迁移:选择JSON文件。", | ||
| "3": [ | ||
| "从SnippetsLab迁移将会遇到一些局限:", | ||
| "所有的文件夹将是第一层,因为JSON文件(低于v2.1)无法表示嵌套的文件夹。", | ||
| "某些片段可能会因为其语言暂时不被massCode而被识别为纯文本。" | ||
| ] | ||
| }, | ||
| "htmlCssPreview": "添加带有HTML和CSS语言的片段来查看预览结果。" | ||
| }, | ||
| "success": { | ||
| "migrate": "数据库迁徙成功。" | ||
| }, | ||
| "error": { | ||
| "folderNotContainDb": "文件夹内不存在 \"db.json\"." | ||
| }, | ||
| "unsponsored": "未赞助的", | ||
|
||
| "supportMessage": "Hi,我是 Anton 👋<br><br>\n感谢你使用massCode。如果你觉得这个应用很有帮助,请{{-tagStart}} 捐赠 {{-tagEnd}}。这将激励我继续开发这个项目。", | ||
| "snippetsShowcase": "代码片段展示区" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议改为“打开当前存储路径”,这样表述更明确
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是两个并列的按钮,所以感觉字数一样比较好,而且打开对应存储路径作为按钮太长了。这个地方其实挺奇怪的,因为路径的位置只有一个,却有两个按钮,虽然针对的对象不一样,但是感觉功能是重叠的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antonreshetov 其实疑惑的时候,可以看看俄文的翻译,对照英文,就会八九不离十
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
折衷一下,觉得“打开当前路径”也比较好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EGQM The actions of the buttons are based on one thing - open path, but the functions are different, the first moves the database to the specified path, the second opens the database from the specified path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这就是为什么我觉得其实功能是重叠的哈哈,这不是可以做成一个“浏览”嘛,如果选中的路径没有db文件就是把现在的db文件移动过去,有就是打开那个db文件。或者后者是“打开”,前者是“浏览”,我一开始就在想这个(指浏览-打开)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antonreshetov 3Q!
@antonreshetov 我看作者的意思也就是“切换存储路径”的意思,如果我没有理解错误的话。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once again, I would like to make it clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.