Migrate lang picker and embed param to html10n.js

pull/1297/head
Marcel Klehr 2012-12-16 19:40:17 +01:00
parent 754467782f
commit 6446281254
2 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ function getParams()
{
if(lang !== "")
{
document.webL10n.setLanguage(lang);
window.html10n.localize([lang, 'en']);
}
}
}

View File

@ -75,10 +75,10 @@ var padeditor = (function()
{
pad.changeViewOption('useMonospaceFont', $("#viewfontmenu").val() == 'monospace');
});
$("#languagemenu").val(document.webL10n.getLanguage());
$("#languagemenu").val(document.html10n.getLanguage());
$("#languagemenu").change(function() {
pad.createCookie("language",$("#languagemenu").val(),null,'/');
document.webL10n.setLanguage($("#languagemenu").val());
document.webL10n.localize([$("#languagemenu").val(), 'en']);
});
},
setViewOptions: function(newOptions)