mirror of
https://git.crystalyx.net/Xefir/repod.git
synced 2024-12-26 16:55:13 +01:00
refacto: handle translations for tops title with a switch
This commit is contained in:
parent
5a03bf7d6e
commit
d6e7c5a460
@ -7,8 +7,8 @@ OC.L10N.register(
|
||||
"# Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)\n\n# Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "# Fonctionnalités\n- 🔍 Parcourir et s'abonner à une grande collections de podcasts\n- 🔊 Écouter vos épisodes directement sur Nextcloud\n- 🌐 Synchroniser son activité avec [AntennaPod](https://antennapod.org/)\n\n# Pré-requis\nVous devez avoir [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installé pour utiliser cette application !",
|
||||
"Add a RSS link" : "Ajouter un lien RSS",
|
||||
"Could not fetch search results" : "Impossible de récupérer les resultats de la recherche",
|
||||
"hot podcasts" : "tendances",
|
||||
"new podcasts" : "nouveautés",
|
||||
"Hot podcasts" : "Tendances",
|
||||
"New podcasts" : "Nouveautés",
|
||||
"Could not fetch tops" : "Impossible de récupérer les tops",
|
||||
"Subscribe" : "S'abonner",
|
||||
"Error while adding the feed" : "Erreur lors de l'ajout du flux",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"# Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)\n\n# Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "# Fonctionnalités\n- 🔍 Parcourir et s'abonner à une grande collections de podcasts\n- 🔊 Écouter vos épisodes directement sur Nextcloud\n- 🌐 Synchroniser son activité avec [AntennaPod](https://antennapod.org/)\n\n# Pré-requis\nVous devez avoir [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installé pour utiliser cette application !",
|
||||
"Add a RSS link" : "Ajouter un lien RSS",
|
||||
"Could not fetch search results" : "Impossible de récupérer les resultats de la recherche",
|
||||
"hot podcasts" : "tendances",
|
||||
"new podcasts" : "nouveautés",
|
||||
"Hot podcasts" : "Tendances",
|
||||
"New podcasts" : "Nouveautés",
|
||||
"Could not fetch tops" : "Impossible de récupérer les tops",
|
||||
"Subscribe" : "S'abonner",
|
||||
"Error while adding the feed" : "Erreur lors de l'ajout du flux",
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>{{ t('repod', `${type} podcasts`) }}</h2>
|
||||
<h2>{{ title }}</h2>
|
||||
<Loading v-if="loading" />
|
||||
<ul v-if="!loading">
|
||||
<li v-for="top in items" :key="top.link">
|
||||
@ -36,6 +36,18 @@ export default {
|
||||
loading: true,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
title() {
|
||||
switch (this.type) {
|
||||
case 'new':
|
||||
return t('repod', 'New podcasts')
|
||||
case 'hot':
|
||||
return t('repod', 'Hot podcasts')
|
||||
default:
|
||||
return this.type
|
||||
}
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
this.loadList()
|
||||
},
|
||||
@ -62,10 +74,6 @@ export default {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
h2::first-letter {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
@ -50,11 +50,11 @@ msgstr "Ajouter un lien RSS"
|
||||
msgid "Could not fetch search results"
|
||||
msgstr "Impossible de récupérer les resultats de la recherche"
|
||||
|
||||
msgid "hot podcasts"
|
||||
msgstr "tendances"
|
||||
msgid "Hot podcasts"
|
||||
msgstr "Tendances"
|
||||
|
||||
msgid "new podcasts"
|
||||
msgstr "nouveautés"
|
||||
msgid "New podcasts"
|
||||
msgstr "Nouveautés"
|
||||
|
||||
msgid "Could not fetch tops"
|
||||
msgstr "Impossible de récupérer les tops"
|
||||
|
@ -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-01-14 00:07+0000\n"
|
||||
"POT-Creation-Date: 2024-01-15 09:10+0000\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"
|
||||
@ -50,69 +50,73 @@ msgid "Could not fetch search results"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:3
|
||||
msgid "Could not fetch tops"
|
||||
msgid "New podcasts"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:4
|
||||
msgid "${type} podcasts"
|
||||
msgid "Hot podcasts"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:5
|
||||
msgid "Subscribe"
|
||||
msgid "Could not fetch tops"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:6
|
||||
msgid "Error while adding the feed"
|
||||
msgid "Subscribe"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:7
|
||||
msgid "Play"
|
||||
msgid "Error while adding the feed"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:8
|
||||
msgid "Stop"
|
||||
msgid "Play"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:9
|
||||
msgid "Could not fetch episodes"
|
||||
msgid "Stop"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:10
|
||||
msgid "Download"
|
||||
msgid "Could not fetch episodes"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:11
|
||||
msgid "Delete"
|
||||
msgid "Download"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:12
|
||||
msgid "Are you sure you want to delete this subscription?"
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:13
|
||||
msgid "Error while removing the feed"
|
||||
msgid "Are you sure you want to delete this subscription?"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:14
|
||||
msgid "Add a podcast"
|
||||
msgid "Error while removing the feed"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:15
|
||||
msgid "Could not fetch subscriptions"
|
||||
msgid "Add a podcast"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:16
|
||||
msgid "Find a podcast"
|
||||
msgid "Could not fetch subscriptions"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:17
|
||||
msgid "Error loading feed"
|
||||
msgid "Find a podcast"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:18
|
||||
msgid "Missing required app"
|
||||
msgid "Error loading feed"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:19
|
||||
msgid "Missing required app"
|
||||
msgstr ""
|
||||
|
||||
#: /app/specialVueFakeDummyForL10nScript.js:20
|
||||
msgid "Install GPodder Sync"
|
||||
msgstr ""
|
||||
|
Loading…
Reference in New Issue
Block a user