зеркало из https://github.com/mozilla/pjs.git
Bug 252698: Use buttonlabel attributes in <dialog>s
r+sr=neil
This commit is contained in:
Родитель
42a3d2bb22
Коммит
a9c4f46bea
|
@ -43,7 +43,6 @@ function Startup()
|
|||
initServices();
|
||||
initBMService();
|
||||
gOKButton = document.documentElement.getButton("accept");
|
||||
gOKButton.label = BookmarksUtils.getLocaleString("search_button_label");
|
||||
gOKButton.disabled = true;
|
||||
gSearchField = document.getElementById("searchField");
|
||||
gSearchField.focus();
|
||||
|
|
|
@ -51,7 +51,8 @@
|
|||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&findBookmark.title;"
|
||||
onload="Startup();"
|
||||
ondialogaccept="return find();">
|
||||
ondialogaccept="return find();"
|
||||
buttonlabelaccept="&findButton.label;">
|
||||
|
||||
<stringbundle id="bookmarksBundle" src="chrome://communicator/locale/bookmarks/bookmarks.properties"/>
|
||||
|
||||
|
|
|
@ -98,5 +98,3 @@ DefaultPersonalToolbarFolder = Personal Toolbar Folder
|
|||
SelectOpen = Open Bookmarks File
|
||||
SelectImport = Import Bookmarks File
|
||||
EnterExport = Export Bookmarks File
|
||||
|
||||
search_button_label = Find
|
||||
|
|
|
@ -12,4 +12,4 @@
|
|||
<!ENTITY save.query.label "Save query in bookmarks">
|
||||
<!ENTITY search.for.label "Find Bookmarks whose">
|
||||
<!ENTITY findBookmark.title "Find Bookmarks">
|
||||
|
||||
<!ENTITY findButton.label "Find">
|
||||
|
|
Загрузка…
Ссылка в новой задаче