Skip to content

Commit

Permalink
Fixed extracting translation for first run dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Jul 2, 2023
1 parent e6d2d7f commit 1482f9c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 21 deletions.
34 changes: 16 additions & 18 deletions picard/ui/newuserdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,22 @@ class NewUserDialog():
def __init__(self):

dialog_text = _(
(
"<h2 align=center>READ THIS BEFORE USING PICARD</h2>"
"<p>"
"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."
"</p><p>"
"We therefore <strong>STRONGLY</strong> recommend that you:"
"</p><ol>"
"<li>Read the Picard <a href='{documentation_url}'>documentation</a> "
"before you use this tool on your music collection. The link is also available from the Help menu.<br /></li>"
"<li>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. <strong>Once Picard has updated a file, there is no way to undo the changes</strong>.</li>"
"</ol><p>"
"Picard is open source software written by volunteers. It is provided as-is and with no warranty. "
"<strong>You use Picard at your own risk.</strong>"
"</p>"
)
"<h2 align=center>READ THIS BEFORE USING PICARD</h2>"
"<p>"
"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."
"</p><p>"
"We therefore <strong>STRONGLY</strong> recommend that you:"
"</p><ol>"
"<li>Read the Picard <a href='{documentation_url}'>documentation</a> "
"before you use this tool on your music collection. The link is also available from the Help menu.<br /></li>"
"<li>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. <strong>Once Picard has updated a file, there is no way to undo the changes</strong>.</li>"
"</ol><p>"
"Picard is open source software written by volunteers. It is provided as-is and with no warranty. "
"<strong>You use Picard at your own risk.</strong>"
"</p>"
).format(documentation_url=PICARD_URLS['documentation_server'])

self.show_again = True
Expand Down
24 changes: 21 additions & 3 deletions po/picard.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -7290,11 +7290,29 @@ msgstr[1] ""
msgid "&Copy"
msgstr ""

#: picard/ui/newuserdialog.py:53
#: picard/ui/newuserdialog.py:31
msgid ""
"<h2 align=center>READ THIS BEFORE USING PICARD</h2><p>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.</p><p>We therefore <strong>STRONGLY</strong> recommend that "
"you:</p><ol><li>Read the Picard <a "
"href='{documentation_url}'>documentation</a> before you use this tool on "
"your music collection. The link is also available from the Help menu.<br "
"/></li><li>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. <strong>Once Picard has updated a file, there is no way"
" to undo the changes</strong>.</li></ol><p>Picard is open source software"
" written by volunteers. It is provided as-is and with no warranty. "
"<strong>You use Picard at your own risk.</strong></p>"
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 ""

Expand Down

0 comments on commit 1482f9c

Please sign in to comment.