From 3640c6251b4fb49c469602ba7e42390d308cec3c Mon Sep 17 00:00:00 2001 From: Dzheremi2 Date: Sat, 7 Dec 2024 18:27:44 +0300 Subject: [PATCH] i18n: fix i18n in lrclibWindow component --- lrcmake/components/lrclibWindow.py | 19 +++++++----- po/de.po | 28 +++++++++-------- po/el.po | 28 +++++++++-------- po/es.po | 28 +++++++++-------- po/fr.po | 28 +++++++++-------- po/he.po | 28 +++++++++-------- po/hu.po | 28 +++++++++-------- po/id.po | 28 +++++++++-------- po/is.po | 28 +++++++++-------- po/it.po | 28 +++++++++-------- po/jp.po | 28 +++++++++-------- po/ko.po | 28 +++++++++-------- po/lrcmake.pot | 28 +++++++++-------- po/no.po | 28 +++++++++-------- po/pl.po | 28 +++++++++-------- po/pt.po | 28 +++++++++-------- po/ro.po | 28 +++++++++-------- po/ru.po | 48 ++++++++++++++++++------------ po/tr.po | 28 +++++++++-------- po/ua.po | 28 +++++++++-------- po/vi.po | 28 +++++++++-------- 21 files changed, 325 insertions(+), 274 deletions(-) diff --git a/lrcmake/components/lrclibWindow.py b/lrcmake/components/lrclibWindow.py index c68ba98..fed77b6 100644 --- a/lrcmake/components/lrclibWindow.py +++ b/lrcmake/components/lrclibWindow.py @@ -4,6 +4,11 @@ from lrcmake.methods.parsers import set_lyrics from lrcmake import shared +title_str = _("Title") +artist_str = _("Artist") +duration_str = _("Duration") +album_str = _("Album") +instrumental_str = _("Is instrumental") @Gtk.Template(resource_path="/io/github/dzheremi2/lrcmake-gtk/gtk/components/lrclibWindow.ui") class lrclibWindow(Adw.Dialog): @@ -44,14 +49,12 @@ def search_lrclib(self, *args): if len(result) > 0: for item in result: self.results_list.append( - lrclibTrack(item["trackName"], item["artistName"], _( # type: ignore - f"Title: {item['trackName']}\n\ -Artist: {item['artistName']}\n\ -Duration: {item['duration']}\n\ -Album: {item['albumName']}\n\ -Is instrumental: {'True' if item['instrumental'] == True else 'False'}" # type: ignore - ), item["syncedLyrics"], item["plainLyrics"]) - ) + lrclibTrack(item["trackName"], item["artistName"], # type: ignore + f"{title_str}: {item['trackName']}\n\ +{artist_str}: {item['artistName']}\n\ +{duration_str}: {item['duration']}\n\ +{album_str}: {item['albumName']}\n\ +{instrumental_str}: {'True' if item['instrumental'] == True else 'False'}", item["syncedLyrics"], item["plainLyrics"])) else: self.results_list_window.set_child(self.nothing_found_status) diff --git a/po/de.po b/po/de.po index 3aa32f9..dba4aec 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-11-18 00:25+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -85,7 +85,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "Titel" @@ -241,7 +241,7 @@ msgid "No Data" msgstr "Keine Daten" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "Künstler" @@ -359,20 +359,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/el.po b/po/el.po index 8795b3b..e441fb4 100644 --- a/po/el.po +++ b/po/el.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-11-18 00:25+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -84,7 +84,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "" @@ -235,7 +235,7 @@ msgid "No Data" msgstr "" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "" @@ -352,20 +352,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/es.po b/po/es.po index f3ca2f7..6feaca3 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-12-05 03:00+0000\n" "Last-Translator: gallegonovato \n" "Language-Team: Spanish \n" "Language-Team: Italian \n" "Language-Team: LANGUAGE \n" @@ -84,7 +84,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "" @@ -235,7 +235,7 @@ msgid "No Data" msgstr "" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "" @@ -352,20 +352,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/no.po b/po/no.po index 0108e70..ec96457 100644 --- a/po/no.po +++ b/po/no.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-11-18 00:25+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -84,7 +84,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "" @@ -235,7 +235,7 @@ msgid "No Data" msgstr "" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "" @@ -352,20 +352,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/pl.po b/po/pl.po index ee2625d..600e2f5 100644 --- a/po/pl.po +++ b/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-11-18 00:25+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -85,7 +85,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "" @@ -236,7 +236,7 @@ msgid "No Data" msgstr "" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "" @@ -353,20 +353,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/pt.po b/po/pt.po index 928bc3f..5457dee 100644 --- a/po/pt.po +++ b/po/pt.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-11-18 00:25+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -84,7 +84,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "" @@ -235,7 +235,7 @@ msgid "No Data" msgstr "" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "" @@ -352,20 +352,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/ro.po b/po/ro.po index a51ae2b..1381153 100644 --- a/po/ro.po +++ b/po/ro.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-11-18 00:25+0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -85,7 +85,7 @@ msgid "Sorting method" msgstr "" #: data/gtk/window.blp:111 data/gtk/components/fileDetails.blp:40 -#: data/gtk/components/lrclibWindow.blp:46 +#: data/gtk/components/lrclibWindow.blp:46 lrcmake/components/lrclibWindow.py:7 msgid "Title" msgstr "" @@ -236,7 +236,7 @@ msgid "No Data" msgstr "" #: data/gtk/components/fileDetails.blp:50 -#: data/gtk/components/lrclibWindow.blp:50 +#: data/gtk/components/lrclibWindow.blp:50 lrcmake/components/lrclibWindow.py:8 msgid "Artist" msgstr "" @@ -353,20 +353,22 @@ msgstr "" msgid "Seems like not every line is synced!" msgstr "" -#. type: ignore -#: lrcmake/components/lrclibWindow.py:48 -msgid "" -"Title: {item['trackName']}\n" -"Artist: {item['artistName']}\n" -"Duration: {item['duration']}\n" -"Album: {item['albumName']}\n" -"Is instrumental: {'True' if item['instrumental'] == True else 'False'}" +#: lrcmake/components/lrclibWindow.py:9 +msgid "Duration" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:10 +msgid "Album" +msgstr "" + +#: lrcmake/components/lrclibWindow.py:11 +msgid "Is instrumental" msgstr "" -#: lrcmake/components/lrclibWindow.py:64 +#: lrcmake/components/lrclibWindow.py:67 msgid "No synced lyrics available" msgstr "" -#: lrcmake/components/lrclibWindow.py:70 +#: lrcmake/components/lrclibWindow.py:73 msgid "No plain lyrics available" msgstr "" diff --git a/po/ru.po b/po/ru.po index d30d07a..f6c7471 100644 --- a/po/ru.po +++ b/po/ru.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: lrcmake\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-07 17:59+0300\n" +"POT-Creation-Date: 2024-12-07 18:25+0300\n" "PO-Revision-Date: 2024-12-07 15:06+0000\n" "Last-Translator: Džeremi \n" "Language-Team: Russian \n" "Language-Team: Turkish