Simplify lang setting in pad.html template

pull/1153/head
Marcel Klehr 2012-11-12 18:04:21 +01:00
parent 993d501943
commit 19c12239f6
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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>
<% } %>