add some zh_CN translate strings

fix 2 command errror in level intro3
This commit is contained in:
acecode 2013-03-04 02:58:02 +08:00
parent d17d131d24
commit 2f8fe36c91
15 changed files with 604 additions and 1701 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
build/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -412,7 +412,7 @@
For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching
-->
<script src="build/bundle.min.9d2f4d92.js"></script>
<script src="build/bundle.min.40560729.js"></script>
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
The downside? No raw logs to parse for analytics, so I have to include

View file

@ -3,201 +3,241 @@ exports.strings = {
'learn-git-branching': {
'__desc__': 'The title of the app, with spaces',
'en_US': 'Learn Git Branching',
'ko': 'Git 브랜치 배우기'
'ko': 'Git 브랜치 배우기',
'zh_CN': '学习Git分支'
},
///////////////////////////////////////////////////////////////////////////
'select-a-level': {
'__desc__': 'The prompt to select a level on the drop down view',
'en_US': 'Select a level'
'en_US': 'Select a level',
'zh_CN': '选择一关'
},
///////////////////////////////////////////////////////////////////////////
'branch-name-short': {
'__desc__': 'When branch names get too long, we need to truncate them. This is the warning for that',
'en_US': 'Sorry, we need to keep branch names short for the visuals. Your branch name was truncated to 9 characters, resulting in "{branch}"'
'en_US': 'Sorry, we need to keep branch names short for the visuals. Your branch name was truncated to 9 characters, resulting in "{branch}"',
'zh_CN': '抱歉为了显示的需要我们需要一个短些的分支名称。您使用的将被截断到9个字符即"{branch}"'
},
///////////////////////////////////////////////////////////////////////////
'bad-branch-name': {
'__desc__': 'When the user enters a branch name thats not ok',
'en_US': 'That branch name "{branch}" is not allowed!'
'en_US': 'That branch name "{branch}" is not allowed!',
'zh_CN': '不能给分支起这个名字 "{branch}"'
},
///////////////////////////////////////////////////////////////////////////
'option-not-supported': {
'__desc__': 'When the user specifies an option that is not supported by our demo',
'en_US': 'The option "{option}" is not supported!'
'en_US': 'The option "{option}" is not supported!',
'zh_CN': '不支持选项 "{option}"'
},
///////////////////////////////////////////////////////////////////////////
'git-usage-command': {
'__desc__': 'The line that shows how to format a git command',
'en_US': 'git <command> [<args>]'
'en_US': 'git <command> [<args>]',
'zh_CN': 'git <命令> [<参数>]'
},
///////////////////////////////////////////////////////////////////////////
'git-supported-commands': {
'__desc__': 'In the git help command, the header above the supported commands',
'en_US': 'Supported commands:'
'en_US': 'Supported commands:',
'zh_CN': '支持的命令有:'
},
///////////////////////////////////////////////////////////////////////////
'git-usage': {
'__desc__': 'In the dummy git output, the header before showing all the commands',
'en_US': 'Usage:'
'en_US': 'Usage:',
'zh_CN': '使用:'
},
///////////////////////////////////////////////////////////////////////////
'git-version': {
'__desc__': 'The git version dummy output, kind of silly. PCOTTLE is my unix name but feel free to put yours instead',
'en_US': 'Git Version PCOTTLE.1.0'
'en_US': 'Git Version PCOTTLE.1.0',
'zh_CN': 'Git 版本 PCOTTLE.1.0'
},
///////////////////////////////////////////////////////////////////////////
'refresh-tree-command': {
'__desc__': 'when the tree is visually refreshed',
'en_US': 'Refreshing tree...'
'en_US': 'Refreshing tree...',
'zh_CN': '正在刷新树结构...'
},
///////////////////////////////////////////////////////////////////////////
'locale-command': {
'__desc__': 'when the locale is set to something',
'en_US': 'Locale set to {locale}'
'en_US': 'Locale set to {locale}',
'zh_CN': '语言更改为 {locale}'
},
///////////////////////////////////////////////////////////////////////////
'locale-reset-command': {
'__desc__': 'when the locale is reset',
'en_US': 'Locale reset to default, which is {locale}'
'en_US': 'Locale reset to default, which is {locale}',
'zh_CN': '语言重置为默认的 {locale}'
},
///////////////////////////////////////////////////////////////////////////
'cd-command': {
'__desc__': 'dummy command output for the command in the key',
'en_US': 'Directory changed to "/directories/dont/matter/in/this/demo"'
'en_US': 'Directory changed to "/directories/dont/matter/in/this/demo"',
'zh_CN': '目录切换到 "/directories/dont/matter/in/this/demo"'
},
///////////////////////////////////////////////////////////////////////////
'ls-command': {
'__desc__': 'Dummy command output for the command in the key',
'en_US': 'DontWorryAboutFilesInThisDemo.txt'
'en_US': 'DontWorryAboutFilesInThisDemo.txt',
'zh_CN': 'DontWorryAboutFilesInThisDemo.txt (译: 在试验里不用担心文件.txt)'
},
'mobile-alert': {
'__desc__': 'When someone comes to the site on a mobile device, they can not input commands so this is a nasty alert to tell them',
'en_US': 'Can\'t bring up the keyboard on mobile / tablet :( try visiting on desktop! :D'
'en_US': 'Can\'t bring up the keyboard on mobile / tablet :( try visiting on desktop! :D',
'zh_CN': '无法在移动设备/平板上调出键盘 :( 请试试桌面版 :D'
},
///////////////////////////////////////////////////////////////////////////
'share-tree': {
'__desc__': 'When you export a tree, we want you to share the tree with friends',
'en_US': 'Share this tree with friends! They can load it with "import tree"'
'en_US': 'Share this tree with friends! They can load it with "import tree"',
'zh_CN': '与你的好友分享提交树!他们可以用 "import tree" 加载它'
},
///////////////////////////////////////////////////////////////////////////
'paste-json': {
'__desc__': 'When you are importing a level or tree',
'en_US': 'Paste a JSON blob below!'
'en_US': 'Paste a JSON blob below!',
'zh_CN': '在下边粘贴一个JSON串'
},
///////////////////////////////////////////////////////////////////////////
'solved-map-reset': {
'__desc__': 'When you reset the solved map to clear your solved history, in case someone else wants to use your browser',
'en_US': 'Solved map was reset, you are starting from a clean slate!'
'en_US': 'Solved map was reset, you are starting from a clean slate!',
'zh_CN': '解决列表已重置,您现在从零开始了'
},
///////////////////////////////////////////////////////////////////////////
'level-cant-exit': {
'__desc__': 'When the user tries to exit a level when they are not in one',
'en_US': 'You are not in a level! You are in a sandbox, start a level with "levels"'
'en_US': 'You are not in a level! You are in a sandbox, start a level with "levels"',
'zh_CN': '您没在关卡中!您在沙盒中,要开始关卡请输入 "levels"'
},
///////////////////////////////////////////////////////////////////////////
'level-no-id': {
'__desc__': 'When you say an id but that level doesnt exist',
'en_US': 'A level for that id "{id}" was not found! Opening up a level selection view'
'en_US': 'A level for that id "{id}" was not found! Opening up a level selection view',
'zh_CN': '没找到id为 "{id}" 的关卡!打开关卡选择框'
},
///////////////////////////////////////////////////////////////////////////
'undo-stack-empty': {
'__desc__': 'The undo command can only undo back until the last time the level was reset or the beginning of the level',
'en_US': 'The undo stack is empty!'
'en_US': 'The undo stack is empty!',
'zh_CN': '还没有什么可以撤销'
},
///////////////////////////////////////////////////////////////////////////
'already-solved': {
'__desc__': 'When you play in a level that is already solved',
'en_US': 'You have alreaady solved this levle, try other levels with "levels" or go back to sandbox with "sandbox"'
'en_US': 'You have alreaady solved this level, try other levels with "levels" or go back to sandbox with "sandbox"',
'zh_CN': '你已经解决了本关,输入 "levels" 尝试其他关卡,或者输入 "sandbox" 回到沙盒中'
},
///////////////////////////////////////////////////////////////////////////
'command-disabled': {
'__desc__': 'When you try a command that is disabled',
'en_US': 'That git command is disabled for this level!'
'en_US': 'That git command is disabled for this level!',
'zh_CN': '该命令在本关不允许使用!'
},
///////////////////////////////////////////////////////////////////////////
'share-json': {
'__desc__': 'when you have made the level, prompt to share this',
'en_US': 'Here is the JSON for this level! Share it with somenoe or send it to me on Github'
'en_US': 'Here is the JSON for this level! Share it with somenoe or send it to me on Github',
'zh_CN': '这是一个关卡定义JSON您可以分享它或者发到我的GitHub上'
},
///////////////////////////////////////////////////////////////////////////
'want-start-dialog': {
'__desc__': 'prompt to add a start dialog',
'en_US': 'You have not specified a start dialog, would you like to add one?'
'en_US': 'You have not specified a start dialog, would you like to add one?',
'zh_CN': '您还没有定义一开始的介绍,是否添加一个?'
},
///////////////////////////////////////////////////////////////////////////
'want-hint': {
'__desc__': 'prompt to add a hint',
'en_US': 'You have not specified a hint, would you like to add one?'
'en_US': 'You have not specified a hint, would you like to add one?',
'zh_CN': '您还没有定义提示,是否添加一个?'
},
///////////////////////////////////////////////////////////////////////////
'prompt-hint': {
'__desc__': 'prompt for hint',
'en_US': 'Enter the hint for this level, or leave this blank if you do not want to include one'
'en_US': 'Enter the hint for this level, or leave this blank if you do not want to include one',
'zh_CN': '请输入关卡提示,或者故意留空'
},
///////////////////////////////////////////////////////////////////////////
'prompt-name': {
'__desc__': 'prompt for level name',
'en_US': 'Enter the name for the level'
'en_US': 'Enter the name for the level',
'zh_CN': '输入关卡名'
},
///////////////////////////////////////////////////////////////////////////
'solution-empty': {
'__desc__': 'If you define a solution without any commands, aka a level that is solved without doing anything',
'en_US': 'Your solution is empty!! Something is amiss'
'en_US': 'Your solution is empty!! Something is amiss',
'zh_CN': '你的解法是空的!! 这应该是出错了'
},
///////////////////////////////////////////////////////////////////////////
'define-start-warning': {
'__desc__': 'When you define the start point again, it overwrites the solution and goal so we add a warning',
'en_US': 'Defining start point... solution and goal will be overwritten if they were defined earlier'
'en_US': 'Defining start point... solution and goal will be overwritten if they were defined earlier',
'zh_CN': '定义开始点... 解决方法和目标会被新的替代'
},
///////////////////////////////////////////////////////////////////////////
'help-vague-level': {
'__desc__': 'When you are in a level and you say help, its vague and you need to specify',
'en_US': 'You are in a level, so multiple forms of help are available. Please select either "help level" or "help general"'
'en_US': 'You are in a level, so multiple forms of help are available. Please select either "help level" or "help general"',
'zh_CN': '您正在关卡中,这里有多种形式的帮助,请选择 "help level" (关卡帮助)或 "help general" (一般帮助)'
},
///////////////////////////////////////////////////////////////////////////
'help-vague-builder': {
'__desc__': 'When you are in a level builder, the help command is vague so you need to specify what you mean',
'en_US': 'You are in a level builder, so multiple forms of help are available. Please select either "help general" or "help builder"'
'en_US': 'You are in a level builder, so multiple forms of help are available. Please select either "help general" or "help builder"',
'zh_CN': '您正在进行关卡构建中,这里有多种形式的帮助,请选择 "help general" (一般帮助)或 "help builder" (关卡构建帮助)'
},
///////////////////////////////////////////////////////////////////////////
'goal-to-reach': {
'__desc__': 'title of window that shoes the goal tree to reach',
'en_US': 'Goal To Reach'
'en_US': 'Goal To Reach',
'zh_CN': '目标'
},
///////////////////////////////////////////////////////////////////////////
'hide-goal': {
'__desc__': 'the helper message for the window that shows the goal tree',
'en_US': 'You can hide this window with "hide goal"'
'en_US': 'You can hide this window with "hide goal"',
'zh_CN': '你可以通过命令 "hide goal" 关闭这个窗口'
},
///////////////////////////////////////////////////////////////////////////
'hide-start': {
'__desc__': 'The helper message for the window that shows the start tree for a level',
'en_US': 'You can hide this window with "hide start"'
'en_US': 'You can hide this window with "hide start"',
'zh_CN': '你可以通过命令 "hide start" 关闭这个窗口'
},
///////////////////////////////////////////////////////////////////////////
'level-builder': {
'__desc__': 'The name for the environment where you build levels',
'en_US': 'Level Builder'
'en_US': 'Level Builder',
'zh_CN': '关卡生成器'
},
///////////////////////////////////////////////////////////////////////////
'no-start-dialog': {
'__desc__': 'when the user tries to open a start dialog for a level that does not have one',
'en_US': 'There is no start dialog to show for this level!'
'en_US': 'There is no start dialog to show for this level!',
'zh_CN': '介绍? 这关真没有!'
},
///////////////////////////////////////////////////////////////////////////
'no-hint': {
'__desc__': 'when no hint is available for a level',
'en_US': "Hmm, there doesn't seem to be a hint for this level :-/"
'en_US': "Hmm, there doesn't seem to be a hint for this level :-/",
'zh_CN': "提示?嗯,这关真没有哎~ :-/"
},
///////////////////////////////////////////////////////////////////////////
'error-untranslated-key': {
'__desc__': 'This error happens when we are trying to translate a specific key and the locale version is mission',
'en_US': 'The translation for {key} does not exist yet :( Please hop on github and offer up a translation!'
'en_US': 'The translation for {key} does not exist yet :( Please hop on github and offer up a translation!',
'zh_CN': '还没翻译 {key} :( 请在gitHub上贡献你的翻译!'
},
///////////////////////////////////////////////////////////////////////////
'error-untranslated': {
'__desc__': 'The general error when we encounter a dialog that is not translated',
'en_US': 'This dialog or text is not yet translated in your locale :( Hop on github to aid in translation!'
'en_US': 'This dialog or text is not yet translated in your locale :( Hop on github to aid in translation!',
'zh_CN': '这段对话还没有被翻译成你的语言 :( 欢迎在gitHub上贡献你的翻译!'
}
};

