Skip to content

Commit ae2c14d

Browse files
committedOct 29, 2012
show english help for console if translations not found
1 parent d1a5bbf commit ae2c14d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed
 

‎build.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎python/console_help.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self):
3535
QtGui.QDialog.__init__(self)
3636
self.setModal(True)
3737
self.setupUi()
38-
38+
3939
def setupUi(self):
4040
self.setMaximumSize(500, 300)
4141
self.webView = QtWebKit.QWebView()
@@ -58,15 +58,16 @@ def setupUi(self):
5858
qgisDataDir = QgsApplication.pkgDataPath()
5959
listFile = os.listdir(qgisDataDir + "/python/console_help/i18n")
6060
localeFullName = QSettings().value( "locale/userLocale", QVariant( "" ) ).toString()
61+
locale = "en_US"
6162
for i in listFile:
6263
lang = i[0:5]
6364
if localeFullName in (lang[0:2], lang):
6465
locale = lang
65-
66+
6667
filename = qgisDataDir + "/python/console_help/help.htm? \
6768
lang=" + locale \
6869
+ "&pkgDir=" + qgisDataDir
69-
70+
7071
url = QtCore.QUrl(filename)
7172
self.webView.load(url)
7273

0 commit comments

Comments
 (0)
Please sign in to comment.