Fix locale set during initialize not being used in utils.translation

This commit is contained in:
Guillermo Bonvehí 2014-10-29 13:13:54 -03:00
parent ac6f2590ca
commit 5620f007ea
2 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@
// Translation machinery
// ---------------------
var __ = utils.__;
var __ = $.proxy(utils.__, this);
var ___ = utils.___;
// Translation aware constants
// ---------------------------

View File

@ -30,7 +30,7 @@ define(["jquery"], function ($) {
var utils = {
// Translation machinery
// ---------------------
__: $.proxy(function (str) {
__: function (str) {
// Translation factory
if (this.i18n === undefined) {
this.i18n = locales.en;
@ -41,7 +41,7 @@ define(["jquery"], function ($) {
} else {
return t.fetch();
}
}, this),
},
___: function (str) {
/* XXX: This is part of a hack to get gettext to scan strings to be