summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-12-16 19:40:17 +0100
committerMarcel Klehr <mklehr@gmx.net>2012-12-23 18:16:32 +0100
commit6446281254726f42d8af2caa0ce28057959e0aaf (patch)
treed655489a69dbed5a58d9b8961dd4a0fc2152f47d /src
parent754467782fd31be3ca0f3f725809e173749aa066 (diff)
downloadetherpad-lite-6446281254726f42d8af2caa0ce28057959e0aaf.zip
Migrate lang picker and embed param to html10n.js
Diffstat (limited to 'src')
-rw-r--r--src/static/js/pad.js2
-rw-r--r--src/static/js/pad_editor.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js
index 9ad701b3..a02d7abb 100644
--- a/src/static/js/pad.js
+++ b/src/static/js/pad.js
@@ -180,7 +180,7 @@ function getParams()
{
if(lang !== "")
{
- document.webL10n.setLanguage(lang);
+ window.html10n.localize([lang, 'en']);
}
}
}
diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js
index 690dde37..4e62e393 100644
--- a/src/static/js/pad_editor.js
+++ b/src/static/js/pad_editor.js
@@ -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)