Skip to content

Commit

Permalink
globalize exclude en
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes committed Oct 4, 2013
1 parent 05eec49 commit 3438364
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 14 deletions.
19 changes: 15 additions & 4 deletions assets/js/husky/dist/husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -24151,9 +24151,15 @@ define('husky_extensions/collection',[],function() {
},

culture: function(cultureName) {
require(['cultures/globalize.culture.' + cultureName], function() {
var setLanguage = function() {
Globalize.culture(cultureName);
}.bind(this));
};

if (cultureName !== 'en') {
require(['cultures/globalize.culture.' + cultureName], setLanguage.bind(this));
} else {
setLanguage();
}
}
};

Expand All @@ -24166,10 +24172,15 @@ define('husky_extensions/collection',[],function() {
};

app.setLanguage = function(cultureName, messages) {
require(['cultures/globalize.culture.' + cultureName], function() {
var setLanguage = function() {
Globalize.culture(cultureName);
app.sandbox.globalize.addCultureInfo(cultureName, messages);
}.bind(this));
};
if (cultureName !== 'en') {
require(['cultures/globalize.culture.' + cultureName], setLanguage.bind(this));
} else {
setLanguage();
}
};
},

Expand Down
2 changes: 1 addition & 1 deletion assets/js/husky/dist/husky.min.js

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions dist/husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -24151,9 +24151,15 @@ define('husky_extensions/collection',[],function() {
},

culture: function(cultureName) {
require(['cultures/globalize.culture.' + cultureName], function() {
var setLanguage = function() {
Globalize.culture(cultureName);
}.bind(this));
};

if (cultureName !== 'en') {
require(['cultures/globalize.culture.' + cultureName], setLanguage.bind(this));
} else {
setLanguage();
}
}
};

Expand All @@ -24166,10 +24172,15 @@ define('husky_extensions/collection',[],function() {
};

app.setLanguage = function(cultureName, messages) {
require(['cultures/globalize.culture.' + cultureName], function() {
var setLanguage = function() {
Globalize.culture(cultureName);
app.sandbox.globalize.addCultureInfo(cultureName, messages);
}.bind(this));
};
if (cultureName !== 'en') {
require(['cultures/globalize.culture.' + cultureName], setLanguage.bind(this));
} else {
setLanguage();
}
};
},

Expand Down
2 changes: 1 addition & 1 deletion dist/husky.min.js

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions husky_extensions/globalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@
},

culture: function(cultureName) {
require(['cultures/globalize.culture.' + cultureName], function() {
var setLanguage = function() {
Globalize.culture(cultureName);
}.bind(this));
};

if (cultureName !== 'en') {
require(['cultures/globalize.culture.' + cultureName], setLanguage.bind(this));
} else {
setLanguage();
}
}
};

Expand All @@ -37,10 +43,15 @@
};

app.setLanguage = function(cultureName, messages) {
require(['cultures/globalize.culture.' + cultureName], function() {
var setLanguage = function() {
Globalize.culture(cultureName);
app.sandbox.globalize.addCultureInfo(cultureName, messages);
}.bind(this));
};
if (cultureName !== 'en') {
require(['cultures/globalize.culture.' + cultureName], setLanguage.bind(this));
} else {
setLanguage();
}
};
},

Expand Down

0 comments on commit 3438364

Please sign in to comment.