From 4b9b92fa1dacc6905aa47e61413e4ff456807a89 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 13 Sep 2011 11:35:04 -0700 Subject: [PATCH] bug 10216: cloudStack - fix a bug => 4. "Default theme" button langeage changes to English after choose the default theme in Japanese locale --- ui/index.jsp | 1 + ui/scripts/cloud.core.init.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/index.jsp b/ui/index.jsp index 6118cae3ca3..3c478800061 100644 --- a/ui/index.jsp +++ b/ui/index.jsp @@ -96,6 +96,7 @@ 'label.PreSetup': '', 'label.iscsi': '', 'label.VMFS.datastore': '', + 'label.theme.default': '', 'label.none': '', 'label.yes': '', 'label.no': '' diff --git a/ui/scripts/cloud.core.init.js b/ui/scripts/cloud.core.init.js index 01b751fe53d..8d343cadbd1 100644 --- a/ui/scripts/cloud.core.init.js +++ b/ui/scripts/cloud.core.init.js @@ -66,7 +66,7 @@ $(document).ready(function() { $currentTheme.remove(); $currentTheme = null; } - var name = "Default Theme"; + var name = g_dictionary["label.theme.default"]; if (id != "theme_default") { $currentTheme = $("").appendTo("head").attr({ rel: "stylesheet", @@ -80,7 +80,7 @@ $(document).ready(function() { $currentTheme.remove(); } $.cookie("theme", null); - name = "Default Theme"; + name = g_dictionary["label.theme.default"]; } $("#theme_button p").text(name); $(this).hide();