From 8ec26fb531eedc8fdb9f4731900c047760178fb6 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 12 Nov 2014 09:55:27 -0800 Subject: [PATCH] CLOUDSTACK-7645: UI: Fix method for extending dictionary Instead of mapping both dictionary JSP files to separate objects, extend dictionary2's object onto single 'dictionary' object. -- The previous approach was causing issues on certain dialogs, which were not opening due to possible missing labels. Conflicts: ui/dictionary2.jsp --- ui/dictionary2.jsp | 4 ++-- ui/scripts/cloudStack.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/dictionary2.jsp b/ui/dictionary2.jsp index 28b4f05787b..a76ba3b678c 100644 --- a/ui/dictionary2.jsp +++ b/ui/dictionary2.jsp @@ -24,7 +24,7 @@ under the License. <% long now = System.currentTimeMillis(); %> diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index a76e10169c4..7a5988248a7 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -407,9 +407,9 @@ // Localization if (!$.isFunction(cloudStack.localizationFn)) { // i.e., localize is overridden by a plugin/module cloudStack.localizationFn = function(str) { - // look in dictionary first; if not found, try dictionary2 var localized = dictionary[str]; - return localized ? localized : dictionary2[str]; + + return localized ? localized : str; }; }