~raoul-snyman/openlp/fix-retvalue

« back to all changes in this revision

Viewing changes to openlp/core/ui/firsttimewizard.py

  • Committer: Raoul Snyman
  • Author(s): alisonken1 at gmail
  • Date: 2016-05-20 20:52:22 UTC
  • mfrom: (2665.1.2 strings-core-ui)
  • Revision ID: raoul@snyman.info-20160520205222-s3s2cts9wnaq8ri8
"- Convert strings in openlp/core/ui files
- Updated projectordb test

--------------------------------
lp:~alisonken1/openlp/strings-core-ui (revision 2667)
[SUCCESS] https://ci.openlp.io/job/Branch-01-Pull/1566/
[SUCCESS] https://ci.openlp.io/job/Branch-02-Functional-Tests/1477/
[SUCCESS] https://ci.openlp.io/job/Branch-03-Interface-Tests/1415/
[SUCCESS] https://ci.openlp.io/job/Branch-04a-Windows_Functional_Tests/1195/
[SUCCESS] https://ci.openlp.io/job/Branch-04b-Windows_Interface_Tests/78..."

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        :param first_time_wizard: The wizard form
229
229
        """
230
230
        first_time_wizard.setWindowTitle(translate('OpenLP.FirstTimeWizard', 'First Time Wizard'))
231
 
        first_time_wizard.title_label.setText('<span style="font-size:14pt; font-weight:600;">%s</span>' %
232
 
                                              translate('OpenLP.FirstTimeWizard', 'Welcome to the First Time Wizard'))
 
231
        text = translate('OpenLP.FirstTimeWizard', 'Welcome to the First Time Wizard')
 
232
        first_time_wizard.title_label.setText('<span style="font-size:14pt; font-weight:600;">{text}'
 
233
                                              '</span>'.format(text=text))
 
234
        button = clean_button_text(first_time_wizard.buttonText(QtWidgets.QWizard.NextButton))
233
235
        first_time_wizard.information_label.setText(
234
236
            translate('OpenLP.FirstTimeWizard', 'This wizard will help you to configure OpenLP for initial use. '
235
 
                                                'Click the %s button below to start.') %
236
 
            clean_button_text(first_time_wizard.buttonText(QtWidgets.QWizard.NextButton)))
 
237
                                                'Click the {button} button below to start.').format(button=button))
237
238
        self.download_page.setTitle(translate('OpenLP.FirstTimeWizard', 'Downloading Resource Index'))
238
239
        self.download_page.setSubTitle(translate('OpenLP.FirstTimeWizard', 'Please wait while the resource index is '
239
240
                                                                           'downloaded.'))
264
265
        self.no_internet_page.setTitle(translate('OpenLP.FirstTimeWizard', 'No Internet Connection'))
265
266
        self.no_internet_page.setSubTitle(
266
267
            translate('OpenLP.FirstTimeWizard', 'Unable to detect an Internet connection.'))
 
268
        button = clean_button_text(first_time_wizard.buttonText(QtWidgets.QWizard.FinishButton))
267
269
        self.no_internet_text = translate('OpenLP.FirstTimeWizard',
268
270
                                          'No Internet connection was found. The First Time Wizard needs an Internet '
269
271
                                          'connection in order to be able to download sample songs, Bibles and themes.'
270
 
                                          '  Click the %s button now to start OpenLP with initial settings and '
 
272
                                          '  Click the {button} button now to start OpenLP with initial settings and '
271
273
                                          'no sample data.\n\nTo re-run the First Time Wizard and import this sample '
272
274
                                          'data at a later time, check your Internet connection and re-run this '
273
 
                                          'wizard by selecting "Tools/Re-run First Time Wizard" from OpenLP.') % \
274
 
            clean_button_text(first_time_wizard.buttonText(QtWidgets.QWizard.FinishButton))
 
275
                                          'wizard by selecting "Tools/Re-run First Time Wizard" from OpenLP.'
 
276
                                          ).format(button=button)
 
277
        button = clean_button_text(first_time_wizard.buttonText(QtWidgets.QWizard.CancelButton))
275
278
        self.cancel_wizard_text = translate('OpenLP.FirstTimeWizard',
276
279
                                            '\n\nTo cancel the First Time Wizard completely (and not start OpenLP), '
277
 
                                            'click the %s button now.') % \
278
 
            clean_button_text(first_time_wizard.buttonText(QtWidgets.QWizard.CancelButton))
 
280
                                            'click the {button} button now.').format(button=button)
279
281
        self.songs_page.setTitle(translate('OpenLP.FirstTimeWizard', 'Sample Songs'))
280
282
        self.songs_page.setSubTitle(translate('OpenLP.FirstTimeWizard', 'Select and download public domain songs.'))
281
283
        self.bibles_page.setTitle(translate('OpenLP.FirstTimeWizard', 'Sample Bibles'))