From e131f6007175af34b3e18cf1aaa52bf7907ba2c4 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 17 Nov 2012 14:33:01 +0100 Subject: Serve English strings directly with /locales.ini --- src/node/hooks/i18n.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/node') 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) { -- cgit v1.2.3