From e131f6007175af34b3e18cf1aaa52bf7907ba2c4 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 17 Nov 2012 14:33:01 +0100 Subject: [PATCH] Serve English strings directly with /locales.ini --- src/locales/en.ini | 2 +- src/node/hooks/i18n.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/locales/en.ini b/src/locales/en.ini index 95b8eadd..6077c1f5 100644 --- a/src/locales/en.ini +++ b/src/locales/en.ini @@ -1,4 +1,4 @@ -[en] +[*] index.newPad = New Pad index.createOpenPad = or create/open a Pad with the name: pad.toolbar.bold.title = Bold (Ctrl-B) 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) {