From aba50159d294c50830814eb498c08eb29cd20b9e Mon Sep 17 00:00:00 2001 From: alireza-amirsamimi Date: Mon, 16 Sep 2019 19:43:33 +0430 Subject: [PATCH] Translator tab is edited. modified: persepolis/gui/about_ui.py --- persepolis/gui/about_ui.py | 58 +++++++++++++------------------------- 1 file changed, 19 insertions(+), 39 deletions(-) diff --git a/persepolis/gui/about_ui.py b/persepolis/gui/about_ui.py index ead5c1f0..89e630db 100644 --- a/persepolis/gui/about_ui.py +++ b/persepolis/gui/about_ui.py @@ -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) @@ -241,21 +230,12 @@ def __init__(self, persepolis_setting): "our contributors") # 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", + "Persepolis translation team on transifex.com")) - # Persian - self.persian_translators_label.setText(QCoreApplication.translate("about_ui_tr", "Persian translators:")) + self.help_translate_label.setText(QCoreApplication.translate("about_ui_tr", + "Help translate")) - self.persian_translatos_name_label.setText( - QCoreApplication.translate("about_ui_tr", "H.Rostami\nMostafa Asadi")) # License self.license_text.setPlainText("""