View file

@ -36,21 +36,25 @@ exports.sequenceInfo = {
rebase: {
displayName: {
'en_US': 'Master the Rebase Luke!',
'ko': '리베이스 완전정복!'
'ko': '리베이스 완전정복!',
'zh_CN': '掌握衍合,兄弟!'
},
about: {
'en_US': 'What is this whole rebase hotness everyone is talking about? Find out!',
'ko': '그 좋다고들 말하는 rebase에 대해 알아봅시다!'
'ko': '그 좋다고들 말하는 rebase에 대해 알아봅시다!',
'zh_CN': '大家说的火热的衍合都是些神马?看看吧!'
}
},
mixed: {
displayName: {
'en_US': 'A Mixed Bag',
'ko': '종합선물세트'
'ko': '종합선물세트',
'zh_CN': '大杂烩?'
},
about: {
'en_US': 'A mixed bag of Git techniques, tricks, and tips',
'ko': 'Git을 다루는 다양한 팁과 테크닉을 다양하게 알아봅니다'
'ko': 'Git을 다루는 다양한 팁과 테크닉을 다양하게 알아봅니다',
'zh_CN': 'Git技术技巧与贴士'
}
}
};

View file

@ -1,7 +1,8 @@
exports.level = {
"name": {
"en_US": "Introduction to Git Commits",
'ko': 'Git 커밋 소개'
'ko': 'Git 커밋 소개',
'zh_CN': '介绍Git提交'
},
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C3\",\"id\":\"master\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C2\"],\"id\":\"C3\"}},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}",
"solutionCommand": "git commit;git commit",

View file

@ -3,7 +3,8 @@ exports.level = {
"solutionCommand": "git branch bugFix;git checkout bugFix",
"name": {
"ko": "Git에서 브랜치 쓰기",
"en_US": "Branching in Git"
"en_US": "Branching in Git",
"zh_CN": "Git开分支"
},
"hint": {
"en_US": "Make a new branch with \"git branch [name]\" and check it out with \"git checkout [name]\"",

View file

@ -3,7 +3,8 @@ exports.level = {
"solutionCommand": "git checkout -b bugFix;git commit;git checkout master;git commit;git merge bugFix",
"name": {
"en_US": "Merging in Git",
"ko": "Git에서 브랜치 합치기(Merge)"
"ko": "Git에서 브랜치 합치기(Merge)",
"zh_CN": "Git合并(Merge)"
},
"hint": {
"en_US": "Remember to commit in the order specified (bugFix before master)",
@ -107,7 +108,7 @@ exports.level = {
"",
"我们将要把分支 `bugFix` 合并到 `master` 上"
],
"command": "git merge bugFix master",
"command": "git merge bugFix",
"afterMarkdowns": [
"哇!看见木有?`master` 分支现在指向了一个拥有两个爸爸的提交。假如你从 `master` 开始沿着箭头走到起点,沿路你可以遍历到所有的提交。这就表明 `master` 包含了仓库里所有的内容了。",
"",
@ -124,7 +125,7 @@ exports.level = {
"beforeMarkdowns": [
"让我们把 `master` 分支合并到 `bugFix` 吧。"
],
"command": "git merge master bugFix",
"command": "git merge master",
"afterMarkdowns": [
"因为 `bugFix` 分支在 `master` 分支的上游,所以 git 不用做什么额外的工作,只要把 `master` 分支的最新提交移到 `bugFix` 分支就可以了。",
"",

View file

@ -3,7 +3,8 @@ exports.level = {
"solutionCommand": "git checkout -b bugFix;git commit;git checkout master;git commit;git checkout bugFix;git rebase master",
"name": {
"en_US": "Rebase Introduction",
"ko": "리베이스(rebase)의 기본"
"ko": "리베이스(rebase)의 기본",
"zh_CN": "介绍衍合(rebase)"
},
"hint": {
"en_US": "Make sure you commit from bugFix first",

View file

@ -4,7 +4,8 @@ exports.level = {
"startTree": "{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\"},\"pushed\":{\"target\":\"C2\",\"id\":\"pushed\"},\"local\":{\"target\":\"C3\",\"id\":\"local\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"}},\"HEAD\":{\"target\":\"local\",\"id\":\"HEAD\"}}",
"name": {
"en_US": "Reversing Changes in Git",
"ko": "Git에서 작업 되돌리기"
"ko": "Git에서 작업 되돌리기",
"zh_CN": "Git撤销改变"
},
"hint": {
"en_US": "",

View file

@ -8,7 +8,8 @@ exports.level = {
"startTree": "{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\"},\"debug\":{\"target\":\"C2\",\"id\":\"debug\"},\"printf\":{\"target\":\"C3\",\"id\":\"printf\"},\"bugFix\":{\"target\":\"C4\",\"id\":\"bugFix\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C2\"],\"id\":\"C3\"},\"C4\":{\"parents\":[\"C3\"],\"id\":\"C4\"}},\"HEAD\":{\"target\":\"bugFix\",\"id\":\"HEAD\"}}",
"name": {
"ko": "딱 한개의 커밋만 가져오기",
"en_US": "Grabbing Just 1 Commit"
"en_US": "Grabbing Just 1 Commit",
"zh_CN": "私藏一个提交"
},
"hint": {
"en_US": "Remember, interactive rebase or cherry-pick is your friend here",

View file

@ -9,7 +9,8 @@ exports.level = {
"startTree": "{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\"},\"newImage\":{\"target\":\"C2\",\"id\":\"newImage\"},\"caption\":{\"target\":\"C3\",\"id\":\"caption\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C2\"],\"id\":\"C3\"}},\"HEAD\":{\"target\":\"caption\",\"id\":\"HEAD\"}}",
"name": {
"ko": "커밋들 갖고 놀기",
"en_US": "Juggling Commits"
"en_US": "Juggling Commits",
"zh_CN": "Git提交戏法"
},
"hint": {
"en_US": "The first command is git rebase -i HEAD~2",

View file

@ -8,7 +8,8 @@ exports.level = {
"compareOnlyMaster": true,
"name": {
"ko": "커밋 갖고 놀기 #2",
"en_US": "Juggling Commits #2"
"en_US": "Juggling Commits #2",
"zh_CN": "提交交换戏法 #2"
},
"hint": {
"en_US": "Don't forget to forward master to the updated changes!",