Skip to content

Commit

Permalink
Translators are added to about window.
Browse files Browse the repository at this point in the history
	modified:   persepolis/gui/about_ui.py
	modified:   persepolis/gui/resources.py
	modified:   persepolis/scripts/about.py
	modified:   resources/resources.qrc
	new file:   resources/translators.txt
  • Loading branch information
alireza-amirsamimi committed Sep 16, 2019
1 parent aba5015 commit 36d72b9
Show file tree
Hide file tree
Showing 5 changed files with 20,794 additions and 20,565 deletions.
35 changes: 5 additions & 30 deletions persepolis/gui/about_ui.py
Expand Up @@ -14,10 +14,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QWidget, QTabWidget, QHBoxLayout, QVBoxLayout, QLabel, QTextEdit, QPushButton
from PyQt5.QtGui import QIcon, QFont
from PyQt5.QtCore import Qt, QSize, QPoint, QTranslator, QCoreApplication, QLocale
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QIcon, QFont
from persepolis.gui import resources

try:
Expand Down Expand Up @@ -157,26 +157,9 @@ def __init__(self, persepolis_setting):
translators_tab_verticalLayout = QVBoxLayout(self.translators_tab)

# 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)

translators_tab_verticalLayout.addWidget(self.translators_label)

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.help_translate_label)


translators_tab_verticalLayout.addStretch(1)
self.translators_textEdit = QTextEdit(self.translators_tab)
self.translators_textEdit.setReadOnly(True)
translators_tab_verticalLayout.addWidget(self.translators_textEdit)

# License tab
self.license_tab = QWidget(self)
Expand Down Expand Up @@ -229,14 +212,6 @@ def __init__(self, persepolis_setting):
self.contributors_link_label.setText(
"<a href=https://github.com/persepolisdm/persepolis/graphs/contributors>our contributors</a>")

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

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


# License
self.license_text.setPlainText("""
This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit 36d72b9

Please sign in to comment.