big intl update, only polishing left, Issue #42

This commit is contained in:
Peter Cottle 2013-02-23 23:31:30 -08:00
parent 7e165c6fdc
commit a0c8c34522
10 changed files with 471 additions and 232 deletions

View file

@ -4901,7 +4901,7 @@ var Sandbox = Backbone.View.extend({
helpDialog: function(command, deferred) {
var helpDialog = new MultiView({
childViews: require('../dialogs/sandbox').dialog
childViews: intl.getDialog(require('../dialogs/sandbox'))
});
helpDialog.getPromise().then(_.bind(function() {
// the view has been closed, lets go ahead and resolve our command
@ -6561,6 +6561,11 @@ var getIntlKey = exports.getIntlKey = function(obj, key) {
return obj[key][getLocale()];
};
var getDialog = exports.getDialog = function(obj) {
var defaultLocale = getDefaultLocale();
return getIntlKey(obj, 'dialog') || obj.dialog[defaultLocale];
};
var getHint = exports.getHint = function(level) {
return getIntlKey(level, 'hint') || str('error-untranslated');
};
@ -13858,8 +13863,10 @@ var LevelBuilder = Level.extend({
options = options || {};
options.level = options.level || {};
options.level.startDialog = {
childViews: require('../dialogs/levelBuilder').dialog
var locale = intl.getLocale();
options.level.startDialog = {};
options.level.startDialog[locale] = {
childViews: intl.getDialog(require('../dialogs/levelBuilder'))
};
LevelBuilder.__super__.initialize.apply(this, [options]);
@ -15130,25 +15137,27 @@ exports.MarkdownPresenter = MarkdownPresenter;
});
require.define("/src/js/dialogs/levelBuilder.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to the level builder!',
'',
'Here are the main steps:',
'',
' * Set up the initial environment with git commands',
' * Define the starting tree with ```define start```',
' * Enter the series of git commands that compose the (optimal) solution',
' * Define the goal tree with ```define goal```. Defining the goal also defines the solution',
' * Optionally define a hint with ```define hint```',
' * Edit the name with ```define name```',
' * Optionally define a nice start dialog with ```edit dialog```',
' * Enter the command ```finish``` to output your level JSON!'
]
}
}];
require.define("/src/js/dialogs/levelBuilder.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = {
'en_US': [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to the level builder!',
'',
'Here are the main steps:',
'',
' * Set up the initial environment with git commands',
' * Define the starting tree with ```define start```',
' * Enter the series of git commands that compose the (optimal) solution',
' * Define the goal tree with ```define goal```. Defining the goal also defines the solution',
' * Optionally define a hint with ```define hint```',
' * Edit the name with ```define name```',
' * Optionally define a nice start dialog with ```edit dialog```',
' * Enter the command ```finish``` to output your level JSON!'
]
}
}]
};
});
@ -17430,10 +17439,12 @@ exports.sequenceInfo = {
intro: {
displayName: {
'en_US': 'Introduction Sequence',
'zh_CN': '简介序列',
'ko': '기본 명령어'
},
about: {
'en_US': 'A nicely paced introduction to the majority of git commands',
'zh_CN': '一个节奏感良好的主流 Git 命令介绍',
'ko': '브랜치 관련 주요 git 명령어를 깔끔하게 알려드립니다'
}
},
@ -19859,61 +19870,129 @@ exports.detectZoom = detectZoom;
});
require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to LearnGitBranching!',
'',
'This application is designed to help beginners grasp ',
'the powerful concepts behind branching when working ',
'with git. We hope you enjoy this application and maybe ',
'even learn something!',
'',
'# Demo!',
'',
'If you have not seen the demo, please check it out here:',
'',
'[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)',
'',
'Annoyed at this dialog? Append `?NODEMO` to the url to get rid of it, linked below for convenience:',
'',
'[http://pcottle.github.com/learnGitBranching/?NODEMO](http://pcottle.github.com/learnGitBranching/?NODEMO)'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Git commands',
'',
'You have a large variety of git commands available in sandbox mode. These include',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Sharing is caring!',
'',
'Share trees with your friends via `export tree` and `import tree`',
'',
'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
'',
'For now let\'s get you started on the `levels`...'
]
}
}];
require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = {
'en_US': [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to LearnGitBranching!',
'',
'This application is designed to help beginners grasp ',
'the powerful concepts behind branching when working ',
'with git. We hope you enjoy this application and maybe ',
'even learn something!',
'',
'# Demo!',
'',
'If you have not seen the demo, please check it out here:',
'',
'[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)',
'',
'Annoyed at this dialog? Append `?NODEMO` to the url to get rid of it, linked below for convenience:',
'',
'[http://pcottle.github.com/learnGitBranching/?NODEMO](http://pcottle.github.com/learnGitBranching/?NODEMO)'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Git commands',
'',
'You have a large variety of git commands available in sandbox mode. These include',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Sharing is caring!',
'',
'Share trees with your friends via `export tree` and `import tree`',
'',
'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
'',
'For now let\'s get you started on the `levels`...'
]
}
}],
'ko': [{
type: 'ModalAlert',
options: {
markdowns: [
//'## Welcome to LearnGitBranching!',
'## Git 브랜치 배우기를 시작합니다!',
'',
// 'This application is designed to help beginners grasp ',
// 'the powerful concepts behind branching when working ',
// 'with git. We hope you enjoy this application and maybe ',
// 'even learn something!',
'이 애플리케이션은 git을 쓸 때 필요한 브랜치에 대한 개념을',
'탄탄히 잡게끔 도와드리기 위해 만들었습니다. 재밌게 사용해주시기를',
'바라며, 무언가를 배워가신다면 더 기쁘겠습니다!',
// '',
// '# Attention HN!!',
// '',
// 'Unfortunately this was submitted before I finished all the help ',
// 'and tutorial sections, so forgive the scarcity. See the demo here:',
'',
'이 애플리케이션은 [Peter Cottle](https://github.com/pcottle)님의 [LearnGitBranching](http://pcottle.github.com/learnGitBranching/)를 번역한 것입니다.',
'아래 데모를 먼저 보셔도 좋습니다.',
'',
'<http://pcottle.github.com/learnGitBranching/?demo&locale=ko>'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
// '## Git commands',
'## Git 명령어',
'',
// 'You have a large variety of git commands available in sandbox mode. These include',
'연습 모드에서 쓸 수 있는 다양한 git명령어는 다음과 같습니다',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
// '## Sharing is caring!',
// '',
// 'Share trees with your friends via `export tree` and `import tree`',
// '',
// 'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
// '',
// 'For now let\'s get you started on the `levels`...'
'## 공유해주세요!',
'',
'`export tree` 와 `import tree`로 여러분의 친구들에게 트리를 공유해주세요',
'',
'훌륭한 학습 자료가 있으신가요? `build level`로 레벨을 만들어 보시거나, 친구의 레벨을 `import level`로 가져와서 실험해보세요',
'',
'이제 레슨을 시작해봅시다...'
]
}
}]
};
});
@ -20237,84 +20316,154 @@ exports.init = init;
});
require("/src/js/app/index.js");
require.define("/src/js/dialogs/levelBuilder.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to the level builder!',
'',
'Here are the main steps:',
'',
' * Set up the initial environment with git commands',
' * Define the starting tree with ```define start```',
' * Enter the series of git commands that compose the (optimal) solution',
' * Define the goal tree with ```define goal```. Defining the goal also defines the solution',
' * Optionally define a hint with ```define hint```',
' * Edit the name with ```define name```',
' * Optionally define a nice start dialog with ```edit dialog```',
' * Enter the command ```finish``` to output your level JSON!'
]
}
}];
require.define("/src/js/dialogs/levelBuilder.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = {
'en_US': [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to the level builder!',
'',
'Here are the main steps:',
'',
' * Set up the initial environment with git commands',
' * Define the starting tree with ```define start```',
' * Enter the series of git commands that compose the (optimal) solution',
' * Define the goal tree with ```define goal```. Defining the goal also defines the solution',
' * Optionally define a hint with ```define hint```',
' * Edit the name with ```define name```',
' * Optionally define a nice start dialog with ```edit dialog```',
' * Enter the command ```finish``` to output your level JSON!'
]
}
}]
};
});
require("/src/js/dialogs/levelBuilder.js");
require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to LearnGitBranching!',
'',
'This application is designed to help beginners grasp ',
'the powerful concepts behind branching when working ',
'with git. We hope you enjoy this application and maybe ',
'even learn something!',
'',
'# Demo!',
'',
'If you have not seen the demo, please check it out here:',
'',
'[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)',
'',
'Annoyed at this dialog? Append `?NODEMO` to the url to get rid of it, linked below for convenience:',
'',
'[http://pcottle.github.com/learnGitBranching/?NODEMO](http://pcottle.github.com/learnGitBranching/?NODEMO)'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Git commands',
'',
'You have a large variety of git commands available in sandbox mode. These include',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Sharing is caring!',
'',
'Share trees with your friends via `export tree` and `import tree`',
'',
'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
'',
'For now let\'s get you started on the `levels`...'
]
}
}];
require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__dirname,__filename,process,global){exports.dialog = {
'en_US': [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to LearnGitBranching!',
'',
'This application is designed to help beginners grasp ',
'the powerful concepts behind branching when working ',
'with git. We hope you enjoy this application and maybe ',
'even learn something!',
'',
'# Demo!',
'',
'If you have not seen the demo, please check it out here:',
'',
'[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)',
'',
'Annoyed at this dialog? Append `?NODEMO` to the url to get rid of it, linked below for convenience:',
'',
'[http://pcottle.github.com/learnGitBranching/?NODEMO](http://pcottle.github.com/learnGitBranching/?NODEMO)'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Git commands',
'',
'You have a large variety of git commands available in sandbox mode. These include',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Sharing is caring!',
'',
'Share trees with your friends via `export tree` and `import tree`',
'',
'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
'',
'For now let\'s get you started on the `levels`...'
]
}
}],
'ko': [{
type: 'ModalAlert',
options: {
markdowns: [
//'## Welcome to LearnGitBranching!',
'## Git 브랜치 배우기를 시작합니다!',
'',
// 'This application is designed to help beginners grasp ',
// 'the powerful concepts behind branching when working ',
// 'with git. We hope you enjoy this application and maybe ',
// 'even learn something!',
'이 애플리케이션은 git을 쓸 때 필요한 브랜치에 대한 개념을',
'탄탄히 잡게끔 도와드리기 위해 만들었습니다. 재밌게 사용해주시기를',
'바라며, 무언가를 배워가신다면 더 기쁘겠습니다!',
// '',
// '# Attention HN!!',
// '',
// 'Unfortunately this was submitted before I finished all the help ',
// 'and tutorial sections, so forgive the scarcity. See the demo here:',
'',
'이 애플리케이션은 [Peter Cottle](https://github.com/pcottle)님의 [LearnGitBranching](http://pcottle.github.com/learnGitBranching/)를 번역한 것입니다.',
'아래 데모를 먼저 보셔도 좋습니다.',
'',
'<http://pcottle.github.com/learnGitBranching/?demo&locale=ko>'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
// '## Git commands',
'## Git 명령어',
'',
// 'You have a large variety of git commands available in sandbox mode. These include',
'연습 모드에서 쓸 수 있는 다양한 git명령어는 다음과 같습니다',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
// '## Sharing is caring!',
// '',
// 'Share trees with your friends via `export tree` and `import tree`',
// '',
// 'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
// '',
// 'For now let\'s get you started on the `levels`...'
'## 공유해주세요!',
'',
'`export tree` 와 `import tree`로 여러분의 친구들에게 트리를 공유해주세요',
'',
'훌륭한 학습 자료가 있으신가요? `build level`로 레벨을 만들어 보시거나, 친구의 레벨을 `import level`로 가져와서 실험해보세요',
'',
'이제 레슨을 시작해봅시다...'
]
}
}]
};
});
require("/src/js/dialogs/sandbox.js");
@ -22678,6 +22827,11 @@ var getIntlKey = exports.getIntlKey = function(obj, key) {
return obj[key][getLocale()];
};
var getDialog = exports.getDialog = function(obj) {
var defaultLocale = getDefaultLocale();
return getIntlKey(obj, 'dialog') || obj.dialog[defaultLocale];
};
var getHint = exports.getHint = function(level) {
return getIntlKey(level, 'hint') || str('error-untranslated');
};
@ -23116,8 +23270,10 @@ var LevelBuilder = Level.extend({
options = options || {};
options.level = options.level || {};
options.level.startDialog = {
childViews: require('../dialogs/levelBuilder').dialog
var locale = intl.getLocale();
options.level.startDialog = {};
options.level.startDialog[locale] = {
childViews: intl.getDialog(require('../dialogs/levelBuilder'))
};
LevelBuilder.__super__.initialize.apply(this, [options]);
@ -24484,7 +24640,7 @@ var Sandbox = Backbone.View.extend({
helpDialog: function(command, deferred) {
var helpDialog = new MultiView({
childViews: require('../dialogs/sandbox').dialog
childViews: intl.getDialog(require('../dialogs/sandbox'))
});
helpDialog.getPromise().then(_.bind(function() {
// the view has been closed, lets go ahead and resolve our command
@ -30351,10 +30507,12 @@ exports.sequenceInfo = {
intro: {
displayName: {
'en_US': 'Introduction Sequence',
'zh_CN': '简介序列',
'ko': '기본 명령어'
},
about: {
'en_US': 'A nicely paced introduction to the majority of git commands',
'zh_CN': '一个节奏感良好的主流 Git 命令介绍',
'ko': '브랜치 관련 주요 git 명령어를 깔끔하게 알려드립니다'
}
},

File diff suppressed because one or more lines are too long

1
build/bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -410,7 +410,7 @@
For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching
-->
<script src="build/bundle.js"></script>
<script src="build/bundle.min.2076073f.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

@ -1,19 +1,21 @@
exports.dialog = [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to the level builder!',
'',
'Here are the main steps:',
'',
' * Set up the initial environment with git commands',
' * Define the starting tree with ```define start```',
' * Enter the series of git commands that compose the (optimal) solution',
' * Define the goal tree with ```define goal```. Defining the goal also defines the solution',
' * Optionally define a hint with ```define hint```',
' * Edit the name with ```define name```',
' * Optionally define a nice start dialog with ```edit dialog```',
' * Enter the command ```finish``` to output your level JSON!'
]
}
}];
exports.dialog = {
'en_US': [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to the level builder!',
'',
'Here are the main steps:',
'',
' * Set up the initial environment with git commands',
' * Define the starting tree with ```define start```',
' * Enter the series of git commands that compose the (optimal) solution',
' * Define the goal tree with ```define goal```. Defining the goal also defines the solution',
' * Optionally define a hint with ```define hint```',
' * Edit the name with ```define name```',
' * Optionally define a nice start dialog with ```edit dialog```',
' * Enter the command ```finish``` to output your level JSON!'
]
}
}]
};

View file

@ -1,55 +1,123 @@
exports.dialog = [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to LearnGitBranching!',
'',
'This application is designed to help beginners grasp ',
'the powerful concepts behind branching when working ',
'with git. We hope you enjoy this application and maybe ',
'even learn something!',
'',
'# Demo!',
'',
'If you have not seen the demo, please check it out here:',
'',
'[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)',
'',
'Annoyed at this dialog? Append `?NODEMO` to the url to get rid of it, linked below for convenience:',
'',
'[http://pcottle.github.com/learnGitBranching/?NODEMO](http://pcottle.github.com/learnGitBranching/?NODEMO)'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Git commands',
'',
'You have a large variety of git commands available in sandbox mode. These include',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Sharing is caring!',
'',
'Share trees with your friends via `export tree` and `import tree`',
'',
'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
'',
'For now let\'s get you started on the `levels`...'
]
}
}];
exports.dialog = {
'en_US': [{
type: 'ModalAlert',
options: {
markdowns: [
'## Welcome to LearnGitBranching!',
'',
'This application is designed to help beginners grasp ',
'the powerful concepts behind branching when working ',
'with git. We hope you enjoy this application and maybe ',
'even learn something!',
'',
'# Demo!',
'',
'If you have not seen the demo, please check it out here:',
'',
'[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)',
'',
'Annoyed at this dialog? Append `?NODEMO` to the url to get rid of it, linked below for convenience:',
'',
'[http://pcottle.github.com/learnGitBranching/?NODEMO](http://pcottle.github.com/learnGitBranching/?NODEMO)'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Git commands',
'',
'You have a large variety of git commands available in sandbox mode. These include',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
'## Sharing is caring!',
'',
'Share trees with your friends via `export tree` and `import tree`',
'',
'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
'',
'For now let\'s get you started on the `levels`...'
]
}
}],
'ko': [{
type: 'ModalAlert',
options: {
markdowns: [
//'## Welcome to LearnGitBranching!',
'## Git 브랜치 배우기를 시작합니다!',
'',
// 'This application is designed to help beginners grasp ',
// 'the powerful concepts behind branching when working ',
// 'with git. We hope you enjoy this application and maybe ',
// 'even learn something!',
'이 애플리케이션은 git을 쓸 때 필요한 브랜치에 대한 개념을',
'탄탄히 잡게끔 도와드리기 위해 만들었습니다. 재밌게 사용해주시기를',
'바라며, 무언가를 배워가신다면 더 기쁘겠습니다!',
// '',
// '# Attention HN!!',
// '',
// 'Unfortunately this was submitted before I finished all the help ',
// 'and tutorial sections, so forgive the scarcity. See the demo here:',
'',
'이 애플리케이션은 [Peter Cottle](https://github.com/pcottle)님의 [LearnGitBranching](http://pcottle.github.com/learnGitBranching/)를 번역한 것입니다.',
'아래 데모를 먼저 보셔도 좋습니다.',
'',
'<http://pcottle.github.com/learnGitBranching/?demo&locale=ko>'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
// '## Git commands',
'## Git 명령어',
'',
// 'You have a large variety of git commands available in sandbox mode. These include',
'연습 모드에서 쓸 수 있는 다양한 git명령어는 다음과 같습니다',
'',
' * commit',
' * branch',
' * checkout',
' * cherry-pick',
' * reset',
' * revert',
' * rebase',
' * merge'
]
}
}, {
type: 'ModalAlert',
options: {
markdowns: [
// '## Sharing is caring!',
// '',
// 'Share trees with your friends via `export tree` and `import tree`',
// '',
// 'Have a great lesson to share? Try building a level with `build level` or try out a friend\'s level with `import level`',
// '',
// 'For now let\'s get you started on the `levels`...'
'## 공유해주세요!',
'',
'`export tree` 와 `import tree`로 여러분의 친구들에게 트리를 공유해주세요',
'',
'훌륭한 학습 자료가 있으신가요? `build level`로 레벨을 만들어 보시거나, 친구의 레벨을 `import level`로 가져와서 실험해보세요',
'',
'이제 레슨을 시작해봅시다...'
]
}
}]
};

View file

@ -72,6 +72,11 @@ var getIntlKey = exports.getIntlKey = function(obj, key) {
return obj[key][getLocale()];
};
var getDialog = exports.getDialog = function(obj) {
var defaultLocale = getDefaultLocale();
return getIntlKey(obj, 'dialog') || obj.dialog[defaultLocale];
};
var getHint = exports.getHint = function(level) {
return getIntlKey(level, 'hint') || str('error-untranslated');
};

View file

@ -44,8 +44,10 @@ var LevelBuilder = Level.extend({
options = options || {};
options.level = options.level || {};
options.level.startDialog = {
childViews: require('../dialogs/levelBuilder').dialog
var locale = intl.getLocale();
options.level.startDialog = {};
options.level.startDialog[locale] = {
childViews: intl.getDialog(require('../dialogs/levelBuilder'))
};
LevelBuilder.__super__.initialize.apply(this, [options]);

View file

@ -397,7 +397,7 @@ var Sandbox = Backbone.View.extend({
helpDialog: function(command, deferred) {
var helpDialog = new MultiView({
childViews: require('../dialogs/sandbox').dialog
childViews: intl.getDialog(require('../dialogs/sandbox'))
});
helpDialog.getPromise().then(_.bind(function() {
// the view has been closed, lets go ahead and resolve our command

View file

@ -24,10 +24,12 @@ exports.sequenceInfo = {
intro: {
displayName: {
'en_US': 'Introduction Sequence',
'zh_CN': '简介序列',
'ko': '기본 명령어'
},
about: {
'en_US': 'A nicely paced introduction to the majority of git commands',
'zh_CN': '一个节奏感良好的主流 Git 命令介绍',
'ko': '브랜치 관련 주요 git 명령어를 깔끔하게 알려드립니다'
}
},