2012-12-21 08:51:59 +01:00
|
|
|
# Copyright: Damien Elmes <anki@ichi2.net>
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
|
|
|
from aqt.qt import *
|
|
|
|
import aqt.forms
|
|
|
|
from aqt import appVersion
|
2013-05-17 09:09:24 +02:00
|
|
|
from aqt.utils import openLink
|
2012-12-21 08:51:59 +01:00
|
|
|
|
2016-07-04 05:22:35 +02:00
|
|
|
def show(mw):
|
|
|
|
dialog = QDialog(mw)
|
|
|
|
mw.setupDialogGC(dialog)
|
2012-12-21 08:51:59 +01:00
|
|
|
abt = aqt.forms.about.Ui_About()
|
|
|
|
abt.setupUi(dialog)
|
2013-05-17 09:09:24 +02:00
|
|
|
abouttext = "<center><img src='qrc:/icons/anki-logo-thin.png'></center>"
|
2012-12-21 08:51:59 +01:00
|
|
|
abouttext += '<p>' + _("Anki is a friendly, intelligent spaced learning \
|
|
|
|
system. It's free and open source.")
|
2013-05-24 03:54:33 +02:00
|
|
|
abouttext += "<p>"+_("Anki is licensed under the AGPL3 license. Please see "
|
|
|
|
"the license file in the source distribution for more information.")
|
2012-12-21 08:51:59 +01:00
|
|
|
abouttext += '<p>' + _("Version %s") % appVersion + '<br>'
|
2013-05-17 09:09:24 +02:00
|
|
|
abouttext += ("Qt %s PyQt %s<br>") % (QT_VERSION_STR, PYQT_VERSION_STR)
|
2012-12-21 08:51:59 +01:00
|
|
|
abouttext += (_("<a href='%s'>Visit website</a>") % aqt.appWebsite) + \
|
|
|
|
"</span>"
|
|
|
|
abouttext += '<p>' + _("Written by Damien Elmes, with patches, translation,\
|
2017-02-25 02:41:26 +01:00
|
|
|
testing and design from:<p>%(cont)s") % {'cont': """Aaron Harsh, Ádám Szegi, Alex Fraser,
|
|
|
|
Andreas Klauer, Andrew Wright, Aristotelis P., Bernhard Ibertsberger, C. van Rooyen, Charlene Barina,
|
2017-02-23 05:41:07 +01:00
|
|
|
Christian Krause, Christian Rusche, David Smith, Dave Druelinger, Dmitry Mikheev, Dotan Cohen,
|
2017-05-09 04:40:34 +02:00
|
|
|
Emilio Wuerges, Emmanuel Jarri, Frank Harper, Gregor Skumavc, H. Mijail, Guillem Palau Salvà, Henrik Enggaard Hansen,
|
2014-03-06 22:47:12 +01:00
|
|
|
Houssam Salem, Ian Lewis, Immanuel Asmus, Iroiro, Jarvik7,
|
2017-02-24 13:11:47 +01:00
|
|
|
Jin Eun-Deok, Jo Nakashima, Johanna Lindh, Joseph Lorimer, Julien Baley, Jussi Määttä, Kieran Clancy, LaC, Laurent Steffan,
|
2012-12-21 08:51:59 +01:00
|
|
|
Luca Ban, Luciano Esposito, Marco Giancotti, Marcus Rubeus, Mari Egami, Michael Jürges, Mark Wilbur,
|
|
|
|
Matthew Duggan, Matthew Holtz, Meelis Vasser, Michael Keppler, Michael
|
2013-08-22 08:54:33 +02:00
|
|
|
Montague, Michael Penkov, Michal Čadil, Morteza Salehi, Nathanael Law, Nick Cook, Niklas
|
2012-12-21 08:51:59 +01:00
|
|
|
Laxström, Nguyễn Hào Khôi, Norbert Nagold, Ole Guldberg,
|
2014-07-22 21:37:56 +02:00
|
|
|
Pcsl88, Petr Michalec, Piotr Kubowicz, Richard Colley, Roland Sieker, Samson Melamed,
|
|
|
|
Stefaan De Pooter, Silja Ijas, Snezana Lukic, Soren Bjornstad, Susanna Björverud, Sylvain Durand,
|
2016-03-23 00:07:33 +01:00
|
|
|
Tacutu, Timm Preetz, Timo Paulssen, Ursus, Victor Suba, Volker Jansen,
|
|
|
|
Volodymyr Goncharenko, Xtru, 赵金鹏 and 黃文龍."""}
|
2012-12-21 08:51:59 +01:00
|
|
|
abouttext += '<p>' + _("""\
|
|
|
|
The icons were obtained from various sources; please see the Anki source
|
|
|
|
for credits.""")
|
|
|
|
abouttext += '<p>' + _("If you have contributed and are not on this list, \
|
|
|
|
please get in touch.")
|
|
|
|
abouttext += '<p>' + _("A big thanks to all the people who have provided \
|
|
|
|
suggestions, bug reports and donations.")
|
2013-05-17 09:09:24 +02:00
|
|
|
abt.label.setHtml(abouttext)
|
2012-12-21 08:51:59 +01:00
|
|
|
dialog.adjustSize()
|
|
|
|
dialog.show()
|
|
|
|
dialog.exec_()
|