summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-11-17 14:33:01 +0100
committerMarcel Klehr <mklehr@gmx.net>2012-11-17 14:33:01 +0100
commite131f6007175af34b3e18cf1aaa52bf7907ba2c4 (patch)
treec224eea7316eb045508db48b7bbe4ea6d838a6ed /src/node
parentfaeee3e09a310ffffd1de06419138bc72815ca8c (diff)
downloadetherpad-lite-e131f6007175af34b3e18cf1aaa52bf7907ba2c4.zip
Serve English strings directly with /locales.ini
Diffstat (limited to 'src/node')
-rw-r--r--src/node/hooks/i18n.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js
index 6238f2cb..50946c42 100644
--- a/src/node/hooks/i18n.js
+++ b/src/node/hooks/i18n.js
@@ -5,7 +5,9 @@ var Globalize = require('globalize')
var localesPath = __dirname+"/../../locales";
-var localeIndex = '[*]\r\n@import url(locales/en.ini)\r\n';
+// Serve English strings directly with /locales.ini
+var localeIndex = fs.readFileSync(localesPath+'/en.ini')+'\r\n';
+
exports.availableLangs = {en: 'English'};
fs.readdir(localesPath, function(er, files) {