Skip to content

Commit

Permalink
Fixed administration form rendering bug with English language.
Browse files Browse the repository at this point in the history
The translation files for the English language were not consistant with the
referenced keys in the blueprints, leading to array-to-string conversions. The
files were updated to use the same structure and the blueprint was modified
to match the English files, as it was better.

Probably an unfinished change that was commited erroneously.

Fixes #1.
  • Loading branch information
AmauryCarrade committed Apr 21, 2019
1 parent 4ab827e commit 042a160
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
18 changes: 12 additions & 6 deletions blueprints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ form:
dark: PLUGIN_SSE.ADMIN.DARK
twitter.download_content.images:
type: toggle
label: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES
label: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES.LABEL
help: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES.HELP
highlight: 1
default: 1
options:
Expand All @@ -122,7 +123,8 @@ form:
type: bool
twitter.download_content.videos:
type: toggle
label: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS
label: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS.LABEL
help: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS.HELP
highlight: 1
default: 1
options:
Expand Down Expand Up @@ -171,7 +173,8 @@ form:
dark: PLUGIN_SSE.ADMIN.DARK
mastodon.download_content.images:
type: toggle
label: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES
label: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES.LABEL
help: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES.HELP
highlight: 1
default: 1
options:
Expand All @@ -181,7 +184,8 @@ form:
type: bool
mastodon.download_content.videos:
type: toggle
label: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS
label: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS.LABEL
help: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS.HELP
highlight: 1
default: 1
options:
Expand All @@ -208,7 +212,8 @@ form:
dark: PLUGIN_SSE.ADMIN.DARK
instagram.download_content.images:
type: toggle
label: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES
label: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES.LABEL
help: PLUGIN_SSE.ADMIN.DOWNLOADS.IMAGES.HELP
highlight: 1
default: 1
options:
Expand All @@ -218,7 +223,8 @@ form:
type: bool
instagram.download_content.videos:
type: toggle
label: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS
label: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS.LABEL
help: PLUGIN_SSE.ADMIN.DOWNLOADS.VIDEOS.HELP
highlight: 1
default: 1
options:
Expand Down
5 changes: 4 additions & 1 deletion languages/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ PLUGIN_SSE:
You don't need to provide a callback URL (we never use that).
Then, click the <strong>Keys and access tokens</strong> tab and at the bottom of the page, click
<strong>Create my Access Token</strong>.
Finally, copy the credentials here.
Finally, copy the credentials here.<br /><br />
If you do not already have a developer account, <a href="https://developer.twitter.com/en/apply">you will have to apply for one</a>.
Twitter will ask you how you plan to use the API. This plugin uses it only read-only and complies with Twitter's Guidelines regarding
tweets integration.
THEME:
LABEL: Twitter theme
HELP: The embeds theme. This option is only guaranteed to be followed with the built-in CSS.
Expand Down
21 changes: 17 additions & 4 deletions languages/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,18 @@ PLUGIN_SSE:
<strong>Ne supprimez jamais ce dossier sans supprimer également le dossier de cache des posts.</strong>
Si des médias sont téléchargés, les données stockées en cache référencent directement les fichiers locaux&nbsp;: supprimer
ces derniers cassera tous les liens vers des médias.
IMAGES: Télécharger les images localement&nbsp;?
VIDEOS: Télécharger les vidéos et les GIFs localement&nbsp;?
IMAGES:
LABEL: Télécharger les images localement&nbsp;?
HELP: |
Si activé, les images des tweets, toots, publications instagram, etc., seront téléchargées et diffsées par votre
site en lieu et place du réseau social (incluant les avatars). Avec cette option, l'indépendance est renforcée, mais
vous aurez besoin d'un peu plus d'espace disque.
VIDEOS:
LABEL: Télécharger les vidéos et les GIFs localement&nbsp;?
HELP: |
Si activé, les vidéos et les GIFs des tweets, toots, publications instagram, etc., seront téléchargées et diffsées par
votre site en lieu et place du réseau social. Avec cette option, l'indépendance est renforcée, mais vous aurez besoin
d'un peu plus d'espace disque.
TWITTER:
TITLE: Twitter
HELP: |
Expand All @@ -109,10 +119,13 @@ PLUGIN_SSE:
un tweet d'un compte privé, assurez-vous d'avoir l'accord de son auteur.
HELP_APP: |
<strong>Pour inclure des tweets, vous devez créer une application Twitter.</strong><br /><br />
Rendez-vous sur <a href="https://apps.twitter.com/app/new">la page de création d'applications de Twitter</a>
Rendez-vous sur <a href="https://developer.twitter.com/en/apps">la page de création d'applications de Twitter</a>
pour en créer une. Vous n'avez pas besoin de spécifier une URL de retour (<em>callback URL</em>) — nous n'utilisons
pas cela. Ensuite, cliquez sur l'onglet <strong>Keys and access tokens</strong> et, en bas de la page, cliquez sur
<strong>Create my Access Token</strong>. Finalement, copiez les identifiants ci-dessous.
<strong>Create my Access Token</strong>. Finalement, copiez les identifiants ci-dessous.<br /><br />
Si vous n'avez pas déjà de compte développeur, <a href="https://developer.twitter.com/en/apply">vous devrez demander l'accès</a>.
Twitter vous demandera l'usage que vous comptez faire de l'API. Ce plugin ne l'utilise qu'en lecture seule et respecte les directives
de Twitter concernant l'intégration des tweets.
THEME:
LABEL: Thème des tweets
HELP: Le thème des tweets intégrés. Cette option n'est garantie que si le CSS intégré est utilisé.
Expand Down

0 comments on commit 042a160

Please sign in to comment.