mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-25 21:24:36 +02:00
big intl update, only polishing left, Issue #42
This commit is contained in:
parent
7e165c6fdc
commit
a0c8c34522
10 changed files with 471 additions and 232 deletions
|
@ -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]);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue