зеркало из https://github.com/mozilla/pjs.git
bug 180364, don't show the theme name in the "Uninstall Theme" button, to make this button fit even if the theme has a long name
r=neil sr=roc a=chofmann
This commit is contained in:
Родитель
5f92aba9ed
Коммит
4867967025
|
@ -182,7 +182,6 @@ function themeSelect()
|
|||
var descText = document.createTextNode(selectedItem.getAttribute("description"));
|
||||
var description = document.getElementById("description");
|
||||
var uninstallButton = document.getElementById("uninstallSkin");
|
||||
var uninstallLabel = prefbundle.getString("uninstallThemePrefix");
|
||||
|
||||
while (description.hasChildNodes())
|
||||
description.removeChild(description.firstChild);
|
||||
|
@ -204,16 +203,10 @@ function themeSelect()
|
|||
|
||||
var locType = selectedItem.getAttribute("loctype");
|
||||
uninstallButton.disabled = (selectedSkin == skinName) || (locType == "install");
|
||||
|
||||
uninstallLabel = uninstallLabel.replace(/%theme_name%/, themeName);
|
||||
uninstallButton.label = uninstallLabel;
|
||||
}
|
||||
else {
|
||||
var brandbundle = document.getElementById("bundle_brand");
|
||||
|
||||
uninstallLabel = uninstallLabel.replace(/%theme_name%/, themeName);
|
||||
uninstallButton.label = uninstallLabel;
|
||||
|
||||
uninstallButton.disabled = selectedSkin == skinName;
|
||||
|
||||
var newText = prefbundle.getString("oldTheme");
|
||||
|
|
|
@ -4,11 +4,6 @@ choosefile=Choose a file
|
|||
viewrow=View...
|
||||
hiderow=Hide
|
||||
|
||||
# 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 %brand% theme sites for an updated version of the theme. You can uninstall this theme by clicking \"Uninstall %theme_name%\" button.
|
||||
|
||||
languageAlert=Please restart %brand% to use the new preferred language or region setting.
|
||||
|
|
Загрузка…
Ссылка в новой задаче