From e9ddd1819aca2c9128279c802334ed900d61cd16 Mon Sep 17 00:00:00 2001 From: Tingan Ho Date: Sat, 22 Aug 2015 23:15:36 +0800 Subject: [PATCH] Fixes ordering issues with an added locale --- interface/contents/localizations/Localizations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/contents/localizations/Localizations.js b/interface/contents/localizations/Localizations.js index 555ec4bd..5cdb0976 100644 --- a/interface/contents/localizations/Localizations.js +++ b/interface/contents/localizations/Localizations.js @@ -64,11 +64,11 @@ define(function(require) { if(locale !== project.defaultLanguage) { _this.setMeta('l10n_keys', 'Keys | ' + project.defaultLanguage); - var localizationsWithDefaultLocale = file.localizationMapToArray(localizations)[project.defaultLanguage]; + var localizationsWithDefaultLocale = localizations[project.defaultLanguage]; for(var index = 0; index < localizationsWithRequestedLocale.length; index++) { localizationsWithRequestedLocale[index].keyText = - localizationsWithRequestedLocale[index].key + '
' + localizationsWithDefaultLocale[index].value +''; + localizationsWithRequestedLocale[index].key + '
' + localizationsWithDefaultLocale[localizationsWithRequestedLocale[index].key].value +''; } } else {