diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-11-12 18:04:21 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-11-12 18:04:21 +0100 |
commit | 19c12239f63e151735e2f5d69233e87dfd00b7d1 (patch) | |
tree | b3856b664a50635345929216b1cb47d45adbb27b /src | |
parent | 993d50194372bea8bd2db18a0f93cc67440a2906 (diff) | |
download | etherpad-lite-19c12239f63e151735e2f5d69233e87dfd00b7d1.zip |
Simplify lang setting in pad.html template
Diffstat (limited to 'src')
-rw-r--r-- | src/node/hooks/i18n.js | 4 | ||||
-rw-r--r-- | src/templates/pad.html | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js index a2faa458..67170ab3 100644 --- a/src/node/hooks/i18n.js +++ b/src/node/hooks/i18n.js @@ -2,12 +2,12 @@ var Globalize = require('globalize') , fs = require('fs') , path = require('path') -exports.availableLangs = {} +exports.availableLangs = {en: 'English'} fs.readdir(__dirname+"/../../locales", function(er, files) { files.forEach(function(locale) { locale = locale.split('.')[0] if(locale.toLowerCase() == 'en') return; - + require('globalize/lib/cultures/globalize.culture.'+locale+'.js') var culture = Globalize.cultures[locale]; exports.availableLangs[culture.name] = culture.nativeName; diff --git a/src/templates/pad.html b/src/templates/pad.html index bd2e7054..b31f3d1b 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -211,7 +211,6 @@ <p data-l10n-id="pad.settings.language"> Language: <select id="languagemenu"> - <option value="en">English</option> <% for (lang in langs) { %> <option value="<%=lang%>"><%=langs[lang]%></option> <% } %> |