Skip to content

Commit

Permalink
Translator tab is edited.
Browse files Browse the repository at this point in the history
	modified:   persepolis/gui/about_ui.py
  • Loading branch information
alireza-amirsamimi committed Sep 16, 2019
1 parent 3a17655 commit aba5015
Showing 1 changed file with 19 additions and 39 deletions.
58 changes: 19 additions & 39 deletions persepolis/gui/about_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,36 +156,25 @@ def __init__(self, persepolis_setting):
self.translators_tab = QWidget(self)
translators_tab_verticalLayout = QVBoxLayout(self.translators_tab)

# chinese translators
self.chinese_translators_label = QLabel(self.translators_tab)
self.chinese_translators_label.setFont(font)
self.chinese_translators_label.setAlignment(Qt.AlignCenter)
translators_tab_verticalLayout.addWidget(self.chinese_translators_label)

self.chinese_translatos_name_label = QLabel(self.translators_tab)
self.chinese_translatos_name_label.setAlignment(Qt.AlignCenter)
translators_tab_verticalLayout.addWidget(self.chinese_translatos_name_label)

# french translators
self.french_translators_label = QLabel(self.translators_tab)
self.french_translators_label.setFont(font)
self.french_translators_label.setAlignment(Qt.AlignCenter)
translators_tab_verticalLayout.addWidget(self.french_translators_label)
# translators
self.translators_label = QLabel(self.translators_tab)
self.translators_label.setTextFormat(Qt.RichText)
self.translators_label.setAlignment(Qt.AlignCenter)
self.translators_label.setOpenExternalLinks(True)
self.translators_label.setTextInteractionFlags(
Qt.TextBrowserInteraction)

self.french_translatos_name_label = QLabel(self.translators_tab)
self.french_translatos_name_label.setAlignment(Qt.AlignCenter)
translators_tab_verticalLayout.addWidget(self.french_translatos_name_label)
translators_tab_verticalLayout.addWidget(self.translators_label)

# persian translators
self.persian_translators_label = QLabel(self.translators_tab)
self.persian_translators_label.setFont(font)
self.persian_translators_label.setAlignment(Qt.AlignCenter)
self.help_translate_label = QLabel(self.translators_tab)
self.help_translate_label.setTextFormat(Qt.RichText)
self.help_translate_label.setAlignment(Qt.AlignCenter)
self.help_translate_label.setOpenExternalLinks(True)
self.help_translate_label.setTextInteractionFlags(
Qt.TextBrowserInteraction)

translators_tab_verticalLayout.addWidget(self.persian_translators_label)
translators_tab_verticalLayout.addWidget(self.help_translate_label)

self.persian_translatos_name_label = QLabel(self.translators_tab)
self.persian_translatos_name_label.setAlignment(Qt.AlignCenter)
translators_tab_verticalLayout.addWidget(self.persian_translatos_name_label)

translators_tab_verticalLayout.addStretch(1)

Expand Down Expand Up @@ -241,21 +230,12 @@ def __init__(self, persepolis_setting):
"<a href=https://github.com/persepolisdm/persepolis/graphs/contributors>our contributors</a>")

# translators_tab
# Chinese
self.chinese_translators_label.setText(QCoreApplication.translate("about_ui_tr", "Chinese translators:"))

self.chinese_translatos_name_label.setText(QCoreApplication.translate("about_ui_tr", "Davinma\n210hcl\nleoxxx"))

# French
self.french_translators_label.setText(QCoreApplication.translate("about_ui_tr", "French translator:"))

self.french_translatos_name_label.setText(QCoreApplication.translate("about_ui_tr", "Simon Porte"))
self.translators_label.setText(QCoreApplication.translate("about_ui_tr",
"<a href=https://www.transifex.com/persepolis/teams>Persepolis translation team on transifex.com</a>"))

# Persian
self.persian_translators_label.setText(QCoreApplication.translate("about_ui_tr", "Persian translators:"))
self.help_translate_label.setText(QCoreApplication.translate("about_ui_tr",
"<a href=https://github.com/persepolisdm/persepolis/wiki/translators-guide>Help translate</a>"))

self.persian_translatos_name_label.setText(
QCoreApplication.translate("about_ui_tr", "H.Rostami\nMostafa Asadi"))

# License
self.license_text.setPlainText("""
Expand Down

0 comments on commit aba5015

Please sign in to comment.