Take Bug #204773 for thunderbird (fix for locale switching when extensions are installed)

Thanks to Stephen Walker for the patch.


git-svn-id: svn://10.0.0.236/trunk@145356 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2003-07-29 22:51:28 +00:00
parent dfcbcda8ae
commit 94b58f5829
4 changed files with 25 additions and 2 deletions

View File

@@ -132,10 +132,14 @@ function updateDisableExtButton(item)
if (disableButton.disabled)
disableButton.disabled = false;
var prefBundle = document.getElementById("bundle_prefutilities");
var enableExtension = prefBundle.getString("enableExtension");
var disableExtension = prefBundle.getString("disableExtension");
if (item.getAttribute("disabledState") == "true")
disableButton.setAttribute("label", "Enable Extension"); // XXXdwh localize
disableButton.setAttribute("label", enableExtension);
else
disableButton.setAttribute("label", "Disable Extension"); // XXXdwh localize
disableButton.setAttribute("label", disableExtension);
}
function showSettings()

View File

@@ -53,6 +53,8 @@
onload="parent.initPanel('chrome://communicator/content/pref/pref-extensions.xul'); Startup()"
headertitle="&lHeader;">
<stringbundle id="bundle_prefutilities" src="chrome://communicator/locale/pref/prefutilities.properties"/>
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-extensions.js"/>
<description>&extensionIntro.label;</description>

View File

@@ -21,6 +21,7 @@ comm.jar:
* content/communicator/pref/pref-calibrate-screen.xul (content/pref-calibrate-screen.xul)
en-US.jar:
+ locale/en-US/communicator/pref/prefutilities.properties (locale/prefutilities.properties)
+ locale/en-US/communicator/pref/pref-fonts.dtd (locale/pref-fonts.dtd)
+ locale/en-US/communicator/pref/pref-themes.dtd (locale/pref-themes.dtd)
+ locale/en-US/messenger/messengercompose/pref-formatting.dtd (locale/pref-formatting.dtd)

View File

@@ -0,0 +1,16 @@
choosefile=Choose a file
# Themes preferences panel inserts the name of the selected
# theme into the %theme_name% segment
applyThemePrefix=Apply %theme_name%
uninstallThemePrefix=Uninstall %theme_name%
oldTheme=You have selected a theme which was designed for an earlier version of %brand% and is incompatible with your current %brand% version. Please check the %brand% Theme Park for an updated version of the theme. You can uninstall this theme by clicking \"Uninstall %theme_name%\" button.
enableExtension=Enable Extension
disableExtension=Disable Extension
prefSaveFailedAlert=Failed to save the preferences file. Any preference changes will be lost at the end of this session.
prefSaveFailedTitle=Save Error
labelDefaultFont=Default (%font_family%)