Update __init__.py
This commit is contained in:
parent
b4e292e280
commit
8bf8e47cd1
|
@ -2933,8 +2933,11 @@ def run():
|
||||||
app = QtGui.QApplication(sys.argv)
|
app = QtGui.QApplication(sys.argv)
|
||||||
translator = QtCore.QTranslator()
|
translator = QtCore.QTranslator()
|
||||||
|
|
||||||
translator.load("translations/bitmessage_" + str(locale.getlocale()[0]))
|
try:
|
||||||
#translator.load("translations/bitmessage_fr_BE") # Try French instead
|
translator.load("translations/bitmessage_" + str(locale.getlocale()[0]))
|
||||||
|
except:
|
||||||
|
# The above is not compatible with all versions of OSX.
|
||||||
|
translator.load("translations/bitmessage_en_US") # Default to english.
|
||||||
|
|
||||||
QtGui.QApplication.installTranslator(translator)
|
QtGui.QApplication.installTranslator(translator)
|
||||||
app.setStyleSheet("QStatusBar::item { border: 0px solid black }")
|
app.setStyleSheet("QStatusBar::item { border: 0px solid black }")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user