зеркало из https://github.com/mozilla/gecko-dev.git
bug 224522: collapse menuitem needs a correct accesskey "C".
Moving the crap out of history.properties.
This commit is contained in:
Родитель
8d6fec6afc
Коммит
3fd3695714
|
@ -40,14 +40,16 @@
|
|||
<script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://browser/content/utilityOverlay.js"/>
|
||||
|
||||
<stringbundle id="historyBundle" src="chrome://browser/locale/history/history.properties"/>
|
||||
<stringbundle id="historyBundle" src="chrome://global/locale/history/history.properties"/>
|
||||
|
||||
<commandset id="editMenuCommands"/>
|
||||
<keyset id="editMenuKeys"/>
|
||||
|
||||
<popup id="historyContextMenu" onpopupshowing="buildContextMenu();">
|
||||
<menuitem id="miCollapseExpand" accesskey="&collapseExpand.accesskey;" default="true"
|
||||
oncommand="collapseExpand();"/>
|
||||
<menuitem id="miExpand" label="&expand.label;" accesskey="&expand.accesskey;"
|
||||
default="true" oncommand="collapseExpand();"/>
|
||||
<menuitem id="miCollapse" label="&collapse.label;" accesskey="&collapse.accesskey;"
|
||||
default="true" oncommand="collapseExpand();"/>
|
||||
<menuitem id="miOpen" label="&openLinkInWindow.label;" accesskey="&openLinkInWindow.accesskey;" default="true"
|
||||
oncommand="OpenURL(0);"/>
|
||||
<menuitem id="miOpenInNewWindow" label="&openInNewWindow.label;" accesskey="&openInNewWindow.accesskey;"
|
||||
|
|
|
@ -222,7 +222,8 @@ function buildContextMenu()
|
|||
var copyLocationItem = document.getElementById("miCopyLink");
|
||||
var sep1 = document.getElementById("pre-bookmarks-separator");
|
||||
var sep2 = document.getElementById("post-bookmarks-separator");
|
||||
var collapseExpandItem = document.getElementById("miCollapseExpand");
|
||||
var expandItem = document.getElementById("miExpand");
|
||||
var collapseItem = document.getElementById("miCollapse");
|
||||
if (count > 1) {
|
||||
openItem.hidden = true;
|
||||
openItemInNewWindow.hidden = true;
|
||||
|
@ -231,13 +232,13 @@ function buildContextMenu()
|
|||
copyLocationItem.hidden = true;
|
||||
sep1.hidden = true;
|
||||
sep2.hidden = true;
|
||||
collapseExpandItem.hidden = true;
|
||||
expandItem.hidden = true;
|
||||
collapseItem.hidden = true;
|
||||
}
|
||||
else {
|
||||
var currentIndex = gHistoryTree.currentIndex;
|
||||
if ((gHistoryGrouping == "day" || gHistoryGrouping == "dayandsite")
|
||||
&& isContainer(gHistoryTree, currentIndex)) {
|
||||
var bundle = document.getElementById("historyBundle");
|
||||
openItem.hidden = true;
|
||||
openItemInNewWindow.hidden = true;
|
||||
openItemInNewTab.hidden = true;
|
||||
|
@ -245,11 +246,13 @@ function buildContextMenu()
|
|||
copyLocationItem.hidden = true;
|
||||
sep1.hidden = true;
|
||||
sep2.hidden = false;
|
||||
collapseExpandItem.hidden = false;
|
||||
if (isContainerOpen(gHistoryTree, currentIndex))
|
||||
collapseExpandItem.setAttribute("label", bundle.getString("collapseLabel"));
|
||||
else
|
||||
collapseExpandItem.setAttribute("label", bundle.getString("expandLabel"));
|
||||
if (isContainerOpen(gHistoryTree, currentIndex)) {
|
||||
expandItem.hidden = true;
|
||||
collapseItem.hidden = false;
|
||||
} else {
|
||||
expandItem.hidden = false;
|
||||
collapseItem.hidden = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
openItem.hidden = false;
|
||||
|
@ -259,7 +262,8 @@ function buildContextMenu()
|
|||
copyLocationItem.hidden = false;
|
||||
sep1.hidden = false;
|
||||
sep2.hidden = false;
|
||||
collapseExpandItem.hidden = true;
|
||||
expandItem.hidden = true;
|
||||
collapseItem.hidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<!ENTITY find.label "Search:">
|
||||
<!ENTITY find.accesskey "S">
|
||||
<!ENTITY collapseExpand.accesskey "e">
|
||||
<!ENTITY expand.label "Expand">
|
||||
<!ENTITY expand.accesskey "E">
|
||||
<!ENTITY collapse.label "Collapse">
|
||||
<!ENTITY collapse.accesskey "C">
|
||||
<!ENTITY byDate.label "By Date">
|
||||
<!ENTITY byDate.accesskey "D">
|
||||
<!ENTITY bySite.label "By Site">
|
||||
|
|
|
@ -12,7 +12,3 @@ finduri-Hostname-is-=(no host)
|
|||
|
||||
search_button_label=Find
|
||||
search_results_title=Search Results
|
||||
|
||||
collapseLabel=Collapse
|
||||
expandLabel=Expand
|
||||
collapseExpandAccesskey=e
|
Загрузка…
Ссылка в новой задаче