Plugins/PluginVcsPySvn.py

changeset 3656
441956d8fce5
parent 3523
8df1ab89e261
child 3677
a53cf139293f
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 13
14 from PyQt4.QtCore import QObject 14 from PyQt5.QtCore import QObject, QCoreApplication
15 from PyQt4.QtGui import QApplication
16 15
17 from E5Gui.E5Application import e5App 16 from E5Gui.E5Application import e5App
18 17
19 import Preferences 18 import Preferences
20 from Preferences.Shortcuts import readShortcuts 19 from Preferences.Shortcuts import readShortcuts
58 text = "PySvn" 57 text = "PySvn"
59 version = "" 58 version = ""
60 59
61 data = { 60 data = {
62 "programEntry": False, 61 "programEntry": False,
63 "header": QApplication.translate( 62 "header": QCoreApplication.translate(
64 "VcsPySvnPlugin", "Version Control - Subversion (pysvn)"), 63 "VcsPySvnPlugin", "Version Control - Subversion (pysvn)"),
65 "text": text, 64 "text": text,
66 "version": version, 65 "version": version,
67 } 66 }
68 67
89 88
90 @return display string (string) 89 @return display string (string)
91 """ 90 """
92 try: 91 try:
93 import pysvn # __IGNORE_WARNING__ 92 import pysvn # __IGNORE_WARNING__
94 return QApplication.translate('VcsPySvnPlugin', 'Subversion (pysvn)') 93 return QCoreApplication.translate('VcsPySvnPlugin',
94 'Subversion (pysvn)')
95 except ImportError: 95 except ImportError:
96 return "" 96 return ""
97 97
98 subversionCfgPluginObject = None 98 subversionCfgPluginObject = None
99 99
121 @return dictionary with key "zzz_subversionPage" containing the relevant 121 @return dictionary with key "zzz_subversionPage" containing the relevant
122 data 122 data
123 """ 123 """
124 return { 124 return {
125 "zzz_subversionPage": 125 "zzz_subversionPage":
126 [QApplication.translate("VcsPySvnPlugin", "Subversion"), 126 [QCoreApplication.translate("VcsPySvnPlugin", "Subversion"),
127 os.path.join("VcsPlugins", "vcsPySvn", "icons", 127 os.path.join("VcsPlugins", "vcsPySvn", "icons",
128 "preferences-subversion.png"), 128 "preferences-subversion.png"),
129 createConfigurationPage, "vcsPage", None], 129 createConfigurationPage, "vcsPage", None],
130 } 130 }
131 131

eric ide

mercurial