Helpviewer/Bookmarks/BookmarksImporters/IExplorerImporter.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
83 83
84 @return flag indicating success (boolean) 84 @return flag indicating success (boolean)
85 """ 85 """
86 if not os.path.exists(self.__fileName): 86 if not os.path.exists(self.__fileName):
87 self._error = True 87 self._error = True
88 self._errorString = self.trUtf8("Folder '{0}' does not exist.")\ 88 self._errorString = self.tr("Folder '{0}' does not exist.")\
89 .format(self.__fileName) 89 .format(self.__fileName)
90 return False 90 return False
91 if not os.path.isdir(self.__fileName): 91 if not os.path.isdir(self.__fileName):
92 self._error = True 92 self._error = True
93 self._errorString = self.trUtf8("'{0}' is not a folder.")\ 93 self._errorString = self.tr("'{0}' is not a folder.")\
94 .format(self.__fileName) 94 .format(self.__fileName)
95 return True 95 return True
96 96
97 def importedBookmarks(self): 97 def importedBookmarks(self):
98 """ 98 """
141 importRootNode) 141 importRootNode)
142 bookmark.url = url 142 bookmark.url = url
143 bookmark.title = name.replace("&", "&&") 143 bookmark.title = name.replace("&", "&&")
144 144
145 if self._id == "ie": 145 if self._id == "ie":
146 importRootNode.title = self.trUtf8("Internet Explorer Import") 146 importRootNode.title = self.tr("Internet Explorer Import")
147 else: 147 else:
148 importRootNode.title = self.trUtf8("Imported {0}")\ 148 importRootNode.title = self.tr("Imported {0}")\
149 .format(QDate.currentDate().toString(Qt.SystemLocaleShortDate)) 149 .format(QDate.currentDate().toString(Qt.SystemLocaleShortDate))
150 return importRootNode 150 return importRootNode

eric ide

mercurial