show number of discs in album tooltips

This commit is contained in:
Martin Wagner 2020-05-12 17:56:59 +02:00
parent 710e186741
commit 931f27763a
3 changed files with 192 additions and 180 deletions

View File

@ -1244,7 +1244,14 @@ class AlbumIconView(Gtk.IconView):
dura=0.0
length=length+dura
length_human_readable=str(datetime.timedelta(seconds=int(length)))
tooltip=(_("%(total_tracks)i titles (%(total_length)s)") % {"total_tracks": len(album["songs"]), "total_length": length_human_readable})
try:
discs=int(album["songs"][-1]["disc"])
except:
discs=1
if discs > 1:
tooltip=(_("%(total_tracks)i titles on %(discs)i discs (%(total_length)s)") % {"total_tracks": len(album["songs"]), "discs": discs, "total_length": length_human_readable})
else:
tooltip=(_("%(total_tracks)i titles (%(total_length)s)") % {"total_tracks": len(album["songs"]), "total_length": length_human_readable})
if album["year"] == "":
GLib.idle_add(self.add_row, [None, album["album"], tooltip, album["album"], album["year"], album["artist"]], cover, size)
else:

184
po/de.po
View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-01 18:49+0200\n"
"PO-Revision-Date: 2020-04-01 18:51+0200\n"
"POT-Creation-Date: 2020-05-12 17:55+0200\n"
"PO-Revision-Date: 2020-05-12 17:56+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de\n"
@ -18,226 +18,231 @@ msgstr ""
"X-Generator: Poedit 2.2.4\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: mpdevil.py:860 mpdevil.py:1490 mpdevil.py:2180
msgid "No"
msgstr "Nr."
#: mpdevil.py:866 mpdevil.py:1496 mpdevil.py:2180
msgid "Title"
msgstr "Titel"
#: mpdevil.py:872 mpdevil.py:1098 mpdevil.py:1499 mpdevil.py:2180
msgid "Artist"
msgstr "Interpret"
#: mpdevil.py:879 mpdevil.py:1502 mpdevil.py:2180
msgid "Album"
msgstr "Album"
#: mpdevil.py:885 mpdevil.py:1505 mpdevil.py:2180
msgid "Length"
msgstr "Länge"
#: mpdevil.py:933 mpdevil.py:1664
#: mpdevil.py:295
msgid "Unknown Title"
msgstr "Unbekannter Titel"
#: mpdevil.py:941 mpdevil.py:1676
#: mpdevil.py:295
msgid "Unknown Artist"
msgstr "Unbekannter Interpret"
#: mpdevil.py:945 mpdevil.py:1680
#: mpdevil.py:295
msgid "Unknown Album"
msgstr "Unbekanntes Album"
#: mpdevil.py:1010
#: mpdevil.py:882 mpdevil.py:1499 mpdevil.py:2152
msgid "No"
msgstr "Nr."
#: mpdevil.py:887 mpdevil.py:1505 mpdevil.py:2152
msgid "Title"
msgstr "Titel"
#: mpdevil.py:892 mpdevil.py:1108 mpdevil.py:1508 mpdevil.py:2152
msgid "Artist"
msgstr "Interpret"
#: mpdevil.py:897 mpdevil.py:1511 mpdevil.py:2152
msgid "Album"
msgstr "Album"
#: mpdevil.py:903 mpdevil.py:1514 mpdevil.py:2152
msgid "Length"
msgstr "Länge"
#: mpdevil.py:1022
msgid "all genres"
msgstr "Alle Genres"
#: mpdevil.py:1096
#: mpdevil.py:1106
msgid "Album Artist"
msgstr "Albuminterpret"
#: mpdevil.py:1099
#: mpdevil.py:1109
msgid "all artists"
msgstr "Alle Interpreten"
#: mpdevil.py:1242 mpdevil.py:1595
#: mpdevil.py:1252
#, python-format
msgid "%(total_tracks)i titles on %(discs)i discs (%(total_length)s)"
msgstr "%(total_tracks)i Titel auf %(discs)i CDs (%(total_length)s)"
#: mpdevil.py:1254 mpdevil.py:1604
#, python-format
msgid "%(total_tracks)i titles (%(total_length)s)"
msgstr "%(total_tracks)i Titel (%(total_length)s)"
#: mpdevil.py:1493 mpdevil.py:2180
#: mpdevil.py:1502 mpdevil.py:2152
msgid "Disc"
msgstr "CD"
#: mpdevil.py:1508 mpdevil.py:2180
#: mpdevil.py:1517 mpdevil.py:2152
msgid "Year"
msgstr "Jahr"
#: mpdevil.py:1511 mpdevil.py:2180
#: mpdevil.py:1520 mpdevil.py:2152
msgid "Genre"
msgstr "Genre"
#: mpdevil.py:1725
#: mpdevil.py:1697
msgid "Back to current album"
msgstr "Zurück zu aktuellem Album"
#: mpdevil.py:1727 mpdevil.py:2794
#: mpdevil.py:1699 mpdevil.py:2776
msgid "Search"
msgstr "Suche"
#: mpdevil.py:1893
#: mpdevil.py:1863
msgid "Profile:"
msgstr "Profil:"
#: mpdevil.py:1895
#: mpdevil.py:1865
msgid "Name:"
msgstr "Name:"
#: mpdevil.py:1897
#: mpdevil.py:1867
msgid "Host:"
msgstr "Host:"
#: mpdevil.py:1899
#: mpdevil.py:1869
msgid "Password:"
msgstr "Passwort:"
#: mpdevil.py:1901
#: mpdevil.py:1871
msgid "Music lib:"
msgstr "Musikverzeichnis:"
#: mpdevil.py:1984
#: mpdevil.py:1958
msgid "Choose directory"
msgstr "Verzeichnis Wählen"
#: mpdevil.py:2024
#: mpdevil.py:1996
msgid "Main cover size:"
msgstr "Größe des Haupt-Covers:"
#: mpdevil.py:2028
#: mpdevil.py:2000
msgid "Album view cover size:"
msgstr "Covergröße in Albumliste:"
#: mpdevil.py:2032
#: mpdevil.py:2004
msgid "Button icon size:"
msgstr "Symbolgröße der Knöpfe:"
#: mpdevil.py:2034
#: mpdevil.py:2006
msgid "(restart required)"
msgstr "(Neustart erforderlich)"
#: mpdevil.py:2045
#: mpdevil.py:2017
msgid "Sort albums by:"
msgstr "Sortiere Alben nach:"
#: mpdevil.py:2045
#: mpdevil.py:2017
msgid "name"
msgstr "Name"
#: mpdevil.py:2045
#: mpdevil.py:2017
msgid "year"
msgstr "Jahr"
#: mpdevil.py:2046
#: mpdevil.py:2018
msgid "Position of playlist:"
msgstr "Wiedergabelistenposition:"
#: mpdevil.py:2046
#: mpdevil.py:2018
msgid "bottom"
msgstr "unten"
#: mpdevil.py:2046
#: mpdevil.py:2018
msgid "right"
msgstr "rechts"
#: mpdevil.py:2062
#: mpdevil.py:2034
msgid "<b>View</b>"
msgstr "<b>Ansicht</b>"
#: mpdevil.py:2065
#: mpdevil.py:2037
msgid "<b>Behavior</b>"
msgstr "<b>Verhalten</b>"
#: mpdevil.py:2070
#: mpdevil.py:2042
msgid "Show stop button"
msgstr "Zeige Stopp-Knopf"
#: mpdevil.py:2071
#: mpdevil.py:2043
msgid "Show initials in artist view"
msgstr "Zeige Anfangsbuchstaben in Interpretenliste"
#: mpdevil.py:2072
#: mpdevil.py:2044
msgid "Show tooltips in album view"
msgstr "Zeige Tooltips in Albumliste"
#: mpdevil.py:2073
#: mpdevil.py:2045
msgid "Use 'Album Artist' tag"
msgstr "Benutze \"Album Artist\" Tag"
#: mpdevil.py:2074
#: mpdevil.py:2046
msgid "Send notification on title change"
msgstr "Sende Benachrichtigung bei Titelwechsel"
#: mpdevil.py:2075
#: mpdevil.py:2047
msgid "Stop playback on quit"
msgstr "Wiedergabe beim Beenden stoppen"
#: mpdevil.py:2076
#: mpdevil.py:2048
msgid "Play selected albums and titles immediately"
msgstr "Ausgewählte Alben und Titel sofort abspielen"
#: mpdevil.py:2152
#: mpdevil.py:2124
msgid "Choose the order of information to appear in the playlist:"
msgstr ""
"Lege die Reihenfolge fest, in der Informationen in der Wiedergabeliste "
"angezeigt werden sollen:"
#: mpdevil.py:2265 mpdevil.py:2955
#: mpdevil.py:2237 mpdevil.py:2937
msgid "Settings"
msgstr "Einstellungen"
#: mpdevil.py:2279
#: mpdevil.py:2251
msgid "General"
msgstr "Allgemein"
#: mpdevil.py:2280
#: mpdevil.py:2252
msgid "Profiles"
msgstr "Profile"
#: mpdevil.py:2281
#: mpdevil.py:2253
msgid "Playlist"
msgstr "Wiedergabeliste"
#: mpdevil.py:2552
#: mpdevil.py:2524
msgid "Random mode"
msgstr "Zufallsmodus"
#: mpdevil.py:2554
#: mpdevil.py:2526
msgid "Repeat mode"
msgstr "Dauerschleife"
#: mpdevil.py:2556
#: mpdevil.py:2528
msgid "Single mode"
msgstr "Einzelstückmodus"
#: mpdevil.py:2558
#: mpdevil.py:2530
msgid "Consume mode"
msgstr "Wiedergabeliste verbrauchen"
#: mpdevil.py:2648
#: mpdevil.py:2620
msgid "Show additional information"
msgstr "Zeige weitere Informationen"
#: mpdevil.py:2674
#: mpdevil.py:2646
msgid "MPD-Tag"
msgstr "MPD-Tag"
#: mpdevil.py:2678 mpdevil.py:2777
#: mpdevil.py:2650
msgid "Value"
msgstr "Wert"
#: mpdevil.py:2700
#: mpdevil.py:2672
#, python-format
msgid ""
"%(bitrate)s kb/s, %(frequency)s kHz, %(resolution)s bit, %(channels)s "
@ -246,67 +251,66 @@ msgstr ""
"%(bitrate)s kb/s, %(frequency)s kHz, %(resolution)s bit, %(channels)s "
"Kanäle, %(file_type)s"
#: mpdevil.py:2755
#: mpdevil.py:2726
msgid "Stats"
msgstr "Statistik"
#: mpdevil.py:2774
msgid "Tag"
msgstr "Tag"
#: mpdevil.py:2831
#: mpdevil.py:2813
#, python-format
msgid "hits: %i"
msgstr "Treffer: %i"
#: mpdevil.py:2835
#: mpdevil.py:2817
msgid "Lyrics"
msgstr "Liedtext"
#: mpdevil.py:2867
#: mpdevil.py:2849
msgid "searching..."
msgstr "suche..."
#: mpdevil.py:2871
#: mpdevil.py:2853
msgid "not found"
msgstr "nicht gefunden"
#: mpdevil.py:2945
#: mpdevil.py:2927
msgid "Select profile"
msgstr "Profil auswählen"
#: mpdevil.py:2949
#: mpdevil.py:2931
msgid "Show lyrics"
msgstr "Zeige Liedtext"
#: mpdevil.py:2954
#: mpdevil.py:2936
msgid "Save window layout"
msgstr "Fensterlayout speichern"
#: mpdevil.py:2956
#: mpdevil.py:2938
msgid "Update database"
msgstr "Datenbank aktualisieren"
#: mpdevil.py:2957
#: mpdevil.py:2939
msgid "Server stats"
msgstr "Serverstatistik"
#: mpdevil.py:2958
#: mpdevil.py:2940
msgid "About"
msgstr "Über"
#: mpdevil.py:2959
#: mpdevil.py:2941
msgid "Quit"
msgstr "Beenden"
#: mpdevil.py:2964
#: mpdevil.py:2946
msgid "Menu"
msgstr "Menü"
#: mpdevil.py:3118
#: mpdevil.py:3103
msgid "A small MPD client written in python"
msgstr ""
#~ msgid "Tag"
#~ msgstr "Tag"
#~ msgid "Select"
#~ msgstr "Auswählen"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-01 18:49+0200\n"
"POT-Creation-Date: 2020-05-12 17:55+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,287 +17,288 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: mpdevil.py:860 mpdevil.py:1490 mpdevil.py:2180
msgid "No"
msgstr ""
#: mpdevil.py:866 mpdevil.py:1496 mpdevil.py:2180
msgid "Title"
msgstr ""
#: mpdevil.py:872 mpdevil.py:1098 mpdevil.py:1499 mpdevil.py:2180
msgid "Artist"
msgstr ""
#: mpdevil.py:879 mpdevil.py:1502 mpdevil.py:2180
msgid "Album"
msgstr ""
#: mpdevil.py:885 mpdevil.py:1505 mpdevil.py:2180
msgid "Length"
msgstr ""
#: mpdevil.py:933 mpdevil.py:1664
#: mpdevil.py:295
msgid "Unknown Title"
msgstr ""
#: mpdevil.py:941 mpdevil.py:1676
#: mpdevil.py:295
msgid "Unknown Artist"
msgstr ""
#: mpdevil.py:945 mpdevil.py:1680
#: mpdevil.py:295
msgid "Unknown Album"
msgstr ""
#: mpdevil.py:1010
#: mpdevil.py:882 mpdevil.py:1499 mpdevil.py:2152
msgid "No"
msgstr ""
#: mpdevil.py:887 mpdevil.py:1505 mpdevil.py:2152
msgid "Title"
msgstr ""
#: mpdevil.py:892 mpdevil.py:1108 mpdevil.py:1508 mpdevil.py:2152
msgid "Artist"
msgstr ""
#: mpdevil.py:897 mpdevil.py:1511 mpdevil.py:2152
msgid "Album"
msgstr ""
#: mpdevil.py:903 mpdevil.py:1514 mpdevil.py:2152
msgid "Length"
msgstr ""
#: mpdevil.py:1022
msgid "all genres"
msgstr ""
#: mpdevil.py:1096
#: mpdevil.py:1106
msgid "Album Artist"
msgstr ""
#: mpdevil.py:1099
#: mpdevil.py:1109
msgid "all artists"
msgstr ""
#: mpdevil.py:1242 mpdevil.py:1595
#: mpdevil.py:1252
#, python-format
msgid "%(total_tracks)i titles on %(discs)i discs (%(total_length)s)"
msgstr ""
#: mpdevil.py:1254 mpdevil.py:1604
#, python-format
msgid "%(total_tracks)i titles (%(total_length)s)"
msgstr ""
#: mpdevil.py:1493 mpdevil.py:2180
#: mpdevil.py:1502 mpdevil.py:2152
msgid "Disc"
msgstr ""
#: mpdevil.py:1508 mpdevil.py:2180
#: mpdevil.py:1517 mpdevil.py:2152
msgid "Year"
msgstr ""
#: mpdevil.py:1511 mpdevil.py:2180
#: mpdevil.py:1520 mpdevil.py:2152
msgid "Genre"
msgstr ""
#: mpdevil.py:1725
#: mpdevil.py:1697
msgid "Back to current album"
msgstr ""
#: mpdevil.py:1727 mpdevil.py:2794
#: mpdevil.py:1699 mpdevil.py:2776
msgid "Search"
msgstr ""
#: mpdevil.py:1893
#: mpdevil.py:1863
msgid "Profile:"
msgstr ""
#: mpdevil.py:1895
#: mpdevil.py:1865
msgid "Name:"
msgstr ""
#: mpdevil.py:1897
#: mpdevil.py:1867
msgid "Host:"
msgstr ""
#: mpdevil.py:1899
#: mpdevil.py:1869
msgid "Password:"
msgstr ""
#: mpdevil.py:1901
#: mpdevil.py:1871
msgid "Music lib:"
msgstr ""
#: mpdevil.py:1984
#: mpdevil.py:1958
msgid "Choose directory"
msgstr ""
#: mpdevil.py:2024
#: mpdevil.py:1996
msgid "Main cover size:"
msgstr ""
#: mpdevil.py:2028
#: mpdevil.py:2000
msgid "Album view cover size:"
msgstr ""
#: mpdevil.py:2032
#: mpdevil.py:2004
msgid "Button icon size:"
msgstr ""
#: mpdevil.py:2034
#: mpdevil.py:2006
msgid "(restart required)"
msgstr ""
#: mpdevil.py:2045
#: mpdevil.py:2017
msgid "Sort albums by:"
msgstr ""
#: mpdevil.py:2045
#: mpdevil.py:2017
msgid "name"
msgstr ""
#: mpdevil.py:2045
#: mpdevil.py:2017
msgid "year"
msgstr ""
#: mpdevil.py:2046
#: mpdevil.py:2018
msgid "Position of playlist:"
msgstr ""
#: mpdevil.py:2046
#: mpdevil.py:2018
msgid "bottom"
msgstr ""
#: mpdevil.py:2046
#: mpdevil.py:2018
msgid "right"
msgstr ""
#: mpdevil.py:2062
#: mpdevil.py:2034
msgid "<b>View</b>"
msgstr ""
#: mpdevil.py:2065
#: mpdevil.py:2037
msgid "<b>Behavior</b>"
msgstr ""
#: mpdevil.py:2070
#: mpdevil.py:2042
msgid "Show stop button"
msgstr ""
#: mpdevil.py:2071
#: mpdevil.py:2043
msgid "Show initials in artist view"
msgstr ""
#: mpdevil.py:2072
#: mpdevil.py:2044
msgid "Show tooltips in album view"
msgstr ""
#: mpdevil.py:2073
#: mpdevil.py:2045
msgid "Use 'Album Artist' tag"
msgstr ""
#: mpdevil.py:2074
#: mpdevil.py:2046
msgid "Send notification on title change"
msgstr ""
#: mpdevil.py:2075
#: mpdevil.py:2047
msgid "Stop playback on quit"
msgstr ""
#: mpdevil.py:2076
#: mpdevil.py:2048
msgid "Play selected albums and titles immediately"
msgstr ""
#: mpdevil.py:2152
#: mpdevil.py:2124
msgid "Choose the order of information to appear in the playlist:"
msgstr ""
#: mpdevil.py:2265 mpdevil.py:2955
#: mpdevil.py:2237 mpdevil.py:2937
msgid "Settings"
msgstr ""
#: mpdevil.py:2279
#: mpdevil.py:2251
msgid "General"
msgstr ""
#: mpdevil.py:2280
#: mpdevil.py:2252
msgid "Profiles"
msgstr ""
#: mpdevil.py:2281
#: mpdevil.py:2253
msgid "Playlist"
msgstr ""
#: mpdevil.py:2552
#: mpdevil.py:2524
msgid "Random mode"
msgstr ""
#: mpdevil.py:2554
#: mpdevil.py:2526
msgid "Repeat mode"
msgstr ""
#: mpdevil.py:2556
#: mpdevil.py:2528
msgid "Single mode"
msgstr ""
#: mpdevil.py:2558
#: mpdevil.py:2530
msgid "Consume mode"
msgstr ""
#: mpdevil.py:2648
#: mpdevil.py:2620
msgid "Show additional information"
msgstr ""
#: mpdevil.py:2674
#: mpdevil.py:2646
msgid "MPD-Tag"
msgstr ""
#: mpdevil.py:2678 mpdevil.py:2777
#: mpdevil.py:2650
msgid "Value"
msgstr ""
#: mpdevil.py:2700
#: mpdevil.py:2672
#, python-format
msgid ""
"%(bitrate)s kb/s, %(frequency)s kHz, %(resolution)s bit, %(channels)s "
"channels, %(file_type)s"
msgstr ""
#: mpdevil.py:2755
#: mpdevil.py:2726
msgid "Stats"
msgstr ""
#: mpdevil.py:2774
msgid "Tag"
msgstr ""
#: mpdevil.py:2831
#: mpdevil.py:2813
#, python-format
msgid "hits: %i"
msgstr ""
#: mpdevil.py:2835
#: mpdevil.py:2817
msgid "Lyrics"
msgstr ""
#: mpdevil.py:2867
#: mpdevil.py:2849
msgid "searching..."
msgstr ""
#: mpdevil.py:2871
#: mpdevil.py:2853
msgid "not found"
msgstr ""
#: mpdevil.py:2945
#: mpdevil.py:2927
msgid "Select profile"
msgstr ""
#: mpdevil.py:2949
#: mpdevil.py:2931
msgid "Show lyrics"
msgstr ""
#: mpdevil.py:2954
#: mpdevil.py:2936
msgid "Save window layout"
msgstr ""
#: mpdevil.py:2956
#: mpdevil.py:2938
msgid "Update database"
msgstr ""
#: mpdevil.py:2957
#: mpdevil.py:2939
msgid "Server stats"
msgstr ""
#: mpdevil.py:2958
#: mpdevil.py:2940
msgid "About"
msgstr ""
#: mpdevil.py:2959
#: mpdevil.py:2941
msgid "Quit"
msgstr ""
#: mpdevil.py:2964
#: mpdevil.py:2946
msgid "Menu"
msgstr ""
#: mpdevil.py:3118
#: mpdevil.py:3103
msgid "A small MPD client written in python"
msgstr ""