From 11b92d58966de76d90385d1666f204cbb8680746 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 3 Sep 2021 16:47:47 +0000 Subject: [PATCH] Use the new format for settings.xml * Convert settings.xml to the new format supported in Kodi 19 * Create help strings to guide the users Note: the translation of the new help strings in German is missing. --- .gitlab-ci.yml | 2 +- .../resource.language.de_de/strings.po | 30 ++++++ .../resource.language.en_gb/strings.po | 30 ++++++ .../resource.language.fr_fr/strings.po | 36 +++++++ resources/settings.xml | 94 ++++++++++++++++--- 5 files changed, 178 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 079b1c7..eb0cbf8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -64,7 +64,7 @@ translation: # We cannot use a simple "find ... -exec msgcmp {} strings.po" because it # would always return 0 as exit code script: - - files=$(find . -name strings.po -not -path './resources/language/resource.language.en_gb/*') && for file in $files; do echo -e "\n\033[94mChecking translation file $file\033[0m"; msgcmp $file ./resources/language/resource.language.en_gb/strings.po; done + - files=$(find . -name strings.po -not -path './resources/language/resource.language.en_gb/*') && for file in $files; do echo -e "\n\033[94mChecking translation file $file\033[0m"; msgcmp $file ./resources/language/resource.language.en_gb/strings.po || continue; done # Pre-release job: will be available in all the merge requests with release # branches in order to verify the release can be actually created. The diff --git a/resources/language/resource.language.de_de/strings.po b/resources/language/resource.language.de_de/strings.po index bac04e8..e34bf50 100644 --- a/resources/language/resource.language.de_de/strings.po +++ b/resources/language/resource.language.de_de/strings.po @@ -77,6 +77,36 @@ msgctxt "#30013" msgid "Display a notification when the service starts" msgstr "Eine Benachrichtigung anzeigen, wenn der Dienst startet" +msgctxt "#30014" +msgid "URL of the PeerTube instance to use (with or without the HTTP(s) prefix)" +msgstr "" + +msgctxt "#30015" +msgid "This notification is especially useful on slow devices where the service" +" takes time to start." +msgstr "" + +msgctxt "#30016" +msgid "The greater the longer the pages will take to load." +msgstr "" + +msgctxt "#30017" +msgid "Note: only ascending order is supported." +msgstr "" + +msgctxt "#30018" +msgid "[local] Only display the videos which are local to the selected instance" +"\n[all-local] Only display the videos which are local to the selected instance" +" [B]plus[/B] the private and unlisted videos (requires admin privileges)" +msgstr "" + +msgctxt "#30019" +msgid "If the preferred resolution is not available for a given video," +" the lower resolution that is the closest to your preference will be used.\n" +"If not available, the higher resolution that is the closest from your" +" preference will be used." +msgstr "" + # ----------------------------------- # Other strings (from 30400 to 30999) # ----------------------------------- diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 48d73c4..ae99121 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -77,6 +77,36 @@ msgctxt "#30013" msgid "Display a notification when the service starts" msgstr "" +msgctxt "#30014" +msgid "URL of the PeerTube instance to use (with or without the HTTP(s) prefix)" +msgstr "" + +msgctxt "#30015" +msgid "This notification is especially useful on slow devices where the service" +" takes time to start." +msgstr "" + +msgctxt "#30016" +msgid "The greater the longer the pages will take to load." +msgstr "" + +msgctxt "#30017" +msgid "Note: only ascending order is supported." +msgstr "" + +msgctxt "#30018" +msgid "[local] Only display the videos which are local to the selected instance" +"\n[all-local] Only display the videos which are local to the selected instance" +" [B]plus[/B] the private and unlisted videos (requires admin privileges)" +msgstr "" + +msgctxt "#30019" +msgid "If the preferred resolution is not available for a given video," +" the lower resolution that is the closest to your preference will be used.\n" +"If not available, the higher resolution that is the closest from your" +" preference will be used." +msgstr "" + # ----------------------------------- # Other strings (from 30400 to 30999) # ----------------------------------- diff --git a/resources/language/resource.language.fr_fr/strings.po b/resources/language/resource.language.fr_fr/strings.po index b630091..04a2f5e 100644 --- a/resources/language/resource.language.fr_fr/strings.po +++ b/resources/language/resource.language.fr_fr/strings.po @@ -77,6 +77,42 @@ msgctxt "#30013" msgid "Display a notification when the service starts" msgstr "Afficher une notification au démarrage du service" +msgctxt "#30014" +msgid "URL of the PeerTube instance to use (with or without the HTTP(s) prefix)" +msgstr "URL de l'instance PeerTube à utiliser (avec ou sans le préfixe HTTP(s))" + +msgctxt "#30015" +msgid "This notification is especially useful on slow devices where the service" +" takes time to start." +msgstr "Cette notification est particulièrement utile sur les appareils lents" +" où le service met du temps à démarrer." + +msgctxt "#30016" +msgid "The greater the longer the pages will take to load." +msgstr "Plus ce nombre est élevé plus les pages mettront du temps à charger." + +msgctxt "#30017" +msgid "Note: only ascending order is supported." +msgstr "Note : les élements ne seront classés que dans l'ordre ascendant." + +msgctxt "#30018" +msgid "[local] Only display the videos which are local to the selected instance" +"\n[all-local] Only display the videos which are local to the selected instance" +" [B]plus[/B] the private and unlisted videos (requires admin privileges)" +msgstr "[local] Affiche seulement les vidéos qui sont locales à l'instance sélectionnée" +"\n[all-local] Affiche seulement les vidéos qui sont locales à l'instance" +" sélectionnée [B]plus[/B] les vidéos privées and non référencées (nécessite les droits admin)" + +msgctxt "#30019" +msgid "If the preferred resolution is not available for a given video," +" the lower resolution that is the closest to your preference will be used.\n" +"If not available, the higher resolution that is the closest from your" +" preference will be used." +msgstr "Si la résolution préférée n'est pas disponible pour une vidéo donnée," +" la résolution plus basse et la plus proche de votre préférence sera utilisée.\n" +"Si elle n'est pas disponible, la résolution plus haute et la plus proche de" +" votre préférence sera utilisée." + # ----------------------------------- # Other strings (from 30400 to 30999) # ----------------------------------- diff --git a/resources/settings.xml b/resources/settings.xml index b8175d9..e38fea1 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -1,14 +1,82 @@ - - - - - - - - - - - - - + + +
+ + + + 0 + framatube.org + + 30000 + + + + 0 + true + + + + + + 0 + 20 + + + + + + + + + + 30001 + + + + 0 + 1 + + + + + + + + 30002 + + + + 0 + 0 + + + + + + + + 30005 + + + + + + 0 + 480 + + + + + + + + + + + 30003 + + + + +