Skip to content
Permalink
Browse files

[pyqgis-console] fixes import warning

  • Loading branch information
slarosa committed May 1, 2013
1 parent 8e6e287 commit ee4fc4e1a619889f70d9a34fd9c9a7a09ccc2945
@@ -1,4 +1,4 @@
ADD_SUBDIRECTORY(console_help)
ADD_SUBDIRECTORY(help)

SET (QGIS_CONSOLE_DIR ${QGIS_DATA_DIR}/python/console)
SET (PYTHON_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/python)
@@ -38,15 +38,15 @@ def __init__(self, parent):
self.setMaximumSize(530, 300)

qgisDataDir = QgsApplication.pkgDataPath()
listFile = os.listdir(qgisDataDir + "/python/console/console_help/i18n")
listFile = os.listdir(qgisDataDir + "/python/console/help/i18n")
localeFullName = QSettings().value( "locale/userLocale", QVariant( "" ) ).toString()
locale = "en_US"
for i in listFile:
lang = i[0:5]
if localeFullName in (lang[0:2], lang):
locale = lang

filename = qgisDataDir + "/python/console/console_help/help.htm? \
filename = qgisDataDir + "/python/console/help/help.htm? \
lang=" + locale \
+ "&pkgDir=" + qgisDataDir

@@ -2,6 +2,6 @@ FILE(GLOB HTML_FILES *.htm)
FILE(GLOB I18N_FILES i18n/*.properties)
FILE(GLOB JS_FILES js/*.js)

INSTALL(FILES ${HTML_FILES} DESTINATION ${QGIS_DATA_DIR}/python/console/console_help)
INSTALL(FILES ${I18N_FILES} DESTINATION ${QGIS_DATA_DIR}/python/console/console_help/i18n)
INSTALL(FILES ${JS_FILES} DESTINATION ${QGIS_DATA_DIR}/python/console/console_help/js)
INSTALL(FILES ${HTML_FILES} DESTINATION ${QGIS_DATA_DIR}/python/console/help)
INSTALL(FILES ${I18N_FILES} DESTINATION ${QGIS_DATA_DIR}/python/console/help/i18n)
INSTALL(FILES ${JS_FILES} DESTINATION ${QGIS_DATA_DIR}/python/console/help/js)
File renamed without changes.
@@ -1,4 +1,4 @@
You can contribute at translate this help by creating an file *.properties and name it in
You can contribute to translate this help by creating a file *.properties and name it in
<your_locale_name>.properties
To get your locale name type the following lines in console:

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ee4fc4e

Please sign in to comment.
You can’t perform that action at this time.