translations: temporarily using locales_new so we can work with existing

PRs (@paglias). I want to merge to develop sooner-than-later to avoid near-future
conflicts. Pushing to beta
This commit is contained in:
Tyler Renelle 2013-11-13 23:36:18 -08:00
parent 1150de9d9d
commit 6512e17454
2 changed files with 3 additions and 3 deletions

View file

@ -2,6 +2,6 @@
"languageName": "English",
"removeAds": "Remove Ads",
"clientSideStrings": {
"removeAds": "Remove Ads Client Side"
"removeAds": "Remove Ads"
}
}

View file

@ -85,7 +85,7 @@ var translations = {};
var setUpTranslations = function(locale){
var t = translations[locale] = {};
t.server = require(path.join(__dirname, "/../locales/", locale, 'app.json'));
t.server = require(path.join(__dirname, "/../locales_new/", locale, 'app.json'));
t.client = t.server.clientSideStrings;
delete t.server.clientSideStrings;
_.merge(t.server, t.client);
@ -94,7 +94,7 @@ var setUpTranslations = function(locale){
// First fetch english so we can merge with missing strings in other languages
setUpTranslations('en');
fs.readdirSync(path.join(__dirname, "/../locales")).forEach(function(file) {
fs.readdirSync(path.join(__dirname, "/../locales_new")).forEach(function(file) {
if(file === 'en') return;
setUpTranslations(file);
// Merge missing strings from english