File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def __init__(self):
35
35
QtGui .QDialog .__init__ (self )
36
36
self .setModal (True )
37
37
self .setupUi ()
38
-
38
+
39
39
def setupUi (self ):
40
40
self .setMaximumSize (500 , 300 )
41
41
self .webView = QtWebKit .QWebView ()
@@ -58,15 +58,16 @@ def setupUi(self):
58
58
qgisDataDir = QgsApplication .pkgDataPath ()
59
59
listFile = os .listdir (qgisDataDir + "/python/console_help/i18n" )
60
60
localeFullName = QSettings ().value ( "locale/userLocale" , QVariant ( "" ) ).toString ()
61
+ locale = "en_US"
61
62
for i in listFile :
62
63
lang = i [0 :5 ]
63
64
if localeFullName in (lang [0 :2 ], lang ):
64
65
locale = lang
65
-
66
+
66
67
filename = qgisDataDir + "/python/console_help/help.htm? \
67
68
lang=" + locale \
68
69
+ "&pkgDir=" + qgisDataDir
69
-
70
+
70
71
url = QtCore .QUrl (filename )
71
72
self .webView .load (url )
72
73
You can’t perform that action at this time.
0 commit comments