Simplify lang setting in pad.html template
parent
993d501943
commit
19c12239f6
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue