Helpviewer/Bookmarks/BookmarksImporters/XbelImporter.py

changeset 3670
f0cb7579c0b4
parent 3656
441956d8fce5
child 4021
195a471c327b
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
32 if id == "e5browser": 32 if id == "e5browser":
33 from ..BookmarksManager import BookmarksManager 33 from ..BookmarksManager import BookmarksManager
34 bookmarksFile = BookmarksManager.getFileName() 34 bookmarksFile = BookmarksManager.getFileName()
35 return ( 35 return (
36 UI.PixmapCache.getPixmap("ericWeb48.png"), 36 UI.PixmapCache.getPixmap("ericWeb48.png"),
37 "eric5 Web Browser", 37 "eric6 Web Browser",
38 os.path.basename(bookmarksFile), 38 os.path.basename(bookmarksFile),
39 QCoreApplication.translate( 39 QCoreApplication.translate(
40 "XbelImporter", 40 "XbelImporter",
41 """eric5 Web Browser stores its bookmarks in the""" 41 """eric6 Web Browser stores its bookmarks in the"""
42 """ <b>{0}</b> XML file. This file is usually located in""" 42 """ <b>{0}</b> XML file. This file is usually located in"""
43 ).format(os.path.basename(bookmarksFile)), 43 ).format(os.path.basename(bookmarksFile)),
44 QCoreApplication.translate( 44 QCoreApplication.translate(
45 "XbelImporter", 45 "XbelImporter",
46 """Please choose the file to begin importing bookmarks."""), 46 """Please choose the file to begin importing bookmarks."""),
145 return None 145 return None
146 146
147 from ..BookmarkNode import BookmarkNode 147 from ..BookmarkNode import BookmarkNode
148 importRootNode.setType(BookmarkNode.Folder) 148 importRootNode.setType(BookmarkNode.Folder)
149 if self._id == "e5browser": 149 if self._id == "e5browser":
150 importRootNode.title = self.tr("eric5 Web Browser Import") 150 importRootNode.title = self.tr("eric6 Web Browser Import")
151 elif self._id == "konqueror": 151 elif self._id == "konqueror":
152 importRootNode.title = self.tr("Konqueror Import") 152 importRootNode.title = self.tr("Konqueror Import")
153 elif self._id == "xbel": 153 elif self._id == "xbel":
154 importRootNode.title = self.tr("XBEL Import") 154 importRootNode.title = self.tr("XBEL Import")
155 else: 155 else:

eric ide

mercurial