fixed CQ for bitmessageqt.languagebox module

This commit is contained in:
coolguy-cell 2020-06-03 16:59:15 +05:30
parent b750b02963
commit e372459737
No known key found for this signature in database
GPG Key ID: CD3A42E1D470AD70
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
"""Language Box Module for Locale Settings"""
# pylint: disable=too-few-public-methods,bad-continuation
import glob
import os
@ -8,6 +10,7 @@ from bmconfigparser import BMConfigParser
class LanguageBox(QtGui.QComboBox):
"""LanguageBox class for Qt UI"""
languageName = {
"system": "System Settings", "eo": "Esperanto",
"en_pirate": "Pirate English"
@ -18,6 +21,7 @@ class LanguageBox(QtGui.QComboBox):
self.populate()
def populate(self):
"""Populates drop down list with all available languages."""
self.clear()
localesPath = os.path.join(paths.codePath(), 'translations')
self.addItem(QtGui.QApplication.translate(