зеркало из https://github.com/mozilla/pjs.git
Bug 135269 No Open Bookmarks File menu option r=varga sr=alecf
This commit is contained in:
Родитель
74ea8a7d52
Коммит
a7b03b0c5e
|
@ -120,3 +120,13 @@ function onViewMenuColumnItemSelected(aEvent)
|
|||
|
||||
aEvent.preventBubble();
|
||||
}
|
||||
|
||||
function OpenBookmarksFile()
|
||||
{
|
||||
const nsIFilePicker = Components.interfaces.nsIFilePicker;
|
||||
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
|
||||
fp.init(window, BookmarksUtils.getLocaleString("SelectOpen"), nsIFilePicker.modeOpen);
|
||||
fp.appendFilters(nsIFilePicker.filterHTML);
|
||||
if (fp.show() == nsIFilePicker.returnOK)
|
||||
PREF.setCharPref("browser.bookmarks.file", fp.file.path);
|
||||
}
|
||||
|
|
|
@ -223,6 +223,9 @@
|
|||
<menuitem command="cmd_bm_find" key="bm_key_find"
|
||||
label="&menuitem.find.label;"
|
||||
accesskey="&menuitem.find.accesskey;"/>
|
||||
<menuitem label="&menuitem.open.label;"
|
||||
accesskey="&menuitem.open.accesskey;"
|
||||
oncommand="OpenBookmarksFile();"/>
|
||||
<menuitem label="&menuitem.import.label;"
|
||||
accesskey="&menuitem.import.accesskey;"
|
||||
observes="cmd_bm_import"/>
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
<!ENTITY button.newSeparator.label "New Separator">
|
||||
<!ENTITY button.newSeparator.accesskey "o">
|
||||
<!ENTITY command.newSeparator.accesskey "S">
|
||||
<!ENTITY menuitem.open.label "Open Bookmark File...">
|
||||
<!ENTITY menuitem.open.accesskey "O">
|
||||
<!ENTITY menuitem.import.label "Import...">
|
||||
<!ENTITY menuitem.import.accesskey "i">
|
||||
<!ENTITY menuitem.export.label "Export...">
|
||||
|
|
|
@ -87,6 +87,7 @@ ImportedIEStaticFavorites = Imported IE Favorites
|
|||
ImportedNetPositiveBookmarks = Imported NetPositive Bookmarks
|
||||
DefaultPersonalToolbarFolder = Personal Toolbar Folder
|
||||
|
||||
SelectOpen = Open bookmark file:
|
||||
SelectImport = Import bookmark file:
|
||||
EnterExport = Export bookmark file:
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче