From 5d3372b95b70c975861c174588258d1e57e3fa01 Mon Sep 17 00:00:00 2001 From: Jorgen Rydenius Date: Mon, 3 Dec 2012 17:54:06 +0100 Subject: [PATCH] Only uses files that actually end with ".ini" as locale settings. Fixes https://github.com/ether/etherpad-lite/issues/1251 --- src/node/hooks/i18n.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js index 4d42de048..6d53b18cd 100644 --- a/src/node/hooks/i18n.js +++ b/src/node/hooks/i18n.js @@ -13,6 +13,7 @@ exports.availableLangs = {en: languages.getLanguageInfo('en')} fs.readdir(localesPath, function(er, files) { files.forEach(function(locale) { + if(!foo.match(/\.ini$/)) return; // irrelevant locale = locale.split('.')[0] if(locale.toLowerCase() == 'en') return;