Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Bug 1052861 - uncomment inlineLocales (turned off by default). r=stas
Browse files Browse the repository at this point in the history
  • Loading branch information
Zbigniew Braniecki committed Aug 25, 2014
1 parent f060050 commit e3fe8a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bindings/l20n/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,13 @@ function init(pretranslate) {
nodeObserver.observe(document, moConfig);

if (pretranslate) {
//XXX: bring back if bug 994370 gets reverted
//inlineLocalization.call(navigator.mozL10n);
inlineLocalization.call(navigator.mozL10n);
initResources.call(navigator.mozL10n);
} else {
window.setTimeout(initResources.bind(navigator.mozL10n));
}
}

/*
function inlineLocalization() {
var locale = this.ctx.getLocale(navigator.language);
var scriptLoc = locale.isPseudo ? this.ctx.defaultLocale : locale.id;
Expand Down Expand Up @@ -165,7 +163,6 @@ function inlineLocalization() {
// the visible DOM is now pretranslated
isPretranslated = true;
}
*/

function initResources() {
var resLinks = document.head
Expand Down

0 comments on commit e3fe8a3

Please sign in to comment.