From de52f111c5453c606ec418899532fac62e36bcf9 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 25 Oct 2024 16:51:26 +0200 Subject: [PATCH] fix: :wheelchair: add title for mute and play button --- l10n/de.js | 3 ++ l10n/de.json | 3 ++ l10n/fr.js | 1 + l10n/fr.json | 1 + src/components/Player/Controls.vue | 16 +++++- src/components/Player/Volume.vue | 6 +++ translationfiles/de/repod.po | 9 ++++ translationfiles/fr/repod.po | 9 ++++ translationfiles/templates/repod.pot | 81 ++++++++++++++++------------ 9 files changed, 94 insertions(+), 35 deletions(-) diff --git a/l10n/de.js b/l10n/de.js index 637ecc2..ceb7b56 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -22,6 +22,9 @@ OC.L10N.register( "Open website" : "Webseite aufrufen", "Could not change the status of the episode" : "Kann den Status der Folge nicht ändern", "Could not fetch episodes" : "Folgen können nicht abgerufen werden", + "Pause" : "Pause", + "Mute" : "Stumm", + "Unmute" : "Stummschalten", "Export subscriptions" : "Abonnements exportieren", "Filtering episodes" : "Folgen filtern", "Show all" : "Zeige alles", diff --git a/l10n/de.json b/l10n/de.json index f50ee64..67d38bd 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -20,6 +20,9 @@ "Open website" : "Webseite aufrufen", "Could not change the status of the episode" : "Kann den Status der Folge nicht ändern", "Could not fetch episodes" : "Folgen können nicht abgerufen werden", + "Pause" : "Pause", + "Mute" : "Stumm", + "Unmute" : "Stummschalten", "Export subscriptions" : "Abonnements exportieren", "Filtering episodes" : "Folgen filtern", "Show all" : "Zeige alles", diff --git a/l10n/fr.js b/l10n/fr.js index f5e32cf..4f664ae 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -22,6 +22,7 @@ OC.L10N.register( "Open website" : "Ouvrir le site web", "Could not change the status of the episode" : "Impossible de changer le status de l'épisode", "Could not fetch episodes" : "Impossible de récuprer les épisodes", + "Pause" : "Pause", "Export subscriptions" : "Exporter les abonnements", "Filtering episodes" : "Filtrage des épisodes", "Show all" : "Montrer tout", diff --git a/l10n/fr.json b/l10n/fr.json index f35548b..80649a7 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -20,6 +20,7 @@ "Open website" : "Ouvrir le site web", "Could not change the status of the episode" : "Impossible de changer le status de l'épisode", "Could not fetch episodes" : "Impossible de récuprer les épisodes", + "Pause" : "Pause", "Export subscriptions" : "Exporter les abonnements", "Filtering episodes" : "Filtrage des épisodes", "Show all" : "Montrer tout", diff --git a/src/components/Player/Controls.vue b/src/components/Player/Controls.vue index 18b48e2..10360ad 100644 --- a/src/components/Player/Controls.vue +++ b/src/components/Player/Controls.vue @@ -1,7 +1,17 @@ @@ -9,6 +19,7 @@ import { mapActions, mapState } from 'pinia' import PauseIcon from 'vue-material-design-icons/Pause.vue' import PlayIcon from 'vue-material-design-icons/Play.vue' +import { t } from '@nextcloud/l10n' import { usePlayer } from '../../store/player.ts' export default { @@ -22,6 +33,7 @@ export default { }, methods: { ...mapActions(usePlayer, ['play', 'pause']), + t, }, } diff --git a/src/components/Player/Volume.vue b/src/components/Player/Volume.vue index 02915e7..db2f5b6 100644 --- a/src/components/Player/Volume.vue +++ b/src/components/Player/Volume.vue @@ -4,21 +4,25 @@ v-if="volume > 0.7" class="pointer" :size="30" + :title="t('repod', 'Mute')" @click="mute" /> diff --git a/translationfiles/de/repod.po b/translationfiles/de/repod.po index 406f527..84d635d 100644 --- a/translationfiles/de/repod.po +++ b/translationfiles/de/repod.po @@ -103,6 +103,15 @@ msgstr "Kann den Status der Folge nicht ändern" msgid "Could not fetch episodes" msgstr "Folgen können nicht abgerufen werden" +msgid "Pause" +msgstr "Pause" + +msgid "Mute" +msgstr "Stumm" + +msgid "Unmute" +msgstr "Stummschalten" + msgid "Export subscriptions" msgstr "Abonnements exportieren" diff --git a/translationfiles/fr/repod.po b/translationfiles/fr/repod.po index 362bcff..4fa43ad 100644 --- a/translationfiles/fr/repod.po +++ b/translationfiles/fr/repod.po @@ -107,6 +107,15 @@ msgstr "Impossible de changer le status de l'épisode" msgid "Could not fetch episodes" msgstr "Impossible de récuprer les épisodes" +msgid "Pause" +msgstr "Pause" + +msgid "Mute" +msgstr "" + +msgid "Unmute" +msgstr "" + msgid "Export subscriptions" msgstr "Exporter les abonnements" diff --git a/translationfiles/templates/repod.pot b/translationfiles/templates/repod.pot index cd639a8..1346a7b 100644 --- a/translationfiles/templates/repod.pot +++ b/translationfiles/templates/repod.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Nextcloud 3.14159\n" "Report-Msgid-Bugs-To: translations\\@example.com\n" -"POT-Creation-Date: 2024-10-24 21:38+0000\n" +"POT-Creation-Date: 2024-10-25 14:50+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -101,6 +101,7 @@ msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:15 #: /app/specialVueFakeDummyForL10nScript.js:16 +#: /app/specialVueFakeDummyForL10nScript.js:30 msgid "Play" msgstr "" @@ -130,92 +131,106 @@ msgid "Could not fetch episodes" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:29 -msgid "Export subscriptions" -msgstr "" - -#: /app/specialVueFakeDummyForL10nScript.js:30 -msgid "Filtering episodes" +msgid "Pause" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:31 -msgid "Show all" -msgstr "" - #: /app/specialVueFakeDummyForL10nScript.js:32 -msgid "Listened" -msgstr "" - #: /app/specialVueFakeDummyForL10nScript.js:33 -msgid "Listening" +msgid "Mute" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:34 -msgid "Unlistened" +msgid "Unmute" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:35 -msgid "Import subscriptions" +msgid "Export subscriptions" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:36 -msgid "Import OPML file" +msgid "Filtering episodes" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:37 -msgid "Rate RePod ❤️" +msgid "Show all" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:38 -msgid "Playback speed" +msgid "Listened" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:39 +msgid "Listening" +msgstr "" + #: /app/specialVueFakeDummyForL10nScript.js:40 +msgid "Unlistened" +msgstr "" + #: /app/specialVueFakeDummyForL10nScript.js:41 -msgid "Favorite" +msgid "Import subscriptions" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:42 -msgid "Are you sure you want to delete this subscription?" +msgid "Import OPML file" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:43 -msgid "Error while removing the feed" +msgid "Rate RePod ❤️" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:44 -msgid "You can only have 10 favorites" +msgid "Playback speed" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:45 -msgid "Add a podcast" -msgstr "" - #: /app/specialVueFakeDummyForL10nScript.js:46 -msgid "Could not fetch subscriptions" -msgstr "" - #: /app/specialVueFakeDummyForL10nScript.js:47 -msgid "Find a podcast" +msgid "Favorite" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:48 -msgid "Error loading feed" +msgid "Are you sure you want to delete this subscription?" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:49 -msgid "Missing required app" +msgid "Error while removing the feed" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:50 -msgid "Install GPodder Sync" +msgid "You can only have 10 favorites" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:51 -msgid "Pin some subscriptions to see their latest updates" +msgid "Add a podcast" msgstr "" #: /app/specialVueFakeDummyForL10nScript.js:52 +msgid "Could not fetch subscriptions" +msgstr "" + +#: /app/specialVueFakeDummyForL10nScript.js:53 +msgid "Find a podcast" +msgstr "" + +#: /app/specialVueFakeDummyForL10nScript.js:54 +msgid "Error loading feed" +msgstr "" + +#: /app/specialVueFakeDummyForL10nScript.js:55 +msgid "Missing required app" +msgstr "" + +#: /app/specialVueFakeDummyForL10nScript.js:56 +msgid "Install GPodder Sync" +msgstr "" + +#: /app/specialVueFakeDummyForL10nScript.js:57 +msgid "Pin some subscriptions to see their latest updates" +msgstr "" + +#: /app/specialVueFakeDummyForL10nScript.js:58 msgid "No favorites" msgstr ""