From 1482f9cc56f7550e0e66723cbbb1b758dd923703 Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Sun, 2 Jul 2023 12:07:29 +0200 Subject: [PATCH] Fixed extracting translation for first run dialog --- picard/ui/newuserdialog.py | 34 ++++++++++++++++------------------ po/picard.pot | 24 +++++++++++++++++++++--- 2 files changed, 37 insertions(+), 21 deletions(-) diff --git a/picard/ui/newuserdialog.py b/picard/ui/newuserdialog.py index 46e06e6950..d0c1c13948 100644 --- a/picard/ui/newuserdialog.py +++ b/picard/ui/newuserdialog.py @@ -29,24 +29,22 @@ class NewUserDialog(): def __init__(self): dialog_text = _( - ( - "

READ THIS BEFORE USING PICARD

" - "

" - "Picard is a very flexible music tagging tool, using MusicBrainz metadata for tags and file naming, " - "but if you don't understand how it works, what its limitations are, and how to configure it, " - "you can easily mess up your music library." - "

" - "We therefore STRONGLY recommend that you:" - "

    " - "
  1. Read the Picard documentation " - "before you use this tool on your music collection. The link is also available from the Help menu.
  2. " - "
  3. Work on copies of your music files and in small batches until you are fully confident that your music files will be handled the way " - "you want them to be. Once Picard has updated a file, there is no way to undo the changes.
  4. " - "

" - "Picard is open source software written by volunteers. It is provided as-is and with no warranty. " - "You use Picard at your own risk." - "

" - ) + "

READ THIS BEFORE USING PICARD

" + "

" + "Picard is a very flexible music tagging tool, using MusicBrainz metadata for tags and file naming, " + "but if you don't understand how it works, what its limitations are, and how to configure it, " + "you can easily mess up your music library." + "

" + "We therefore STRONGLY recommend that you:" + "

    " + "
  1. Read the Picard documentation " + "before you use this tool on your music collection. The link is also available from the Help menu.
  2. " + "
  3. Work on copies of your music files and in small batches until you are fully confident that your music files will be handled the way " + "you want them to be. Once Picard has updated a file, there is no way to undo the changes.
  4. " + "

" + "Picard is open source software written by volunteers. It is provided as-is and with no warranty. " + "You use Picard at your own risk." + "

" ).format(documentation_url=PICARD_URLS['documentation_server']) self.show_again = True diff --git a/po/picard.pot b/po/picard.pot index 7bc6eec8a8..ec725ef4fc 100644 --- a/po/picard.pot +++ b/po/picard.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: picard 2.9.0b2\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-07-02 11:52+0200\n" +"POT-Creation-Date: 2023-07-02 12:07+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -7290,11 +7290,29 @@ msgstr[1] "" msgid "&Copy" msgstr "" -#: picard/ui/newuserdialog.py:53 +#: picard/ui/newuserdialog.py:31 +msgid "" +"

READ THIS BEFORE USING PICARD

Picard is a very " +"flexible music tagging tool, using MusicBrainz metadata for tags and file" +" naming, but if you don't understand how it works, what its limitations " +"are, and how to configure it, you can easily mess up your music " +"library.

We therefore STRONGLY recommend that " +"you:

  1. Read the Picard documentation before you use this tool on " +"your music collection. The link is also available from the Help menu.
  2. Work on copies of your music files and in small batches until " +"you are fully confident that your music files will be handled the way you" +" want them to be. Once Picard has updated a file, there is no way" +" to undo the changes.

Picard is open source software" +" written by volunteers. It is provided as-is and with no warranty. " +"You use Picard at your own risk.

" +msgstr "" + +#: picard/ui/newuserdialog.py:51 msgid "Show this message again the next time you start Picard." msgstr "" -#: picard/ui/newuserdialog.py:58 +#: picard/ui/newuserdialog.py:56 msgid "New User Information" msgstr ""