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/node | |
parent | 993d50194372bea8bd2db18a0f93cc67440a2906 (diff) | |
download | etherpad-lite-19c12239f63e151735e2f5d69233e87dfd00b7d1.zip |
Simplify lang setting in pad.html template
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/hooks/i18n.js | 4 |
1 files changed, 2 insertions, 2 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; |