aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-03-07 09:20:20 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-03-07 09:20:20 +0100
commitf17281417c481c85761552b7dad48a9a0d49248c (patch)
tree19efa8115fdc279582034948aa21eee28b967b55
parent2766668b59249e00e8c9077063bae17fe9cb5ec6 (diff)
downloadwallabag-f17281417c481c85761552b7dad48a9a0d49248c.tar.gz
wallabag-f17281417c481c85761552b7dad48a9a0d49248c.tar.zst
wallabag-f17281417c481c85761552b7dad48a9a0d49248c.zip
Translate "how to" page
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml8
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/howto_app.html.twig16
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/howto_app.html.twig16
3 files changed, 24 insertions, 16 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
index 6fbdcb9b..c4035859 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
@@ -265,3 +265,11 @@ Here are your client parameters.: "Voilà les paramètres de votre client"
265Read the howto "Create my first application": "Lire \"comment créer ma première application\"" 265Read the howto "Create my first application": "Lire \"comment créer ma première application\""
266Client deleted: "Client supprimé" 266Client deleted: "Client supprimé"
267No client yet.: "Aucun client pour le moment" 267No client yet.: "Aucun client pour le moment"
268"The following commands make use of the <a href=\"https://github.com/jkbrzt/httpie\">HTTPie library</a>. Make sure it is installed on your system before using it.": "Les commandes suivantes utilisent la <a href=\"https://github.com/jkbrzt/httpie\">librarie HTTPie</a>. Assurez-vous qu'elle soit installée avant de l'utiliser."
269You need a token to communicate between your 3rd application and wallabag API.: "Vous avez besoin d'un token pour échanger entre votre appication et l'API de wallabag."
270"To create this token, you need <a href=\"%link%\">to create a new client</a>.": "Pour créer un token, vous devez <a href=\"%link%\">créer un nouveau client</a>."
271Now, create your token (replace client_id, client_secret, username and password with the good values):: "Maintenant créer votre token (remplacer client_id, client_secret, username et password avec les bonnes valeurs):"
272The API will return a response like this:: "L'API vous retournera une réponse comme ça:"
273The access_token is useful to do a call to the API endpoint. For example:: "L'access_token doit être utilisé pour faire un appel à l'API. Par exemple:"
274This call will return all the entries for your user.: "Cet appel va retourner tous les articles de l'utilisateur."
275"If you want to see all the API endpoints, you can have a look <a href=\"%link%\">to our API documentation</a>.": "Si vous voulez toutes les méthodes de l'API, jettez un oeil <a href=\"%link%\">à la documentation de l'API</a>."
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/howto_app.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/howto_app.html.twig
index 84e49ede..382e6311 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/howto_app.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/howto_app.html.twig
@@ -13,10 +13,10 @@
13 <div class="card-panel settings"> 13 <div class="card-panel settings">
14 14
15 <div class="row"> 15 <div class="row">
16 <p>The following commands make use of the <a href="https://github.com/jkbrzt/httpie">HTTPie library</a>. Make sure it is installed on your system before using it.</p> 16 <p>{% trans %}The following commands make use of the <a href="https://github.com/jkbrzt/httpie">HTTPie library</a>. Make sure it is installed on your system before using it.{% endtrans %}</p>
17 <p>You need a token to communicate between your 3rd application and wallabag API.</p> 17 <p>{% trans %}You need a token to communicate between your 3rd application and wallabag API.{% endtrans %}</p>
18 <p>To create this token, you need <a href="{{ path('developer_create_client') }}">to create a new client</a>.</p> 18 <p>{% trans with {'%link%': path('developer_create_client')} %}To create this token, you need <a href="%link%">to create a new client</a>.{% endtrans %}</p>
19 <p>Now, create your token (replace client_id, client_secret, username and password with the good values):</p> 19 <p>{% trans %}Now, create your token (replace client_id, client_secret, username and password with the good values):{% endtrans %}</p>
20 <p> 20 <p>
21 <pre><code class="language-bash">http POST http://v2.wallabag.org/oauth/v2/token \ 21 <pre><code class="language-bash">http POST http://v2.wallabag.org/oauth/v2/token \
22 grant_type=password \ 22 grant_type=password \
@@ -25,7 +25,7 @@
25 username=yourUsername \ 25 username=yourUsername \
26 password=yourPassw0rd</code></pre> 26 password=yourPassw0rd</code></pre>
27 </p> 27 </p>
28 <p>The API will return a response like this:</p> 28 <p>{% trans %}The API will return a response like this:{% endtrans %}</p>
29 <p> 29 <p>
30 <pre><code class="language-bash">HTTP/1.1 200 OK 30 <pre><code class="language-bash">HTTP/1.1 200 OK
31Cache-Control: no-store, private 31Cache-Control: no-store, private
@@ -45,13 +45,13 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
45 "token_type": "bearer" 45 "token_type": "bearer"
46}</code></pre> 46}</code></pre>
47 </p> 47 </p>
48 <p>The access_token is useful to do a call to the API endpoint. For example:</p> 48 <p>{% trans %}The access_token is useful to do a call to the API endpoint. For example:{% endtrans %}</p>
49 <p> 49 <p>
50 <pre><code class="language-bash">http GET http://v2.wallabag.org/api/entries.json \ 50 <pre><code class="language-bash">http GET http://v2.wallabag.org/api/entries.json \
51 "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"</code></pre> 51 "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"</code></pre>
52 </p> 52 </p>
53 <p>This call will return all the entries for your user.</p> 53 <p>{% trans %}This call will return all the entries for your user.{% endtrans %}</p>
54 <p>If you want to see all the API endpoints, you can have a look <a href="{{ path('nelmio_api_doc_index') }}">to our API documentation</a>.</p> 54 <p>{% trans with {'%link%': path('nelmio_api_doc_index')} %}If you want to see all the API endpoints, you can have a look <a href="%link%">to our API documentation</a>.{% endtrans %}</p>
55 <p><a href="{{ path('developer') }}" class="waves-effect waves-light grey btn">{% trans %}Back{% endtrans %}</a></p> 55 <p><a href="{{ path('developer') }}" class="waves-effect waves-light grey btn">{% trans %}Back{% endtrans %}</a></p>
56 </div> 56 </div>
57 57
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/howto_app.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/howto_app.html.twig
index 84e49ede..382e6311 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/howto_app.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/howto_app.html.twig
@@ -13,10 +13,10 @@
13 <div class="card-panel settings"> 13 <div class="card-panel settings">
14 14
15 <div class="row"> 15 <div class="row">
16 <p>The following commands make use of the <a href="https://github.com/jkbrzt/httpie">HTTPie library</a>. Make sure it is installed on your system before using it.</p> 16 <p>{% trans %}The following commands make use of the <a href="https://github.com/jkbrzt/httpie">HTTPie library</a>. Make sure it is installed on your system before using it.{% endtrans %}</p>
17 <p>You need a token to communicate between your 3rd application and wallabag API.</p> 17 <p>{% trans %}You need a token to communicate between your 3rd application and wallabag API.{% endtrans %}</p>
18 <p>To create this token, you need <a href="{{ path('developer_create_client') }}">to create a new client</a>.</p> 18 <p>{% trans with {'%link%': path('developer_create_client')} %}To create this token, you need <a href="%link%">to create a new client</a>.{% endtrans %}</p>
19 <p>Now, create your token (replace client_id, client_secret, username and password with the good values):</p> 19 <p>{% trans %}Now, create your token (replace client_id, client_secret, username and password with the good values):{% endtrans %}</p>
20 <p> 20 <p>
21 <pre><code class="language-bash">http POST http://v2.wallabag.org/oauth/v2/token \ 21 <pre><code class="language-bash">http POST http://v2.wallabag.org/oauth/v2/token \
22 grant_type=password \ 22 grant_type=password \
@@ -25,7 +25,7 @@
25 username=yourUsername \ 25 username=yourUsername \
26 password=yourPassw0rd</code></pre> 26 password=yourPassw0rd</code></pre>
27 </p> 27 </p>
28 <p>The API will return a response like this:</p> 28 <p>{% trans %}The API will return a response like this:{% endtrans %}</p>
29 <p> 29 <p>
30 <pre><code class="language-bash">HTTP/1.1 200 OK 30 <pre><code class="language-bash">HTTP/1.1 200 OK
31Cache-Control: no-store, private 31Cache-Control: no-store, private
@@ -45,13 +45,13 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
45 "token_type": "bearer" 45 "token_type": "bearer"
46}</code></pre> 46}</code></pre>
47 </p> 47 </p>
48 <p>The access_token is useful to do a call to the API endpoint. For example:</p> 48 <p>{% trans %}The access_token is useful to do a call to the API endpoint. For example:{% endtrans %}</p>
49 <p> 49 <p>
50 <pre><code class="language-bash">http GET http://v2.wallabag.org/api/entries.json \ 50 <pre><code class="language-bash">http GET http://v2.wallabag.org/api/entries.json \
51 "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"</code></pre> 51 "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"</code></pre>
52 </p> 52 </p>
53 <p>This call will return all the entries for your user.</p> 53 <p>{% trans %}This call will return all the entries for your user.{% endtrans %}</p>
54 <p>If you want to see all the API endpoints, you can have a look <a href="{{ path('nelmio_api_doc_index') }}">to our API documentation</a>.</p> 54 <p>{% trans with {'%link%': path('nelmio_api_doc_index')} %}If you want to see all the API endpoints, you can have a look <a href="%link%">to our API documentation</a>.{% endtrans %}</p>
55 <p><a href="{{ path('developer') }}" class="waves-effect waves-light grey btn">{% trans %}Back{% endtrans %}</a></p> 55 <p><a href="{{ path('developer') }}" class="waves-effect waves-light grey btn">{% trans %}Back{% endtrans %}</a></p>
56 </div> 56 </div>
57 57