From 19c12239f63e151735e2f5d69233e87dfd00b7d1 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 12 Nov 2012 18:04:21 +0100 Subject: [PATCH] Simplify lang setting in pad.html template --- src/node/hooks/i18n.js | 4 ++-- 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 a2faa4586..67170ab35 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 bd2e70547..b31f3d1bb 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -211,7 +211,6 @@

Language: