added dependency check for PyICU in exception dialog

This commit is contained in:
M2j 2012-01-17 21:58:20 +01:00
parent 7491023005
commit 82250ee71f
1 changed files with 7 additions and 1 deletions

View File

@ -81,6 +81,11 @@ try:
WEBKIT_VERSION = QtWebKit.qWebKitVersion()
except AttributeError:
WEBKIT_VERSION = u'-'
try:
import icu
ICU_VERSION = u'OK'
except ImportError:
ICU_VERSION = u'-'
from openlp.core.lib import translate, SettingsManager
@ -125,7 +130,8 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
u'PyEnchant: %s\n' % ENCHANT_VERSION + \
u'PySQLite: %s\n' % SQLITE_VERSION + \
u'Mako: %s\n' % MAKO_VERSION + \
u'pyUNO bridge: %s\n' % UNO_VERSION
u'pyUNO bridge: %s\n' % UNO_VERSION + \
u'PyICU: %s\n' % ICU_VERSION
if platform.system() == u'Linux':
if os.environ.get(u'KDE_FULL_SESSION') == u'true':
system = system + u'Desktop: KDE SC\n'