Fix about dialog from translators

This commit is contained in:
Tim Bentley 2015-10-19 22:14:30 +01:00
parent 50ceb568e5
commit ae8b2d051a

View File

@ -154,80 +154,42 @@ class UiAboutDialog(object):
'zh_CN': [' "executor" '] 'zh_CN': [' "executor" ']
} }
documentors = ['Wesley "wrst" Stout', 'John "jseagull1" Cegalis (lead)'] documentors = ['Wesley "wrst" Stout', 'John "jseagull1" Cegalis (lead)']
self.credits_text_edit.setPlainText( project_lead = translate('OpenLP.AboutForm', 'Project Lead')
translate('OpenLP.AboutForm', devs = translate('OpenLP.AboutForm', 'Developers')
'Project Lead\n' cons = translate('OpenLP.AboutForm', 'Contributors')
' %s\n' packs = translate('OpenLP.AboutForm', 'Packagers')
'\n' tests = translate('OpenLP.AboutForm', 'Testers')
'Developers\n' laters = translate('OpenLP.AboutForm', 'Translators')
' %s\n' af = translate('OpenLP.AboutForm', 'Afrikaans (af)')
'\n' cs = translate('OpenLP.AboutForm', 'Czech (cs)')
'Contributors\n' da = translate('OpenLP.AboutForm', 'Danish (da)')
' %s\n' de = translate('OpenLP.AboutForm', 'German (de)')
'\n' el = translate('OpenLP.AboutForm', 'Greek (el)')
'Testers\n' gb = translate('OpenLP.AboutForm', 'English, United Kingdom (en_GB)')
' %s\n' enza = translate('OpenLP.AboutForm', 'English, South Africa (en_ZA)')
'\n' es = translate('OpenLP.AboutForm', 'Spanish (es)')
'Packagers\n' et = translate('OpenLP.AboutForm', 'Estonian (et)')
' %s\n' fi = translate('OpenLP.AboutForm', 'Finnish (fi)')
'\n' fr = translate('OpenLP.AboutForm', 'French (fr)')
'Translators\n' hu = translate('OpenLP.AboutForm', 'Hungarian (hu)')
' Afrikaans (af)\n' id = translate('OpenLP.AboutForm', 'Indonesian (id)')
' %s\n' ja = translate('OpenLP.AboutForm', 'Japanese (ja)')
' Czech (cs)\n' nb = translate('OpenLP.AboutForm', 'Norwegian Bokm\xe5l (nb)')
' %s\n' nl = translate('OpenLP.AboutForm', 'Dutch (nl)')
' Danish (da)\n' pl = translate('OpenLP.AboutForm', 'Polish (pl)')
' %s\n' ptbr = translate('OpenLP.AboutForm', 'Portuguese, Brazil (pt_BR)')
' German (de)\n' ru = translate('OpenLP.AboutForm', 'Russian (ru)')
' %s\n' sv = translate('OpenLP.AboutForm', 'Swedish (sv)')
' Greek (el)\n' talk = translate('OpenLP.AboutForm', 'Tamil(Sri-Lanka) (ta_LK)')
' %s\n' zhcn = translate('OpenLP.AboutForm', 'Chinese(China) (zh_CN)')
' English, United Kingdom (en_GB)\n' documentation = translate('OpenLP.AboutForm', 'Documentation')
' %s\n' built_with = translate('OpenLP.AboutForm', 'Built With\n'
' English, South Africa (en_ZA)\n'
' %s\n'
' Spanish (es)\n'
' %s\n'
' Estonian (et)\n'
' %s\n'
' Finnish (fi)\n'
' %s\n'
' French (fr)\n'
' %s\n'
' Hungarian (hu)\n'
' %s\n'
' Indonesian (id)\n'
' %s\n'
' Japanese (ja)\n'
' %s\n'
' Norwegian Bokm\xe5l (nb)\n'
' %s\n'
' Dutch (nl)\n'
' %s\n'
' Polish (pl)\n'
' %s\n'
' Portuguese, Brazil (pt_BR)\n'
' %s\n'
' Russian (ru)\n'
' %s\n'
' Swedish (sv)\n'
' %s\n'
' Tamil(Sri-Lanka) (ta_LK)\n'
' %s\n'
' Chinese(China) (zh_CN)\n'
' %s\n'
'\n'
'Documentation\n'
' %s\n'
'\n'
'Built With\n'
' Python: http://www.python.org/\n' ' Python: http://www.python.org/\n'
' Qt4: http://qt.io\n' ' Qt4: http://qt.io\n'
' PyQt4: http://www.riverbankcomputing.co.uk/software/pyqt/intro\n' ' PyQt4: http://www.riverbankcomputing.co.uk/software/pyqt/intro\n'
' Oxygen Icons: http://techbase.kde.org/Projects/Oxygen/\n' ' Oxygen Icons: http://techbase.kde.org/Projects/Oxygen/\n'
' MuPDF: http://www.mupdf.com/\n' ' MuPDF: http://www.mupdf.com/\n')
'\n' final_credit = translate('OpenLP.AboutForm', 'Final Credit\n'
'Final Credit\n'
' "For God so loved the world that He gave\n' ' "For God so loved the world that He gave\n'
' His one and only Son, so that whoever\n' ' His one and only Son, so that whoever\n'
' believes in Him will not perish but inherit\n' ' believes in Him will not perish but inherit\n'
@ -236,32 +198,103 @@ class UiAboutDialog(object):
' God our Father, for sending His Son to die\n' ' God our Father, for sending His Son to die\n'
' on the cross, setting us free from sin. We\n' ' on the cross, setting us free from sin. We\n'
' bring this software to you for free because\n' ' bring this software to you for free because\n'
' He has set us free.') % ' He has set us free.')
(lead, '\n '.join(developers), self.credits_text_edit.setPlainText(
'\n '.join(contributors), '\n '.join(testers), '%s\n'
'\n '.join(packagers), '\n '.join(translators['af']), ' %s\n'
'\n '.join(translators['cs']), '\n'
'\n '.join(translators['da']), '%s\n'
'\n '.join(translators['de']), ' %s\n'
'\n '.join(translators['el']), '\n'
'\n '.join(translators['en_GB']), '%s\n'
'\n '.join(translators['en_ZA']), ' %s\n'
'\n '.join(translators['es']), '\n'
'\n '.join(translators['et']), '%s\n'
'\n '.join(translators['fi']), ' %s\n'
'\n '.join(translators['fr']), '\n'
'\n '.join(translators['hu']), '%s\n'
'\n '.join(translators['id']), ' %s\n'
'\n '.join(translators['ja']), '\n'
'\n '.join(translators['nb']), '%s\n'
'\n '.join(translators['nl']), ' %s\n'
'\n '.join(translators['pl']), ' %s\n'
'\n '.join(translators['pt_BR']), ' %s\n'
'\n '.join(translators['ru']), ' %s\n'
'\n '.join(translators['sv']), ' %s\n'
'\n '.join(translators['ta_LK']), ' %s\n'
'\n '.join(translators['zh_CN']), ' %s\n'
'\n '.join(documentors))) ' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
' %s\n'
'\n'
'%s\n'
' %s\n'
'\n'
'%s\n%s' %
(project_lead, lead,
devs, '\n '.join(developers),
cons, '\n '.join(contributors),
tests, '\n '.join(testers),
packs, '\n '.join(packagers),
laters,
af, '\n '.join(translators['af']),
cs, '\n '.join(translators['cs']),
da, '\n '.join(translators['da']),
de, '\n '.join(translators['de']),
el, '\n '.join(translators['el']),
gb, '\n '.join(translators['en_GB']),
enza, '\n '.join(translators['en_ZA']),
es, '\n '.join(translators['es']),
et, '\n '.join(translators['et']),
fi, '\n '.join(translators['fi']),
fr, '\n '.join(translators['fr']),
hu, '\n '.join(translators['hu']),
id, '\n '.join(translators['id']),
ja, '\n '.join(translators['ja']),
nb, '\n '.join(translators['nb']),
nl, '\n '.join(translators['nl']),
pl, '\n '.join(translators['pl']),
ptbr, '\n '.join(translators['pt_BR']),
ru, '\n '.join(translators['ru']),
sv, '\n '.join(translators['sv']),
talk, '\n '.join(translators['ta_LK']),
zhcn, '\n '.join(translators['zh_CN']),
documentation, '\n '.join(documentors),
built_with, final_credit))
self.about_notebook.setTabText(self.about_notebook.indexOf(self.credits_tab), self.about_notebook.setTabText(self.about_notebook.indexOf(self.credits_tab),
translate('OpenLP.AboutForm', 'Credits')) translate('OpenLP.AboutForm', 'Credits'))
copyright_note = translate('OpenLP.AboutForm', copyright_note = translate('OpenLP.AboutForm',