Merge lp:~trb143/openlp/about into lp:openlp

Proposed by Tim Bentley
Status: Merged
Merged at revision: 2715
Proposed branch: lp:~trb143/openlp/about
Merge into: lp:openlp
Diff against target: 93 lines (+32/-9)
2 files modified
openlp/core/ui/aboutdialog.py (+14/-8)
tests/functional/openlp_core_ui/test_aboutform.py (+18/-1)
To merge this branch: bzr merge lp:~trb143/openlp/about
Reviewer Review Type Date Requested Status
Raoul Snyman Approve
Review via email: mp+314569@code.launchpad.net

This proposal supersedes a proposal from 2017-01-11.

To post a comment you must log in.
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

I'll be honest, I think we should drop the list of guilty parties and just say, "OpenLP is developed by a group of volunteers around the world. Translations are provided by the OpenLP community." or similar.

review: Approve
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

We should probably keep the list of libraries and software we use.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp/core/ui/aboutdialog.py'
2--- openlp/core/ui/aboutdialog.py 2016-12-31 11:14:00 +0000
3+++ openlp/core/ui/aboutdialog.py 2017-01-11 20:17:00 +0000
4@@ -19,6 +19,7 @@
5 # with this program; if not, write to the Free Software Foundation, Inc., 59 #
6 # Temple Place, Suite 330, Boston, MA 02111-1307 USA #
7 ###############################################################################
8+import datetime
9
10 from PyQt5 import QtGui, QtWidgets
11
12@@ -112,9 +113,12 @@
13 'Jonathan "springermac" Springer', 'Philip "Phill" Ridout']
14 contributors = ['Stuart "sibecker" Becker', 'Gerald "jerryb" Britton', 'Jonathan "gushie" Corwin',
15 'Samuel "MrGamgee" Findlay', 'Michael "cocooncrash" Gorven', 'Scott "sguerrieri" Guerrieri',
16- 'Matthias "matthub" Hub', 'Meinert "m2j" Jordan', 'Armin "orangeshirt" K\xf6hler',
17- 'Rafael "rafaellerm" Lerm', 'Erik "luen" Lundin', 'Edwin "edwinlunando" Lunando',
18+ 'Simon Hanna', 'Chris Hill',
19+ 'Matthias "matthub" Hub', 'Meinert "m2j" Jordan', 'Ian Knightly'
20+ 'Armin "orangeshirt" K\xf6hler',
21+ 'Rafael "rafaellerm" Lerm', 'Gabriel loo', 'Erik "luen" Lundin', 'Edwin "edwinlunando" Lunando',
22 'Dmitriy Marmyshev', 'Brian "brianmeyer" Meyer', 'Joshua "milleja46" Miller',
23+ 'Suutari "Azaziah" Olli',
24 'Stevan "ElderP" Pettit', 'Mattias "mahfiaz" P\xf5ldaru', 'Felipe Polo-Wood',
25 'Christian "crichter" Richter', 'Arjan "arjans" Schrijver', 'Simon "samscudder" Scudder',
26 'Jeffrey "whydoubt" Smith', 'Stefan Strasser', 'Maikel Stuivenberg', 'Martin "mijiti" Thompson',
27@@ -189,7 +193,8 @@
28 ' Qt5: http://qt.io\n'
29 ' PyQt5: http://www.riverbankcomputing.co.uk/software/pyqt/intro\n'
30 ' Oxygen Icons: http://techbase.kde.org/Projects/Oxygen/\n'
31- ' MuPDF: http://www.mupdf.com/\n')
32+ ' MuPDF: http://www.mupdf.com/\n'
33+ ' MediaInfo: https://mediaarea.net/en/MediaInfo\n')
34 final_credit = translate('OpenLP.AboutForm', 'Final Credit\n'
35 ' "For God so loved the world that He gave\n'
36 ' His one and only Son, so that whoever\n'
37@@ -299,16 +304,17 @@
38 self.about_notebook.setTabText(self.about_notebook.indexOf(self.credits_tab),
39 translate('OpenLP.AboutForm', 'Credits'))
40 cr_others = ('Tim Bentley, Gerald Britton, Jonathan Corwin, Samuel Findlay, '
41- 'Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, '
42- 'Armin K\xf6hler, Erik Lundin, Edwin Lunando, Joshua Miller, '
43- 'Brian T. Meyer, Stevan Pettit, Andreas Preikschat, '
44+ 'Michael Gorven, Scott Guerrieri, Simon Hanna, Chris, Hill Matthias Hub, Meinert Jordan, '
45+ 'Ian Knightley, Armin K\xf6hler, Gabriel Loo, Erik Lundin, Edwin Lunando, Joshua Miller, '
46+ 'Brian T. Meyer, Suutari Olli, Stevan Pettit, Andreas Preikschat, '
47 'Mattias P\xf5ldaru, Christian Richter, Philip Ridout, '
48 'Ken Roberts, Simon Scudder, Jeffrey Smith, Maikel Stuivenberg, '
49 'Martin Thompson, Jon Tibble, Dave Warnock, Frode Woldsund, '
50 'Martin Zibricky, Patrick Zimmermann')
51 copyright_note = translate('OpenLP.AboutForm',
52- 'Copyright \xa9 2004-2017 {cr}\n\n'
53- 'Portions copyright \xa9 2004-2017 {others}').format(cr='Raoul Snyman',
54+ 'Copyright \xa9 2004-{yr} {cr}\n\n'
55+ 'Portions copyright \xa9 2004-{yr} {others}').format(cr='Raoul Snyman',
56+ yr=datetime.date.today().year,
57 others=cr_others)
58 licence = translate('OpenLP.AboutForm',
59 'This program is free software; you can redistribute it and/or '
60
61=== modified file 'tests/functional/openlp_core_ui/test_aboutform.py'
62--- tests/functional/openlp_core_ui/test_aboutform.py 2016-12-31 11:01:36 +0000
63+++ tests/functional/openlp_core_ui/test_aboutform.py 2017-01-11 20:17:00 +0000
64@@ -22,6 +22,7 @@
65 """
66 Package to test the openlp.core.ui.firsttimeform package.
67 """
68+import datetime
69 from unittest import TestCase
70
71 from openlp.core.ui.aboutform import AboutForm
72@@ -58,4 +59,20 @@
73 about_form = AboutForm(None)
74
75 # THEN: The build number should be in the text
76- assert 'OpenLP 3.1.5 build 3000' in about_form.about_text_edit.toPlainText()
77+ self.assertTrue('OpenLP 3.1.5 build 3000' in about_form.about_text_edit.toPlainText(),
78+ "The build number should be set correctly")
79+
80+ def test_about_form_date_test(self):
81+ """
82+ Test that the copyright date is included correctly
83+ """
84+ # GIVEN: A correct application date
85+ date_string = "2004-%s" % datetime.date.today().year
86+
87+ # WHEN: The about form is created
88+ about_form = AboutForm(None)
89+ license_text = about_form.license_text_edit.toPlainText()
90+
91+ # THEN: The date should be in the text twice.
92+ self.assertTrue(license_text.count(date_string, 0) == 2,
93+ "The text string should be added twice to the license string")