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.
This commit is contained in:
Thomas 2021-09-03 16:47:47 +00:00
parent 8dec0f316e
commit 11b92d5896
5 changed files with 178 additions and 14 deletions

View File

@ -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

View File

@ -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)
# -----------------------------------

View File

@ -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)
# -----------------------------------

View File

@ -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)
# -----------------------------------

View File

@ -1,14 +1,82 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<category label="30006">
<setting id="preferred_instance" type="text" default="framatube.org" label="30000"/>
<setting id="service_start_notif" label="30013" type="bool" default="true"/>
<setting label="30007" type="lsep"/>
<setting id="items_per_page" type="select" values="10|20|50|100" default="20" label="30001"/>
<setting id="video_sort_method" type="select" lvalues="30011|30012" default=1 label="30002"/>
<setting id="video_filter" type="select" lvalues="30009|30010" default="0" label="30005"/>
<setting label="30008" type="lsep"/>
<setting id="preferred_resolution" type="select" values="1080|720|480|360|240" default='480' label="30003"/>
<!--<setting id="delete_files" type="bool" default="true" label="30004"/>-->
</category>
<?xml version="1.0" ?>
<settings version="1">
<section id="plugin.video.peertube">
<category help="" id="general" label="30006">
<group id="1">
<setting help="30014" id="preferred_instance" label="30000" type="string">
<level>0</level>
<default>framatube.org</default>
<control format="string" type="edit">
<heading>30000</heading>
</control>
</setting>
<setting help="30015" id="service_start_notif" label="30013" type="boolean">
<level>0</level>
<default>true</default>
<control type="toggle"/>
</setting>
</group>
<group id="2" label="30007">
<setting help="30016" id="items_per_page" label="30001" type="string">
<level>0</level>
<default>20</default>
<constraints>
<options>
<option>10</option>
<option>20</option>
<option>50</option>
<option>100</option>
</options>
</constraints>
<control format="string" type="list">
<heading>30001</heading>
</control>
</setting>
<setting help="30017" id="video_sort_method" label="30002" type="integer">
<level>0</level>
<default>1</default>
<constraints>
<options>
<option label="30011">0</option>
<option label="30012">1</option>
</options>
</constraints>
<control format="string" type="list">
<heading>30002</heading>
</control>
</setting>
<setting help="30018" id="video_filter" label="30005" type="integer">
<level>0</level>
<default>0</default>
<constraints>
<options>
<option label="30009">0</option>
<option label="30010">1</option>
</options>
</constraints>
<control format="string" type="list">
<heading>30005</heading>
</control>
</setting>
</group>
<group id="3" label="30008">
<setting help="30019" id="preferred_resolution" label="30003" type="string">
<level>0</level>
<default>480</default>
<constraints>
<options>
<option>1080</option>
<option>720</option>
<option>480</option>
<option>360</option>
<option>240</option>
</options>
</constraints>
<control format="string" type="list">
<heading>30003</heading>
</control>
</setting>
</group>
</category>
</section>
</settings>