You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tr("Failed to unzip file to the following directory:")
96
-
tr("Check permissions")
95
+
tr("Failed to unzip the plugin package. Probably it's broken or missing from the repository. You may also want to make sure that you have write permission to the plugin directory:")
tr("No error message received. Try to restart Quantum GIS and ensure the plugin isn't installed under a different name. If it is, contact the plugin author and submit this issue, please.")
tr("Are you sure you want to downgrade the plugin to the latest available version? The installed one is newer!")
177
178
tr("Plugin installation failed")
179
+
tr("Plugin has disappeared")
180
+
tr("The plugin seems to have been installed but I don't know where. Probably the plugin package contained a wrong named directory.\nPlease search the list of installed plugins. I'm nearly sure you'll find the plugin there, but I just can't determine which of them it is. It also means that I won't be able to determine if this plugin is installed and inform you about available updates. However the plugin may work. Please contact the plugin author and submit this issue.")
178
181
tr("Plugin installed successfully")
179
182
tr("Python plugin installed.\nYou have to enable it in the Plugin Manager.")
result=QCoreApplication.translate("QgsPluginInstaller","Failed to remove the directory:")+""+path+"\n"+QCoreApplication.translate("QgsPluginInstaller","Check permissions or remove it manually")
54
+
result=QCoreApplication.translate("QgsPluginInstaller","Failed to remove the directory:")+"\n"+path+"\n"+QCoreApplication.translate("QgsPluginInstaller","Check permissions or remove it manually")
55
55
# restore plugin directory if removed by QDir().rmpath()
removeDir(QDir.cleanPath(pluginDir+"/"+self.plugin["localdir"])) # remove old plugin if exists
210
210
un.extract(tmpPath, pluginDir) # final extract.
211
211
except:
212
-
self.mResult=self.tr("Failed to unzip file to the following directory:") +"\n"+pluginDir+"\n"+self.tr("Check permissions")
212
+
self.mResult=self.tr("Failed to unzip the plugin package. Probably it's broken or missing from the repository. You may also want to make sure that you have write permission to the plugin directory:") +"\n"+pluginDir
213
213
self.reject()
214
214
return
215
215
@@ -234,13 +234,13 @@ def abort(self):
234
234
235
235
236
236
# --- class QgsPluginInstallerPluginErrorDialog -------------------------------------------------------------- #
errorMessage=self.tr("No error message received. Try to restart Quantum GIS and ensure the plugin isn't installed under a different name. If it is, contact the plugin author and submit this issue, please.")
ifQMessageBox.warning(self, self.tr("QGIS Python Plugin Installer"), self.tr("Are you sure you want to downgrade the plugin to the latest available version? The installed one is newer!"), QMessageBox.Yes, QMessageBox.No) ==QMessageBox.No:
infoString= (self.tr("Plugin has disappeared"), self.tr("The plugin seems to have been installed but I don't know where. Probably the plugin package contained a wrong named directory.\nPlease search the list of installed plugins. I'm nearly sure you'll find the plugin there, but I just can't determine which of them it is. It also means that I won't be able to determine if this plugin is installed and inform you about available updates. However the plugin may work. Please contact the plugin author and submit this issue."))
556
+
QApplication.setOverrideCursor(Qt.WaitCursor)
557
+
self.getAllAvailablePlugins()
558
+
QApplication.restoreOverrideCursor()
559
+
else:
560
+
try:
561
+
exec ("sys.path_importer_cache.clear()")
562
+
exec ("del sys.modules[%s]"%plugin["localdir"]) # remove old version if exist
0 commit comments