fixed next/prev-button tooltips

This commit is contained in:
Martin Wagner 2021-07-17 14:15:31 +02:00
parent 8c75b510d5
commit f46a789111
3 changed files with 123 additions and 117 deletions

View File

@ -3216,10 +3216,10 @@ class PlaybackControl(Gtk.ButtonBox):
else: else:
elapsed=int(song) elapsed=int(song)
rest=int(length)-elapsed-1 rest=int(length)-elapsed-1
elapsed_titles=ngettext("{titles} title", "{titles} titles", elapsed).format(titles=elapsed) elapsed_songs=ngettext("{number} song", "{number} songs", elapsed).format(number=elapsed)
rest_titles=ngettext("{titles} title", "{titles} titles", rest).format(titles=rest) rest_songs=ngettext("{number} song", "{number} songs", rest).format(number=rest)
self._prev_button.set_tooltip_text(elapsed_titles) self._prev_button.set_tooltip_text(elapsed_songs)
self._next_button.set_tooltip_text(rest_titles) self._next_button.set_tooltip_text(rest_songs)
def _on_state(self, emitter, state): def _on_state(self, emitter, state):
if state == "play": if state == "play":

122
po/de.po
View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-16 20:14+0200\n" "POT-Creation-Date: 2021-07-17 14:13+0200\n"
"PO-Revision-Date: 2021-07-16 20:27+0200\n" "PO-Revision-Date: 2021-07-17 14:14+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: de\n" "Language: de\n"
@ -185,19 +185,19 @@ msgstr "Jahr"
msgid "Genre" msgid "Genre"
msgstr "Genre" msgstr "Genre"
#: mpdevil:1301 mpdevil:1303 mpdevil:3727 mpdevil:3820 #: mpdevil:1301 mpdevil:1303 mpdevil:3721 mpdevil:3814
msgid "Settings" msgid "Settings"
msgstr "Einstellungen" msgstr "Einstellungen"
#: mpdevil:1316 mpdevil:1325 mpdevil:3664 #: mpdevil:1316 mpdevil:1325 mpdevil:3658
msgid "General" msgid "General"
msgstr "Allgemein" msgstr "Allgemein"
#: mpdevil:1317 mpdevil:1326 mpdevil:3831 #: mpdevil:1317 mpdevil:1326 mpdevil:3825
msgid "Profiles" msgid "Profiles"
msgstr "Profile" msgstr "Profile"
#: mpdevil:1318 mpdevil:1327 mpdevil:3668 #: mpdevil:1318 mpdevil:1327 mpdevil:3662
msgid "Playlist" msgid "Playlist"
msgstr "Wiedergabeliste" msgstr "Wiedergabeliste"
@ -324,7 +324,7 @@ msgid_plural "{number} songs ({duration})"
msgstr[0] "{number} Stück ({duration})" msgstr[0] "{number} Stück ({duration})"
msgstr[1] "{number} Stücke ({duration})" msgstr[1] "{number} Stücke ({duration})"
#: mpdevil:2509 mpdevil:3687 #: mpdevil:2509 mpdevil:3681
msgid "Back to current album" msgid "Back to current album"
msgstr "Zurück zu aktuellem Album" msgstr "Zurück zu aktuellem Album"
@ -356,198 +356,204 @@ msgstr "Gehe zu aktuellem Lied"
msgid "Show lyrics" msgid "Show lyrics"
msgstr "Zeige Liedtext" msgstr "Zeige Liedtext"
#: mpdevil:3227 mpdevil:3228 #: mpdevil:3219 mpdevil:3220
#, python-brace-format #, python-brace-format
msgid "{titles} title" msgid "{number} song"
msgid_plural "{titles} titles" msgid_plural "{number} songs"
msgstr[0] "{titles} Titel" msgstr[0] "{number} Stück"
msgstr[1] "{titles} Titel" msgstr[1] "{number} Stücke"
#: mpdevil:3440 #: mpdevil:3434
msgid "Repeat mode" msgid "Repeat mode"
msgstr "Dauerschleife" msgstr "Dauerschleife"
#: mpdevil:3441 #: mpdevil:3435
msgid "Random mode" msgid "Random mode"
msgstr "Zufallsmodus" msgstr "Zufallsmodus"
#: mpdevil:3442 #: mpdevil:3436
msgid "Single mode" msgid "Single mode"
msgstr "Einzelstückmodus" msgstr "Einzelstückmodus"
#: mpdevil:3443 #: mpdevil:3437
msgid "Consume mode" msgid "Consume mode"
msgstr "Wiedergabeliste verbrauchen" msgstr "Wiedergabeliste verbrauchen"
#: mpdevil:3665 #: mpdevil:3659
msgid "Window" msgid "Window"
msgstr "Fenster" msgstr "Fenster"
#: mpdevil:3666 #: mpdevil:3660
msgid "Playback" msgid "Playback"
msgstr "Wiedergabe" msgstr "Wiedergabe"
#: mpdevil:3667 #: mpdevil:3661
msgid "Search, Album Dialog, Album List and Artist List" msgid "Search, Album Dialog, Album List and Artist List"
msgstr "Suche, Albumdialog, Albumliste und Interpretenliste" msgstr "Suche, Albumdialog, Albumliste und Interpretenliste"
#: mpdevil:3677 #: mpdevil:3671
msgid "Open online help" msgid "Open online help"
msgstr "Onlinehilfe öffnen" msgstr "Onlinehilfe öffnen"
#: mpdevil:3678 #: mpdevil:3672
msgid "Open shortcuts window" msgid "Open shortcuts window"
msgstr "Tastenkürzelfenster öffnen" msgstr "Tastenkürzelfenster öffnen"
#: mpdevil:3679 #: mpdevil:3673
msgid "Open menu" msgid "Open menu"
msgstr "Menü öffnen" msgstr "Menü öffnen"
#: mpdevil:3680 mpdevil:3826 #: mpdevil:3674 mpdevil:3820
msgid "Update database" msgid "Update database"
msgstr "Datenbank aktualisieren" msgstr "Datenbank aktualisieren"
#: mpdevil:3681 mpdevil:3824 #: mpdevil:3675 mpdevil:3818
msgid "Quit" msgid "Quit"
msgstr "Beenden" msgstr "Beenden"
#: mpdevil:3682 #: mpdevil:3676
msgid "Cycle through profiles" msgid "Cycle through profiles"
msgstr "Profile durchschalten" msgstr "Profile durchschalten"
#: mpdevil:3683 #: mpdevil:3677
msgid "Cycle through profiles in reversed order" msgid "Cycle through profiles in reversed order"
msgstr "Profile rückwärts durchschalten" msgstr "Profile rückwärts durchschalten"
#: mpdevil:3684 #: mpdevil:3678
msgid "Toggle mini player" msgid "Toggle mini player"
msgstr "Miniplayer ein-/ausschalten" msgstr "Miniplayer ein-/ausschalten"
#: mpdevil:3685 #: mpdevil:3679
msgid "Toggle lyrics" msgid "Toggle lyrics"
msgstr "Liedtext ein-/ausblenden" msgstr "Liedtext ein-/ausblenden"
#: mpdevil:3686 #: mpdevil:3680
msgid "Toggle search" msgid "Toggle search"
msgstr "Suche ein-/ausblenden" msgstr "Suche ein-/ausblenden"
#: mpdevil:3688 #: mpdevil:3682
msgid "Play/Pause" msgid "Play/Pause"
msgstr "Wiedergabe/Pause" msgstr "Wiedergabe/Pause"
#: mpdevil:3689 #: mpdevil:3683
msgid "Stop" msgid "Stop"
msgstr "Stopp" msgstr "Stopp"
#: mpdevil:3690 #: mpdevil:3684
msgid "Next title" msgid "Next title"
msgstr "Nächster Titel" msgstr "Nächster Titel"
#: mpdevil:3691 #: mpdevil:3685
msgid "Previous title" msgid "Previous title"
msgstr "Vorheriger Titel" msgstr "Vorheriger Titel"
#: mpdevil:3692 #: mpdevil:3686
msgid "Seek forward" msgid "Seek forward"
msgstr "Vorspulen" msgstr "Vorspulen"
#: mpdevil:3693 #: mpdevil:3687
msgid "Seek backward" msgid "Seek backward"
msgstr "Zurückspulen" msgstr "Zurückspulen"
#: mpdevil:3694 #: mpdevil:3688
msgid "Toggle repeat mode" msgid "Toggle repeat mode"
msgstr "Dauerschleife ein-/ausschalten" msgstr "Dauerschleife ein-/ausschalten"
#: mpdevil:3695 #: mpdevil:3689
msgid "Toggle random mode" msgid "Toggle random mode"
msgstr "Zufallsmodus ein-/ausschalten" msgstr "Zufallsmodus ein-/ausschalten"
#: mpdevil:3696 #: mpdevil:3690
msgid "Toggle single mode" msgid "Toggle single mode"
msgstr "Einzelstückmodus ein-/ausschalten" msgstr "Einzelstückmodus ein-/ausschalten"
#: mpdevil:3697 #: mpdevil:3691
msgid "Toggle consume mode" msgid "Toggle consume mode"
msgstr "Wiedergabeliste verbrauchen ein-/ausschalten" msgstr "Wiedergabeliste verbrauchen ein-/ausschalten"
#: mpdevil:3698 #: mpdevil:3692
msgid "Enqueue selected item" msgid "Enqueue selected item"
msgstr "Ausgewähltes Element einreihen" msgstr "Ausgewähltes Element einreihen"
#: mpdevil:3699 #: mpdevil:3693
msgid "Append selected item" msgid "Append selected item"
msgstr "Ausgewähltes Element anhängen" msgstr "Ausgewähltes Element anhängen"
#: mpdevil:3699 mpdevil:3702 #: mpdevil:3693 mpdevil:3696
msgid "Middle-click" msgid "Middle-click"
msgstr "Mittelklick" msgstr "Mittelklick"
#: mpdevil:3700 #: mpdevil:3694
msgid "Play selected item immediately" msgid "Play selected item immediately"
msgstr "Ausgewähltes Element sofort abspielen" msgstr "Ausgewähltes Element sofort abspielen"
#: mpdevil:3700 #: mpdevil:3694
msgid "Double-click" msgid "Double-click"
msgstr "Doppelklick" msgstr "Doppelklick"
#: mpdevil:3701 mpdevil:3704 #: mpdevil:3695 mpdevil:3698
msgid "Show additional information" msgid "Show additional information"
msgstr "Zeige weitere Informationen" msgstr "Zeige weitere Informationen"
#: mpdevil:3701 mpdevil:3704 #: mpdevil:3695 mpdevil:3698
msgid "Right-click" msgid "Right-click"
msgstr "Rechtsklick" msgstr "Rechtsklick"
#: mpdevil:3702 #: mpdevil:3696
msgid "Remove selected song" msgid "Remove selected song"
msgstr "Ausgewählten Titel entfernen" msgstr "Ausgewählten Titel entfernen"
#: mpdevil:3703 #: mpdevil:3697
msgid "Clear playlist" msgid "Clear playlist"
msgstr "Wiedergabeliste leeren" msgstr "Wiedergabeliste leeren"
#: mpdevil:3726 #: mpdevil:3720
msgid "Connect" msgid "Connect"
msgstr "Verbinden" msgstr "Verbinden"
#: mpdevil:3747 #: mpdevil:3741
#, python-brace-format #, python-brace-format
msgid "Connection to “{profile}” ({host}:{port}) failed" msgid "Connection to “{profile}” ({host}:{port}) failed"
msgstr "Verbindung zu „{profile}“ ({host}:{port}) fehlgeschlagen" msgstr "Verbindung zu „{profile}“ ({host}:{port}) fehlgeschlagen"
#: mpdevil:3821 #: mpdevil:3815
msgid "Keyboard shortcuts" msgid "Keyboard shortcuts"
msgstr "Tastenkürzel" msgstr "Tastenkürzel"
#: mpdevil:3822 #: mpdevil:3816
msgid "Help" msgid "Help"
msgstr "Hilfe" msgstr "Hilfe"
#: mpdevil:3823 #: mpdevil:3817
msgid "About" msgid "About"
msgstr "Über" msgstr "Über"
#: mpdevil:3827 #: mpdevil:3821
msgid "Server stats" msgid "Server stats"
msgstr "Serverstatistik" msgstr "Serverstatistik"
#: mpdevil:3832 #: mpdevil:3826
msgid "Mini player" msgid "Mini player"
msgstr "Miniplayer" msgstr "Miniplayer"
#: mpdevil:3837 #: mpdevil:3831
msgid "Menu" msgid "Menu"
msgstr "Menü" msgstr "Menü"
#: mpdevil:3888 mpdevil:3890 #: mpdevil:3882 mpdevil:3884
msgid "connecting…" msgid "connecting…"
msgstr "verbinden…" msgstr "verbinden…"
#: mpdevil:4054 #: mpdevil:4048
msgid "Debug mode" msgid "Debug mode"
msgstr "Debugmodus" msgstr "Debugmodus"
#, python-brace-format
#~ msgid "{titles} title"
#~ msgid_plural "{titles} titles"
#~ msgstr[0] "{titles} Titel"
#~ msgstr[1] "{titles} Titel"
#~ msgid "Secondary icon size:" #~ msgid "Secondary icon size:"
#~ msgstr "Sekundäre Symbolgröße:" #~ msgstr "Sekundäre Symbolgröße:"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-16 20:14+0200\n" "POT-Creation-Date: 2021-07-17 14:13+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -180,19 +180,19 @@ msgstr ""
msgid "Genre" msgid "Genre"
msgstr "" msgstr ""
#: mpdevil:1301 mpdevil:1303 mpdevil:3727 mpdevil:3820 #: mpdevil:1301 mpdevil:1303 mpdevil:3721 mpdevil:3814
msgid "Settings" msgid "Settings"
msgstr "" msgstr ""
#: mpdevil:1316 mpdevil:1325 mpdevil:3664 #: mpdevil:1316 mpdevil:1325 mpdevil:3658
msgid "General" msgid "General"
msgstr "" msgstr ""
#: mpdevil:1317 mpdevil:1326 mpdevil:3831 #: mpdevil:1317 mpdevil:1326 mpdevil:3825
msgid "Profiles" msgid "Profiles"
msgstr "" msgstr ""
#: mpdevil:1318 mpdevil:1327 mpdevil:3668 #: mpdevil:1318 mpdevil:1327 mpdevil:3662
msgid "Playlist" msgid "Playlist"
msgstr "" msgstr ""
@ -317,7 +317,7 @@ msgid_plural "{number} songs ({duration})"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: mpdevil:2509 mpdevil:3687 #: mpdevil:2509 mpdevil:3681
msgid "Back to current album" msgid "Back to current album"
msgstr "" msgstr ""
@ -349,194 +349,194 @@ msgstr ""
msgid "Show lyrics" msgid "Show lyrics"
msgstr "" msgstr ""
#: mpdevil:3227 mpdevil:3228 #: mpdevil:3219 mpdevil:3220
#, python-brace-format #, python-brace-format
msgid "{titles} title" msgid "{number} song"
msgid_plural "{titles} titles" msgid_plural "{number} songs"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: mpdevil:3440 #: mpdevil:3434
msgid "Repeat mode" msgid "Repeat mode"
msgstr "" msgstr ""
#: mpdevil:3441 #: mpdevil:3435
msgid "Random mode" msgid "Random mode"
msgstr "" msgstr ""
#: mpdevil:3442 #: mpdevil:3436
msgid "Single mode" msgid "Single mode"
msgstr "" msgstr ""
#: mpdevil:3443 #: mpdevil:3437
msgid "Consume mode" msgid "Consume mode"
msgstr "" msgstr ""
#: mpdevil:3665 #: mpdevil:3659
msgid "Window" msgid "Window"
msgstr "" msgstr ""
#: mpdevil:3666 #: mpdevil:3660
msgid "Playback" msgid "Playback"
msgstr "" msgstr ""
#: mpdevil:3667 #: mpdevil:3661
msgid "Search, Album Dialog, Album List and Artist List" msgid "Search, Album Dialog, Album List and Artist List"
msgstr "" msgstr ""
#: mpdevil:3677 #: mpdevil:3671
msgid "Open online help" msgid "Open online help"
msgstr "" msgstr ""
#: mpdevil:3678 #: mpdevil:3672
msgid "Open shortcuts window" msgid "Open shortcuts window"
msgstr "" msgstr ""
#: mpdevil:3679 #: mpdevil:3673
msgid "Open menu" msgid "Open menu"
msgstr "" msgstr ""
#: mpdevil:3680 mpdevil:3826 #: mpdevil:3674 mpdevil:3820
msgid "Update database" msgid "Update database"
msgstr "" msgstr ""
#: mpdevil:3681 mpdevil:3824 #: mpdevil:3675 mpdevil:3818
msgid "Quit" msgid "Quit"
msgstr "" msgstr ""
#: mpdevil:3682 #: mpdevil:3676
msgid "Cycle through profiles" msgid "Cycle through profiles"
msgstr "" msgstr ""
#: mpdevil:3683 #: mpdevil:3677
msgid "Cycle through profiles in reversed order" msgid "Cycle through profiles in reversed order"
msgstr "" msgstr ""
#: mpdevil:3684 #: mpdevil:3678
msgid "Toggle mini player" msgid "Toggle mini player"
msgstr "" msgstr ""
#: mpdevil:3685 #: mpdevil:3679
msgid "Toggle lyrics" msgid "Toggle lyrics"
msgstr "" msgstr ""
#: mpdevil:3686 #: mpdevil:3680
msgid "Toggle search" msgid "Toggle search"
msgstr "" msgstr ""
#: mpdevil:3688 #: mpdevil:3682
msgid "Play/Pause" msgid "Play/Pause"
msgstr "" msgstr ""
#: mpdevil:3689 #: mpdevil:3683
msgid "Stop" msgid "Stop"
msgstr "" msgstr ""
#: mpdevil:3690 #: mpdevil:3684
msgid "Next title" msgid "Next title"
msgstr "" msgstr ""
#: mpdevil:3691 #: mpdevil:3685
msgid "Previous title" msgid "Previous title"
msgstr "" msgstr ""
#: mpdevil:3692 #: mpdevil:3686
msgid "Seek forward" msgid "Seek forward"
msgstr "" msgstr ""
#: mpdevil:3693 #: mpdevil:3687
msgid "Seek backward" msgid "Seek backward"
msgstr "" msgstr ""
#: mpdevil:3694 #: mpdevil:3688
msgid "Toggle repeat mode" msgid "Toggle repeat mode"
msgstr "" msgstr ""
#: mpdevil:3695 #: mpdevil:3689
msgid "Toggle random mode" msgid "Toggle random mode"
msgstr "" msgstr ""
#: mpdevil:3696 #: mpdevil:3690
msgid "Toggle single mode" msgid "Toggle single mode"
msgstr "" msgstr ""
#: mpdevil:3697 #: mpdevil:3691
msgid "Toggle consume mode" msgid "Toggle consume mode"
msgstr "" msgstr ""
#: mpdevil:3698 #: mpdevil:3692
msgid "Enqueue selected item" msgid "Enqueue selected item"
msgstr "" msgstr ""
#: mpdevil:3699 #: mpdevil:3693
msgid "Append selected item" msgid "Append selected item"
msgstr "" msgstr ""
#: mpdevil:3699 mpdevil:3702 #: mpdevil:3693 mpdevil:3696
msgid "Middle-click" msgid "Middle-click"
msgstr "" msgstr ""
#: mpdevil:3700 #: mpdevil:3694
msgid "Play selected item immediately" msgid "Play selected item immediately"
msgstr "" msgstr ""
#: mpdevil:3700 #: mpdevil:3694
msgid "Double-click" msgid "Double-click"
msgstr "" msgstr ""
#: mpdevil:3701 mpdevil:3704 #: mpdevil:3695 mpdevil:3698
msgid "Show additional information" msgid "Show additional information"
msgstr "" msgstr ""
#: mpdevil:3701 mpdevil:3704 #: mpdevil:3695 mpdevil:3698
msgid "Right-click" msgid "Right-click"
msgstr "" msgstr ""
#: mpdevil:3702 #: mpdevil:3696
msgid "Remove selected song" msgid "Remove selected song"
msgstr "" msgstr ""
#: mpdevil:3703 #: mpdevil:3697
msgid "Clear playlist" msgid "Clear playlist"
msgstr "" msgstr ""
#: mpdevil:3726 #: mpdevil:3720
msgid "Connect" msgid "Connect"
msgstr "" msgstr ""
#: mpdevil:3747 #: mpdevil:3741
#, python-brace-format #, python-brace-format
msgid "Connection to “{profile}” ({host}:{port}) failed" msgid "Connection to “{profile}” ({host}:{port}) failed"
msgstr "" msgstr ""
#: mpdevil:3821 #: mpdevil:3815
msgid "Keyboard shortcuts" msgid "Keyboard shortcuts"
msgstr "" msgstr ""
#: mpdevil:3822 #: mpdevil:3816
msgid "Help" msgid "Help"
msgstr "" msgstr ""
#: mpdevil:3823 #: mpdevil:3817
msgid "About" msgid "About"
msgstr "" msgstr ""
#: mpdevil:3827 #: mpdevil:3821
msgid "Server stats" msgid "Server stats"
msgstr "" msgstr ""
#: mpdevil:3832 #: mpdevil:3826
msgid "Mini player" msgid "Mini player"
msgstr "" msgstr ""
#: mpdevil:3837 #: mpdevil:3831
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""
#: mpdevil:3888 mpdevil:3890 #: mpdevil:3882 mpdevil:3884
msgid "connecting…" msgid "connecting…"
msgstr "" msgstr ""
#: mpdevil:4054 #: mpdevil:4048
msgid "Debug mode" msgid "Debug mode"
msgstr "" msgstr ""