About: Made texts a bit more translator friendly

Avoid line breaks in strings, split translator_credits
This commit is contained in:
Philipp Wolfer
2020-06-24 15:49:12 +02:00
parent c0ba7687f8
commit 344841bfcc
2 changed files with 35 additions and 40 deletions

View File

@@ -77,13 +77,14 @@ class AboutDialog(PicardDialog, SingletonDialog):
args["translator_credits"] = _("<br/>Translated to LANG by %s") % args["translator_credits"].replace("\n", "<br/>")
else:
args["translator_credits"] = ""
args['icons_credits'] = _("""Icons made by Sambhav Kothari <sambhavs.email@gmail.com>
and <a href="http://www.flaticon.com/authors/madebyoliver">Madebyoliver</a>,
<a href="http://www.flaticon.com/authors/pixel-buddha">Pixel Buddha</a>,
<a href="http://www.flaticon.com/authors/nikita-golubev">Nikita Golubev</a>,
<a href="http://www.flaticon.com/authors/maxim-basinski">Maxim Basinski</a>,
<a href="https://www.flaticon.com/authors/smashicons">Smashicons</a>
from <a href="https://www.flaticon.com">www.flaticon.com</a>""")
args['icons_credits'] = _(
'Icons made by Sambhav Kothari <sambhavs.email@gmail.com> '
'and <a href="http://www.flaticon.com/authors/madebyoliver">Madebyoliver</a>, '
'<a href="http://www.flaticon.com/authors/pixel-buddha">Pixel Buddha</a>, '
'<a href="http://www.flaticon.com/authors/nikita-golubev">Nikita Golubev</a>, '
'<a href="http://www.flaticon.com/authors/maxim-basinski">Maxim Basinski</a>, '
'<a href="https://www.flaticon.com/authors/smashicons">Smashicons</a> '
'from <a href="https://www.flaticon.com">www.flaticon.com</a>')
def strong(s):
return '<strong>' + s + '</strong>'
@@ -102,12 +103,12 @@ from <a href="https://www.flaticon.com">www.flaticon.com</a>""")
strong(_("Supported formats")),
'%(formats)s',
strong(_("Please donate")),
_("""Thank you for using Picard. Picard relies on the MusicBrainz database, which is operated by the MetaBrainz Foundation with the
help of thousands of volunteers. If you like this application please consider donating to the MetaBrainz Foundation to keep the
service running."""),
_("Thank you for using Picard. Picard relies on the MusicBrainz database, which is operated by the "
"MetaBrainz Foundation with the help of thousands of volunteers. If you like this application please "
"consider donating to the MetaBrainz Foundation to keep theservice running."),
url(PICARD_URLS['donate'], _("Donate now!")),
strong(_("Credits")),
small(_("""Copyright © %(copyright_years)s %(authors_credits)s and others%(translator_credits)s""")),
small(_("Copyright © %(copyright_years)s %(authors_credits)s and others") + "%(translator_credits)s"),
small('%(icons_credits)s'),
strong(_("Official website")),
url(PICARD_URLS['home'])

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: picard 2.4.0.dev1\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-06-24 12:55+0200\n"
"POT-Creation-Date: 2020-06-24 15:48+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -2964,57 +2964,51 @@ msgstr ""
#: picard/ui/aboutdialog.py:80
msgid ""
"Icons made by Sambhav Kothari <sambhavs.email@gmail.com>\n"
"and <a "
"href=\"http://www.flaticon.com/authors/madebyoliver\">Madebyoliver</a>,\n"
"Icons made by Sambhav Kothari <sambhavs.email@gmail.com> and <a "
"href=\"http://www.flaticon.com/authors/madebyoliver\">Madebyoliver</a>, "
"<a href=\"http://www.flaticon.com/authors/pixel-buddha\">Pixel "
"Buddha</a>,\n"
"<a href=\"http://www.flaticon.com/authors/nikita-golubev\">Nikita "
"Golubev</a>,\n"
"<a href=\"http://www.flaticon.com/authors/maxim-basinski\">Maxim "
"Basinski</a>,\n"
"<a href=\"https://www.flaticon.com/authors/smashicons\">Smashicons</a>\n"
"from <a href=\"https://www.flaticon.com\">www.flaticon.com</a>"
"Buddha</a>, <a href=\"http://www.flaticon.com/authors/nikita-"
"golubev\">Nikita Golubev</a>, <a href=\"http://www.flaticon.com/authors"
"/maxim-basinski\">Maxim Basinski</a>, <a "
"href=\"https://www.flaticon.com/authors/smashicons\">Smashicons</a> from "
"<a href=\"https://www.flaticon.com\">www.flaticon.com</a>"
msgstr ""
#: picard/ui/aboutdialog.py:100
#: picard/ui/aboutdialog.py:101
#, python-format
msgid "Version %(version)s"
msgstr ""
#: picard/ui/aboutdialog.py:102
#: picard/ui/aboutdialog.py:103
msgid "Supported formats"
msgstr ""
#: picard/ui/aboutdialog.py:104
#: picard/ui/aboutdialog.py:105
msgid "Please donate"
msgstr ""
#: picard/ui/aboutdialog.py:105
#: picard/ui/aboutdialog.py:106
msgid ""
"Thank you for using Picard. Picard relies on the MusicBrainz database, "
"which is operated by the MetaBrainz Foundation with the\n"
"help of thousands of volunteers. If you like this application please "
"consider donating to the MetaBrainz Foundation to keep the\n"
"service running."
msgstr ""
#: picard/ui/aboutdialog.py:108
msgid "Donate now!"
"which is operated by the MetaBrainz Foundation with the help of thousands"
" of volunteers. If you like this application please consider donating to "
"the MetaBrainz Foundation to keep theservice running."
msgstr ""
#: picard/ui/aboutdialog.py:109
msgid "Credits"
msgid "Donate now!"
msgstr ""
#: picard/ui/aboutdialog.py:110
#, python-format
msgid ""
"Copyright © %(copyright_years)s %(authors_credits)s and "
"others%(translator_credits)s"
msgid "Credits"
msgstr ""
#: picard/ui/aboutdialog.py:112
#: picard/ui/aboutdialog.py:111
#, python-format
msgid "Copyright © %(copyright_years)s %(authors_credits)s and others"
msgstr ""
#: picard/ui/aboutdialog.py:113
msgid "Official website"
msgstr ""