Merge pull request #268 from gbonvehi/master
Fix locale set during initialize not being used in utils.translation
This commit is contained in:
commit
1243d8e3a0
@ -300,7 +300,7 @@
|
|||||||
|
|
||||||
// Translation machinery
|
// Translation machinery
|
||||||
// ---------------------
|
// ---------------------
|
||||||
var __ = utils.__;
|
var __ = $.proxy(utils.__, this);
|
||||||
var ___ = utils.___;
|
var ___ = utils.___;
|
||||||
// Translation aware constants
|
// Translation aware constants
|
||||||
// ---------------------------
|
// ---------------------------
|
||||||
|
@ -30,7 +30,7 @@ define(["jquery"], function ($) {
|
|||||||
var utils = {
|
var utils = {
|
||||||
// Translation machinery
|
// Translation machinery
|
||||||
// ---------------------
|
// ---------------------
|
||||||
__: $.proxy(function (str) {
|
__: function (str) {
|
||||||
// Translation factory
|
// Translation factory
|
||||||
if (this.i18n === undefined) {
|
if (this.i18n === undefined) {
|
||||||
this.i18n = locales.en;
|
this.i18n = locales.en;
|
||||||
@ -41,7 +41,7 @@ define(["jquery"], function ($) {
|
|||||||
} else {
|
} else {
|
||||||
return t.fetch();
|
return t.fetch();
|
||||||
}
|
}
|
||||||
}, this),
|
},
|
||||||
|
|
||||||
___: function (str) {
|
___: function (str) {
|
||||||
/* XXX: This is part of a hack to get gettext to scan strings to be
|
/* XXX: This is part of a hack to get gettext to scan strings to be
|
||||||
|
Loading…
Reference in New Issue
Block a user