mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Simplify lang setting in pad.html template
This commit is contained in:
parent
993d501943
commit
19c12239f6
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue