1
0
mirror of https://gitlab.cvh-server.de/skrause/flashcards.git synced 2025-12-12 07:51:38 +01:00

add tooltips

This commit is contained in:
2025-07-03 14:49:51 +02:00
parent a4ab9486a1
commit 5529da02db
3 changed files with 46 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: flashcards\n" "Project-Id-Version: flashcards\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-03 14:34+0200\n" "POT-Creation-Date: 2025-07-03 14:48+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"
@@ -49,19 +49,35 @@ msgstr "Wähle eine Kategorie"
msgid "Add a flashcard" msgid "Add a flashcard"
msgstr "Füge eine Karteikarte hinzu" msgstr "Füge eine Karteikarte hinzu"
#: resources/ui/window.blp:136 #: resources/ui/window.blp:116
msgid "Show answer"
msgstr "Antwort zeigen"
#: resources/ui/window.blp:137
msgid "Hard" msgid "Hard"
msgstr "Schwer" msgstr "Schwer"
#: resources/ui/window.blp:142 #: resources/ui/window.blp:140
msgid "Reappears in 6 hours"
msgstr "Erscheint erneut in 6 Stunden"
#: resources/ui/window.blp:144
msgid "Medium" msgid "Medium"
msgstr "Mittel" msgstr "Mittel"
#: resources/ui/window.blp:148 #: resources/ui/window.blp:147
msgid "Reappears in 12 hours"
msgstr "Erscheint erneut in 12 Stunden"
#: resources/ui/window.blp:151
msgid "Easy" msgid "Easy"
msgstr "Einfach" msgstr "Einfach"
#: resources/ui/window.blp:166 #: resources/ui/window.blp:154
msgid "Reappears in 24 hours"
msgstr "Erscheint erneut in 24 Stunden"
#: resources/ui/window.blp:170
msgid "About Flashcards" msgid "About Flashcards"
msgstr "Über Karteikarten" msgstr "Über Karteikarten"

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: flashcards\n" "Project-Id-Version: flashcards\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-03 14:34+0200\n" "POT-Creation-Date: 2025-07-03 14:48+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"
@@ -55,19 +55,35 @@ msgstr ""
msgid "Add a flashcard" msgid "Add a flashcard"
msgstr "" msgstr ""
#: resources/ui/window.blp:136 #: resources/ui/window.blp:116
msgid "Show answer"
msgstr ""
#: resources/ui/window.blp:137
msgid "Hard" msgid "Hard"
msgstr "" msgstr ""
#: resources/ui/window.blp:142 #: resources/ui/window.blp:140
msgid "Reappears in 6 hours"
msgstr ""
#: resources/ui/window.blp:144
msgid "Medium" msgid "Medium"
msgstr "" msgstr ""
#: resources/ui/window.blp:148 #: resources/ui/window.blp:147
msgid "Reappears in 12 hours"
msgstr ""
#: resources/ui/window.blp:151
msgid "Easy" msgid "Easy"
msgstr "" msgstr ""
#: resources/ui/window.blp:166 #: resources/ui/window.blp:154
msgid "Reappears in 24 hours"
msgstr ""
#: resources/ui/window.blp:170
msgid "About Flashcards" msgid "About Flashcards"
msgstr "" msgstr ""

View File

@@ -113,6 +113,7 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
styles ["card", "activatable"] styles ["card", "activatable"]
halign: center; halign: center;
clicked => $on_flip_card(); clicked => $on_flip_card();
tooltip-text: _("Show answer");
Label card_title { Label card_title {
styles ["title-4"] styles ["title-4"]
margin-top: 24; margin-top: 24;
@@ -136,18 +137,21 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
label: _("Hard"); label: _("Hard");
hexpand: true; hexpand: true;
clicked => $on_answer_hard(); clicked => $on_answer_hard();
tooltip-text: _("Reappears in 6 hours");
} }
Button { Button {
styles ["pill"] styles ["pill"]
label: _("Medium"); label: _("Medium");
hexpand: true; hexpand: true;
clicked => $on_answer_medium(); clicked => $on_answer_medium();
tooltip-text: _("Reappears in 12 hours");
} }
Button { Button {
styles ["pill"] styles ["pill"]
label: _("Easy"); label: _("Easy");
hexpand: true; hexpand: true;
clicked => $on_answer_easy(); clicked => $on_answer_easy();
tooltip-text: _("Reappears in 24 hours");
} }
} }
} }