mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
[Basilisk] Change button labels in cookies dialog
This commit is contained in:
parent
1f7eb5a1f1
commit
55ac29aa10
4 changed files with 34 additions and 14 deletions
|
|
@ -30,6 +30,11 @@ var gCookiesWindow = {
|
||||||
this._bundle = document.getElementById("bundlePreferences");
|
this._bundle = document.getElementById("bundlePreferences");
|
||||||
this._tree = document.getElementById("cookiesList");
|
this._tree = document.getElementById("cookiesList");
|
||||||
|
|
||||||
|
let removeAllCookies = document.getElementById("removeAllCookies");
|
||||||
|
removeAllCookies.setAttribute("accesskey", this._bundle.getString("removeAllCookies.accesskey"));
|
||||||
|
let removeSelectedCookies = document.getElementById("removeSelectedCookies");
|
||||||
|
removeSelectedCookies.setAttribute("accesskey", this._bundle.getString("removeSelectedCookies.accesskey"));
|
||||||
|
|
||||||
this._populateList(true);
|
this._populateList(true);
|
||||||
|
|
||||||
document.getElementById("filter").focus();
|
document.getElementById("filter").focus();
|
||||||
|
|
@ -582,7 +587,7 @@ var gCookiesWindow = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let buttonLabel = this._bundle.getString("removeSelectedCookies");
|
let buttonLabel = this._bundle.getString("removeSelectedCookies.label");
|
||||||
let removeSelectedCookies = document.getElementById("removeSelectedCookies");
|
let removeSelectedCookies = document.getElementById("removeSelectedCookies");
|
||||||
removeSelectedCookies.label = PluralForm.get(selectedCookieCount, buttonLabel)
|
removeSelectedCookies.label = PluralForm.get(selectedCookieCount, buttonLabel)
|
||||||
.replace("#1", selectedCookieCount);
|
.replace("#1", selectedCookieCount);
|
||||||
|
|
@ -894,7 +899,17 @@ var gCookiesWindow = {
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateRemoveAllButton: function gCookiesWindow__updateRemoveAllButton() {
|
_updateRemoveAllButton: function gCookiesWindow__updateRemoveAllButton() {
|
||||||
document.getElementById("removeAllCookies").disabled = this._view._rowCount == 0;
|
let removeAllCookies = document.getElementById("removeAllCookies");
|
||||||
|
removeAllCookies.disabled = this._view._rowCount == 0;
|
||||||
|
|
||||||
|
let labelStringID = "removeAllCookies.label";
|
||||||
|
let accessKeyStringID = "removeAllCookies.accesskey";
|
||||||
|
if (this._view._filtered) {
|
||||||
|
labelStringID = "removeAllShownCookies.label";
|
||||||
|
accessKeyStringID = "removeAllShownCookies.accesskey";
|
||||||
|
}
|
||||||
|
removeAllCookies.setAttribute("label", this._bundle.getString(labelStringID));
|
||||||
|
removeAllCookies.setAttribute("accesskey", this._bundle.getString(accessKeyStringID));
|
||||||
},
|
},
|
||||||
|
|
||||||
filter: function () {
|
filter: function () {
|
||||||
|
|
|
||||||
|
|
@ -96,10 +96,8 @@
|
||||||
<hbox align="end">
|
<hbox align="end">
|
||||||
<hbox class="actionButtons" flex="1">
|
<hbox class="actionButtons" flex="1">
|
||||||
<button id="removeSelectedCookies" disabled="true" icon="clear"
|
<button id="removeSelectedCookies" disabled="true" icon="clear"
|
||||||
accesskey="&button.removeSelectedCookies.accesskey;"
|
|
||||||
oncommand="gCookiesWindow.deleteCookie();"/>
|
oncommand="gCookiesWindow.deleteCookie();"/>
|
||||||
<button id="removeAllCookies" disabled="true" icon="clear"
|
<button id="removeAllCookies" disabled="true" icon="clear"
|
||||||
label="&button.removeAllCookies.label;" accesskey="&button.removeAllCookies.accesskey;"
|
|
||||||
oncommand="gCookiesWindow.deleteAllCookies();"/>
|
oncommand="gCookiesWindow.deleteAllCookies();"/>
|
||||||
<spacer flex="1"/>
|
<spacer flex="1"/>
|
||||||
#ifndef XP_MACOSX
|
#ifndef XP_MACOSX
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,6 @@
|
||||||
<!ENTITY cookiesonsystem.label "The following cookies are stored on your computer:">
|
<!ENTITY cookiesonsystem.label "The following cookies are stored on your computer:">
|
||||||
<!ENTITY cookiename.label "Cookie Name">
|
<!ENTITY cookiename.label "Cookie Name">
|
||||||
<!ENTITY cookiedomain.label "Site">
|
<!ENTITY cookiedomain.label "Site">
|
||||||
<!-- LOCALIZATION NOTE (button.removeSelectedCookies.accesskey):
|
|
||||||
The label associated with this accesskey can be found in
|
|
||||||
preferences.properties as removeSelectedCookies.
|
|
||||||
-->
|
|
||||||
<!ENTITY button.removeSelectedCookies.accesskey "R">
|
|
||||||
<!ENTITY button.removeAllCookies.label "Remove All">
|
|
||||||
<!ENTITY button.removeAllCookies.accesskey "A">
|
|
||||||
|
|
||||||
<!ENTITY props.name.label "Name:">
|
<!ENTITY props.name.label "Name:">
|
||||||
<!ENTITY props.value.label "Content:">
|
<!ENTITY props.value.label "Content:">
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,18 @@ cannot=Block
|
||||||
noCookieSelected=<no cookie selected>
|
noCookieSelected=<no cookie selected>
|
||||||
cookiesAll=The following cookies are stored on your computer:
|
cookiesAll=The following cookies are stored on your computer:
|
||||||
cookiesFiltered=The following cookies match your search:
|
cookiesFiltered=The following cookies match your search:
|
||||||
|
|
||||||
|
# LOCALIZATION NOTE (removeAllCookies, removeAllShownCookies):
|
||||||
|
# removeAllCookies and removeAllShownCookies are both used on the same one button,
|
||||||
|
# never displayed together and can share the same accesskey.
|
||||||
|
# When only partial cookies are shown as a result of keyword search,
|
||||||
|
# removeAllShownCookies is displayed as button label.
|
||||||
|
# removeAllCookies is displayed when no keyword search and all cookies are shown.
|
||||||
|
removeAllCookies.label=Remove All
|
||||||
|
removeAllCookies.accesskey=A
|
||||||
|
removeAllShownCookies.label=Remove All Shown
|
||||||
|
removeAllShownCookies.accesskey=A
|
||||||
|
|
||||||
# LOCALIZATION NOTE (removeSelectedCookies):
|
# LOCALIZATION NOTE (removeSelectedCookies):
|
||||||
# Semicolon-separated list of plural forms. See:
|
# Semicolon-separated list of plural forms. See:
|
||||||
# http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
# http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||||
|
|
@ -130,7 +142,9 @@ cookiesFiltered=The following cookies match your search:
|
||||||
# you can use #1 in your localization as a placeholder for the number.
|
# you can use #1 in your localization as a placeholder for the number.
|
||||||
# For example this is the English string with numbers:
|
# For example this is the English string with numbers:
|
||||||
# removeSelectedCookied=Remove #1 Selected;Remove #1 Selected
|
# removeSelectedCookied=Remove #1 Selected;Remove #1 Selected
|
||||||
removeSelectedCookies=Remove Selected;Remove Selected
|
removeSelectedCookies.label=Remove Selected;Remove Selected
|
||||||
|
removeSelectedCookies.accesskey=R
|
||||||
|
|
||||||
defaultUserContextLabel=None
|
defaultUserContextLabel=None
|
||||||
|
|
||||||
#### Offline apps
|
#### Offline apps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue