From 344841bfcc3cdc536f47597d981e482e6f0fda20 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Wed, 24 Jun 2020 15:49:12 +0200 Subject: [PATCH] About: Made texts a bit more translator friendly Avoid line breaks in strings, split translator_credits --- picard/ui/aboutdialog.py | 23 +++++++++--------- po/picard.pot | 52 ++++++++++++++++++---------------------- 2 files changed, 35 insertions(+), 40 deletions(-) diff --git a/picard/ui/aboutdialog.py b/picard/ui/aboutdialog.py index e70ed607c..85e01232e 100644 --- a/picard/ui/aboutdialog.py +++ b/picard/ui/aboutdialog.py @@ -77,13 +77,14 @@ class AboutDialog(PicardDialog, SingletonDialog): args["translator_credits"] = _("
Translated to LANG by %s") % args["translator_credits"].replace("\n", "
") else: args["translator_credits"] = "" - args['icons_credits'] = _("""Icons made by Sambhav Kothari -and Madebyoliver, -Pixel Buddha, -Nikita Golubev, -Maxim Basinski, -Smashicons -from www.flaticon.com""") + args['icons_credits'] = _( + 'Icons made by Sambhav Kothari ' + 'and Madebyoliver, ' + 'Pixel Buddha, ' + 'Nikita Golubev, ' + 'Maxim Basinski, ' + 'Smashicons ' + 'from www.flaticon.com') def strong(s): return '' + s + '' @@ -102,12 +103,12 @@ from www.flaticon.com""") 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']) diff --git a/po/picard.pot b/po/picard.pot index ccdd344ee..48a046c9f 100644 --- a/po/picard.pot +++ b/po/picard.pot @@ -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 \n" "Language-Team: LANGUAGE \n" @@ -2964,57 +2964,51 @@ msgstr "" #: picard/ui/aboutdialog.py:80 msgid "" -"Icons made by Sambhav Kothari \n" -"and Madebyoliver,\n" +"Icons made by Sambhav Kothari and Madebyoliver, " "Pixel " -"Buddha,\n" -"Nikita " -"Golubev,\n" -"Maxim " -"Basinski,\n" -"Smashicons\n" -"from www.flaticon.com" +"Buddha, Nikita Golubev, Maxim Basinski, Smashicons from " +"www.flaticon.com" 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 ""