Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Zh cn/yodfz #3199

Closed
wants to merge 11 commits into from
Closed
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 36 additions & 5 deletions src/nls/zh-cn/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ define({
"LIVE_DEVELOPMENT_ERROR_TITLE" : "实时预览错误",
"LIVE_DEVELOPMENT_RELAUNCH_TITLE" : "连接至浏览器",
"LIVE_DEVELOPMENT_ERROR_MESSAGE" : "为了应用实时预览,Chrome需要重启并启用远程调试功能.<br /><br />你确定重新启动Chrome浏览器,并且启用远程调试?",
"LIVE_DEV_LOADING_ERROR_MESSAGE" : "无法加载实时开发页面.",
"LIVE_DEV_NEED_HTML_MESSAGE" : "需要打开一个HTML文件才能实时预览.",
"LIVE_DEV_NEED_BASEURL_MESSAGE" : "实时预览需要一个服务端,您需要为这个项目指定一个基本URL地址.(如htt://127.0.0.1/)",
"LIVE_DEV_SERVER_NOT_READY_MESSAGE" : "试图启动HTTP服务器时出现错误,请再试一次.",
Expand Down Expand Up @@ -162,7 +163,7 @@ define({

// File menu commands
"FILE_MENU" : "文件",
"CMD_FILE_NEW" : "新建",
"CMD_FILE_NEW" : "新建文件",
"CMD_FILE_NEW_FOLDER" : "新建目录",
"CMD_FILE_OPEN" : "打开\u2026",
"CMD_ADD_TO_WORKING_SET" : "添加至工作集合",
Expand All @@ -175,6 +176,7 @@ define({
"CMD_LIVE_HIGHLIGHT" : "在线高亮代码",
"CMD_PROJECT_SETTINGS" : "项目设置\u2026",
"CMD_FILE_RENAME" : "重命名",
"CMD_INSTALL_EXTENSION" : "安装扩展",
"CMD_QUIT" : "退出",
// Used in native File menu on Windows
"CMD_EXIT" : "退出",
Expand All @@ -186,11 +188,11 @@ define({
"CMD_CUT" : "剪切",
"CMD_COPY" : "复制",
"CMD_PASTE" : "粘帖",
"CMD_SELECT_ALL" : "选择全部",
"CMD_SELECT_ALL" : "全选",
"CMD_SELECT_LINE" : "选中当前行",
"CMD_FIND" : "查找",
"CMD_FIND_IN_FILES" : "在文件中查找",
"CMD_FIND_IN_SUBTREE" : "查找中\u2026",
"CMD_FIND_IN_SUBTREE" : "在该位置查找\u2026",
"CMD_FIND_NEXT" : "查找下一个",
"CMD_FIND_PREVIOUS" : "查找上一个",
"CMD_REPLACE" : "替换",
Expand Down Expand Up @@ -277,6 +279,7 @@ define({
"KEEP_CHANGES_IN_EDITOR" : "选择编辑器中修改的内容",
"CLOSE_DONT_SAVE" : "放弃保存并关闭",
"RELAUNCH_CHROME" : "重新运行Chrome",
"INSTALL" : "安装",
"ABOUT" : "关于",
"APP_NAME" : "Brackets",
"CLOSE" : "关闭",
Expand All @@ -298,6 +301,35 @@ define({
"BASEURL_ERROR_INVALID_CHAR" : "特殊字符 '{0}' 必须 %-encoded.",
"BASEURL_ERROR_UNKOWN_ERROR" : "解析地址错误,请确认地址格式",

// Extension Management strings
"INSTALL_EXTENSION_TITLE" : "安装扩展",
"INSTALL_EXTENSION_LABEL" : "扩展包地址",
"INSTALL_EXTENSION_HINT" : "填写一个基于URL的ZIP扩展包地址.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my understanding is correct, I think URL and ZIP get flipped in the translation. And translation is missing for the part of "or GitHub repo". We're telling the user either provide the url of the zip file OR the url of the GitHub repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaymondLim I know!

"INSTALLING_FROM" : "正在安装扩展 {0}...",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"from" is missing in your translation. I think it should be

正在从 {0} 安装扩展... where {0} is the url of the extension.

"INSTALL_SUCCEEDED" : "安装成功!",
"INSTALL_FAILED" : "安装失败.",
"INSTALL_CANCELLED" : "安装已取消.",
// These must match the error codes in ExtensionsDomain.Errors.* :
"INVALID_ZIP_FILE" : "{0}不是一个有效的ZIP文件.",
"INVALID_PACKAGE_JSON" : "扩展包中的JSON文件是无效的. (错误是: {0}).",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json is missing here.

"MISSING_PACKAGE_NAME" : "扩展包名称遗失 {0}.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think 遗失 can be used here. And the translation omit the package.json which has to be intact inside your translation. Here we're telling the user that package.json file has missing content, not 扩展包 losing something.

Just discover that you're translating the old string and there are lots of changes to the strings in this block. So it might be better you wait for all the changes to strings.js are in for this sprint (which should be the end of today).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaymondLim Your insert new string in nls/root/string.js!I think,i read old string.

"BAD_PACKAGE_NAME" : "{0} 是一个无效扩展包名.",
"MISSING_PACKAGE_VERSION" : "扩展包版本遗失 {0}.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment. I don't think 遗失 can be used here.

"INVALID_VERSION_NUMBER" : "扩展包版本 ({0}) 是一个无效版本号.",
"API_NOT_COMPATIBLE" : "扩展包将安装到你的扩展目录中,但是这个扩展包不适合你现在的版本.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"disabled" folder is not mentioned in your translation. Here "disabled" is the real folder name that is used to put all extensions that are disabled.
And the translation needs to be adjusted since we're installing into "disabled" folder because it is not compatible.

"MISSING_MAIN" : "扩展包遗失main.js文件.",
"ALREADY_INSTALLED" : "扩展将安装到你的扩张目录,但是在扩展目录中发现了以前安装了同样的扩展.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is 扩张目录? We're saying the extension is installed into the "disabled'' folder since there is one already installed. Here "disabled" is the real folder name that is used to put all extensions that are disabled.

"NO_DISABLED_DIRECTORY" : "由于扩展文件夹不存在或禁用了扩展,所以无法保存扩展至扩展文件夹.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't translate folder path "extensions/disabled". Keep it as is and take out 或禁用了扩展

"DOWNLOAD_ID_IN_USE" : "内部错误:该下载ID已被使用.",
"DOWNLOAD_TARGET_EXISTS" : "临时下载文件已存在: {0}.",
"NO_SERVER_RESPONSE" : "无法连接到服务器.",
"BAD_HTTP_STATUS" : "未在服务器上发现该文件 (HTTP {0}).",
"ERROR_LOADING" : "扩展程序遇到一个错误,将重启扩展.",
"MALFORMED_URL" : "无法识别的URL地址.",
"UNSUPPORTED_PROTOCOL" : "不支持此URL协议.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not match with current string "The URL must be an http or https URL."

"UNKNOWN_ERROR" : "未知内部错误.",
// For NOT_FOUND_ERR, see generic strings above

// extensions/default/InlineColorEditor
"COLOR_EDITOR_CURRENT_COLOR_SWATCH_TIP" : "当前颜色",
"COLOR_EDITOR_ORIGINAL_COLOR_SWATCH_TIP" : "原来的颜色",
Expand All @@ -306,5 +338,4 @@ define({
"COLOR_EDITOR_HSLA_BUTTON_TIP" : "HSLa格式",
"COLOR_EDITOR_USED_COLOR_TIP_SINGULAR" : "{0} ({1} 次)",
"COLOR_EDITOR_USED_COLOR_TIP_PLURAL" : "{0} ({1} 次)"
});

});