bug 10216: cloudStack - fix a bug => 4. "Default theme" button langeage changes to English after choose the default theme in Japanese locale

This commit is contained in:
Jessica Wang 2011-09-13 11:35:04 -07:00
parent a0b683d4ac
commit 4b9b92fa1d
2 changed files with 3 additions and 2 deletions

View File

@ -96,6 +96,7 @@
'label.PreSetup': '<fmt:message key="label.PreSetup"/>',
'label.iscsi': '<fmt:message key="label.iscsi"/>',
'label.VMFS.datastore': '<fmt:message key="label.VMFS.datastore"/>',
'label.theme.default': '<fmt:message key="label.theme.default"/>',
'label.none': '<fmt:message key="label.none"/>',
'label.yes': '<fmt:message key="label.yes"/>',
'label.no': '<fmt:message key="label.no"/>'

View File

@ -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 = $("<link>").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();