From f17281417c481c85761552b7dad48a9a0d49248c Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Mon, 7 Mar 2016 09:20:20 +0100 Subject: Translate "how to" page --- .../CoreBundle/Resources/translations/messages.fr.yml | 8 ++++++++ .../views/themes/baggy/Developer/howto_app.html.twig | 16 ++++++++-------- .../views/themes/material/Developer/howto_app.html.twig | 16 ++++++++-------- 3 files changed, 24 insertions(+), 16 deletions(-) (limited to 'src/Wallabag/CoreBundle') 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" Read the howto "Create my first application": "Lire \"comment créer ma première application\"" Client deleted: "Client supprimé" No client yet.: "Aucun client pour le moment" +"The following commands make use of the HTTPie library. Make sure it is installed on your system before using it.": "Les commandes suivantes utilisent la librarie HTTPie. Assurez-vous qu'elle soit installée avant de l'utiliser." +You 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." +"To create this token, you need to create a new client.": "Pour créer un token, vous devez créer un nouveau client." +Now, 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):" +The API will return a response like this:: "L'API vous retournera une réponse comme ça:" +The 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:" +This call will return all the entries for your user.: "Cet appel va retourner tous les articles de l'utilisateur." +"If you want to see all the API endpoints, you can have a look to our API documentation.": "Si vous voulez toutes les méthodes de l'API, jettez un oeil à la documentation de l'API." 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 @@
-

The following commands make use of the HTTPie library. Make sure it is installed on your system before using it.

-

You need a token to communicate between your 3rd application and wallabag API.

-

To create this token, you need to create a new client.

-

Now, create your token (replace client_id, client_secret, username and password with the good values):

+

{% trans %}The following commands make use of the HTTPie library. Make sure it is installed on your system before using it.{% endtrans %}

+

{% trans %}You need a token to communicate between your 3rd application and wallabag API.{% endtrans %}

+

{% trans with {'%link%': path('developer_create_client')} %}To create this token, you need to create a new client.{% endtrans %}

+

{% trans %}Now, create your token (replace client_id, client_secret, username and password with the good values):{% endtrans %}

http POST http://v2.wallabag.org/oauth/v2/token \
     grant_type=password \
@@ -25,7 +25,7 @@
     username=yourUsername \
     password=yourPassw0rd

-

The API will return a response like this:

+

{% trans %}The API will return a response like this:{% endtrans %}

HTTP/1.1 200 OK
 Cache-Control: no-store, private
@@ -45,13 +45,13 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
     "token_type": "bearer"
 }

-

The access_token is useful to do a call to the API endpoint. For example:

+

{% trans %}The access_token is useful to do a call to the API endpoint. For example:{% endtrans %}

http GET http://v2.wallabag.org/api/entries.json \
     "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"

-

This call will return all the entries for your user.

-

If you want to see all the API endpoints, you can have a look to our API documentation.

+

{% trans %}This call will return all the entries for your user.{% endtrans %}

+

{% trans with {'%link%': path('nelmio_api_doc_index')} %}If you want to see all the API endpoints, you can have a look to our API documentation.{% endtrans %}

{% trans %}Back{% endtrans %}

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

The following commands make use of the HTTPie library. Make sure it is installed on your system before using it.

-

You need a token to communicate between your 3rd application and wallabag API.

-

To create this token, you need to create a new client.

-

Now, create your token (replace client_id, client_secret, username and password with the good values):

+

{% trans %}The following commands make use of the HTTPie library. Make sure it is installed on your system before using it.{% endtrans %}

+

{% trans %}You need a token to communicate between your 3rd application and wallabag API.{% endtrans %}

+

{% trans with {'%link%': path('developer_create_client')} %}To create this token, you need to create a new client.{% endtrans %}

+

{% trans %}Now, create your token (replace client_id, client_secret, username and password with the good values):{% endtrans %}

http POST http://v2.wallabag.org/oauth/v2/token \
     grant_type=password \
@@ -25,7 +25,7 @@
     username=yourUsername \
     password=yourPassw0rd

-

The API will return a response like this:

+

{% trans %}The API will return a response like this:{% endtrans %}

HTTP/1.1 200 OK
 Cache-Control: no-store, private
@@ -45,13 +45,13 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
     "token_type": "bearer"
 }

-

The access_token is useful to do a call to the API endpoint. For example:

+

{% trans %}The access_token is useful to do a call to the API endpoint. For example:{% endtrans %}

http GET http://v2.wallabag.org/api/entries.json \
     "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"

-

This call will return all the entries for your user.

-

If you want to see all the API endpoints, you can have a look to our API documentation.

+

{% trans %}This call will return all the entries for your user.{% endtrans %}

+

{% trans with {'%link%': path('nelmio_api_doc_index')} %}If you want to see all the API endpoints, you can have a look to our API documentation.{% endtrans %}

{% trans %}Back{% endtrans %}

-- cgit v1.2.3