Bug 1315458 - Container management: Make "Preferences" and "Remove" buttons localizable. r=jkt

This commit is contained in:
Sebastian Hengst 2016-12-30 11:21:24 +01:00
parent 4b758f2434
commit 8237094b5f
3 changed files with 8 additions and 4 deletions

View File

@ -8,8 +8,10 @@
<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
<!ENTITY % applicationsDTD SYSTEM "chrome://browser/locale/preferences/applications.dtd">
<!ENTITY % containersDTD SYSTEM "chrome://browser/locale/preferences/containers.dtd">
%brandDTD;
%applicationsDTD;
%containersDTD;
]>
<bindings id="handlerBindings"
@ -78,14 +80,14 @@
</xul:hbox>
<xul:hbox flex="1" align="right">
<xul:button anonid="preferencesButton"
label="&preferencesButton.label;"
xbl:inherits="value=userContextId"
onclick="gContainersPane.onPeferenceClick(event.originalTarget)">
Preferences
onclick="gContainersPane.onPreferenceClick(event.originalTarget)">
</xul:button>
<xul:button anonid="removeButton"
label="&removeButton.label;"
xbl:inherits="value=userContextId"
onclick="gContainersPane.onRemoveClick(event.originalTarget)">
Remove
</xul:button>
</xul:hbox>
</xul:hbox>

View File

@ -67,7 +67,7 @@ let gContainersPane = {
this._rebuildView();
},
onPeferenceClick(button) {
onPreferenceClick(button) {
this.openPreferenceDialog(button.getAttribute("value"));
},

View File

@ -4,6 +4,8 @@
<!ENTITY addButton.label "Add New Container">
<!ENTITY addButton.accesskey "A">
<!ENTITY preferencesButton.label "Preferences">
<!ENTITY removeButton.label "Remove">
<!-- &#171; is &laquo; however it's not defined in XML -->
<!ENTITY backLink.label "&#171; Go Back to Privacy">