Skip to content

Commit

Permalink
i18n: fix i18n in lrclibWindow component
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzheremi2 committed Dec 7, 2024
1 parent 4c632a3 commit 3640c62
Show file tree
Hide file tree
Showing 21 changed files with 325 additions and 274 deletions.
19 changes: 11 additions & 8 deletions lrcmake/components/lrclibWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)

Expand Down
28 changes: 15 additions & 13 deletions po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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 ""
28 changes: 15 additions & 13 deletions po/el.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""
28 changes: 15 additions & 13 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <fran-carro@hotmail.es>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/lrcmake/lrcmake/"
Expand Down Expand Up @@ -89,7 +89,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 "Título"

Expand Down Expand Up @@ -248,7 +248,7 @@ msgid "No Data"
msgstr "Sin datos"

#: 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 "Artista"

Expand Down Expand Up @@ -370,21 +370,23 @@ msgstr "Error desconocido: "
msgid "Seems like not every line is synced!"
msgstr "¡Parece que no todas las líneas están sincronizadas!"

#. 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 ""

Expand Down
28 changes: 15 additions & 13 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""
28 changes: 15 additions & 13 deletions po/he.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""
28 changes: 15 additions & 13 deletions po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""
Loading

0 comments on commit 3640c62

Please sign in to comment.