]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add translations
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 5 Mar 2016 21:29:58 +0000 (22:29 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 5 Mar 2016 21:29:58 +0000 (22:29 +0100)
src/Wallabag/CoreBundle/Controller/DeveloperController.php
src/Wallabag/CoreBundle/Form/Type/ClientType.php
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/client.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/client_parameters.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Developer/index.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/client.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/client_parameters.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig

index e7720355661ad10bcf365e69bfe78c5ef337bcb8..71065534e198dd863ae8614cde1a6f366e39e91c 100644 (file)
@@ -11,6 +11,8 @@ use Wallabag\CoreBundle\Form\Type\ClientType;
 class DeveloperController extends Controller
 {
     /**
+     * List all clients and link to create a new one.
+     *
      * @Route("/developer", name="developer")
      *
      * @return \Symfony\Component\HttpFoundation\Response
@@ -25,6 +27,8 @@ class DeveloperController extends Controller
     }
 
     /**
+     * Create a client (an app).
+     *
      * @param Request $request
      *
      * @Route("/developer/client/create", name="developer_create_client")
@@ -62,13 +66,13 @@ class DeveloperController extends Controller
     /**
      * Remove a client.
      *
-     * @param Request $request
+     * @param Client $client
      *
      * @Route("/developer/client/delete/{id}", requirements={"id" = "\d+"}, name="developer_delete_client")
      *
      * @return \Symfony\Component\HttpFoundation\RedirectResponse
      */
-    public function deleteClientAction(Request $request, Client $client)
+    public function deleteClientAction(Client $client)
     {
         $em = $this->getDoctrine()->getManager();
         $em->remove($client);
@@ -83,6 +87,8 @@ class DeveloperController extends Controller
     }
 
     /**
+     * Display developer how to use an existing app.
+     *
      * @Route("/developer/howto/first-app", name="developer_howto_firstapp")
      *
      * @return \Symfony\Component\HttpFoundation\Response
index cb6b5e65b13d49987fb3735645f71bdc71fe70c6..dd9347150582f22a0bf1e1a7cd3a60432be843a0 100644 (file)
@@ -14,8 +14,8 @@ class ClientType extends AbstractType
     public function buildForm(FormBuilderInterface $builder, array $options)
     {
         $builder
-            ->add('redirect_uris', UrlType::class, array('required' => true))
-            ->add('save', SubmitType::class, array('label' => 'Create new client'))
+            ->add('redirect_uris', UrlType::class, array('required' => true, 'label' => 'Redirect URIs'))
+            ->add('save', SubmitType::class, array('label' => 'Create new client'))
         ;
 
         $builder->get('redirect_uris')
index e4935b9e2643f7b8a4357928baf349d03ddd453e..6fbdcb9b8c27875c655d5bd52d0b8bf14c6add05 100644 (file)
@@ -240,3 +240,28 @@ If you need some help, we are here for you.: "Parce que vous avez peut-être bes
 On GitHub: "Sur GitHub"
 By email: "Par email"
 On Gitter: "Sur Gitter"
+
+# developer
+Developer: Développeur
+Welcome to the wallabag API: "Bienvenue sur l'API de wallabag"
+How to create my first application: "Comment créer votre première application"
+View full API documentation: "Voir la documentation complète de l'API"
+Clients: "Clients"
+Create a new client: "Créer une nouveau client"
+Existing clients: "Les clients existants"
+Client ID: "ID Client"
+Client secret: "Clé secrète"
+Redirect URIs: "URLs de redirection"
+Grant type allowed: "Type de privilège accordé"
+You have the ability to remove this client. This action is IRREVERSIBLE !: "Vous avez la possibilité de supprimer un client. Cette action est IRREVERSIBLE !"
+If you remove it, every app configured with that client won't be able to auth on your wallabag.: "Si vous supprimez un client, toutes les applications qui l'utilisaient ne fonctionneront plus avec votre compte wallabag."
+Remove this client: "Supprimer ce client"
+New client: "Nouveau client"
+You are about to create a new client. Please fill the field below for the redirect URI of your application.: "Vous allez créer un nouveau client. Merci de remplir l'url de redirection vers votre application."
+Back: "Retour"
+Client parameters: "Les parameters de votre client"
+New client created.: "Nouveau client créé."
+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"
index 5cbe1c3915569226f1c09288747c68e4bb8bc696..c9ce6d0870233490b2f3bd288a99f57318336b4d 100644 (file)
@@ -8,7 +8,7 @@
         <div class="card-panel settings">
 
             <div class="row">
-                <p>{% trans %}You are about to create a new client. Please fill the field below for the redirect URI of your application:{% endtrans %}</p>
+                <p>{% trans %}You are about to create a new client. Please fill the field below for the redirect URI of your application.{% endtrans %}</p>
                 {{ form_start(form) }}
                 {{ form_errors(form) }}
 
index c2f7e95c49f0a32094481e9a7150fc15134aa58c..a214dfd0b3a7984c2adcc39a2981a305ad7d86a8 100644 (file)
@@ -9,8 +9,8 @@
             <div class="row">
                 <p>{% trans %}Here are your client parameters.{% endtrans %}</p>
                 <ul>
-                    <li>{% trans %}Client ID:{% endtrans %} <strong><pre>{{ client_id }}</pre></strong></li>
-                    <li>{% trans %}Client secret:{% endtrans %} <strong><pre>{{ client_secret }}</pre></strong></li>
+                    <li>{% trans %}Client ID{% endtrans %}: <strong><pre>{{ client_id }}</pre></strong></li>
+                    <li>{% trans %}Client secret{% endtrans %}: <strong><pre>{{ client_secret }}</pre></strong></li>
                 </ul>
 
                 <a href="{{ path('developer') }}" class="waves-effect waves-light grey btn">{% trans %}Back{% endtrans %}</a>
index 604bfec9c6017fbc0bac88012178314ae25ffd5c..2e7dbcab709e419afd576fd81e5ab81bf6b6a423 100644 (file)
                                 <div class="collapsible-body">
                                     <table class="striped">
                                         <tr>
-                                            <td>{% trans %}Client ID:{% endtrans %}</td>
+                                            <td>{% trans %}Client ID{% endtrans %}</td>
                                             <td><strong><code>{{ client.id }}_{{ client.randomId }}</code></strong></td>
                                         </tr>
                                         <tr>
-                                            <td>{% trans %}Client secret:{% endtrans %}</td>
+                                            <td>{% trans %}Client secret{% endtrans %}</td>
                                             <td><strong><code>{{ client.secret }}</code></strong></td>
                                         </tr>
                                         <tr>
-                                            <td>{% trans %}Redirect URIs:{% endtrans %}</td>
+                                            <td>{% trans %}Redirect URIs{% endtrans %}</td>
                                             <td><strong><code>{{ client.redirectUris|json_encode() }}</code></strong></td>
                                         </tr>
                                         <tr>
-                                            <td>{% trans %}Grant type allowed:{% endtrans %}</td>
+                                            <td>{% trans %}Grant type allowed{% endtrans %}</td>
                                             <td><strong><code>{{ client.allowedGrantTypes|json_encode() }}</code></strong></td>
                                         </tr>
                                     </table>
index 5cbe1c3915569226f1c09288747c68e4bb8bc696..c9ce6d0870233490b2f3bd288a99f57318336b4d 100644 (file)
@@ -8,7 +8,7 @@
         <div class="card-panel settings">
 
             <div class="row">
-                <p>{% trans %}You are about to create a new client. Please fill the field below for the redirect URI of your application:{% endtrans %}</p>
+                <p>{% trans %}You are about to create a new client. Please fill the field below for the redirect URI of your application.{% endtrans %}</p>
                 {{ form_start(form) }}
                 {{ form_errors(form) }}
 
index c2f7e95c49f0a32094481e9a7150fc15134aa58c..a214dfd0b3a7984c2adcc39a2981a305ad7d86a8 100644 (file)
@@ -9,8 +9,8 @@
             <div class="row">
                 <p>{% trans %}Here are your client parameters.{% endtrans %}</p>
                 <ul>
-                    <li>{% trans %}Client ID:{% endtrans %} <strong><pre>{{ client_id }}</pre></strong></li>
-                    <li>{% trans %}Client secret:{% endtrans %} <strong><pre>{{ client_secret }}</pre></strong></li>
+                    <li>{% trans %}Client ID{% endtrans %}: <strong><pre>{{ client_id }}</pre></strong></li>
+                    <li>{% trans %}Client secret{% endtrans %}: <strong><pre>{{ client_secret }}</pre></strong></li>
                 </ul>
 
                 <a href="{{ path('developer') }}" class="waves-effect waves-light grey btn">{% trans %}Back{% endtrans %}</a>
index 604bfec9c6017fbc0bac88012178314ae25ffd5c..2e7dbcab709e419afd576fd81e5ab81bf6b6a423 100644 (file)
                                 <div class="collapsible-body">
                                     <table class="striped">
                                         <tr>
-                                            <td>{% trans %}Client ID:{% endtrans %}</td>
+                                            <td>{% trans %}Client ID{% endtrans %}</td>
                                             <td><strong><code>{{ client.id }}_{{ client.randomId }}</code></strong></td>
                                         </tr>
                                         <tr>
-                                            <td>{% trans %}Client secret:{% endtrans %}</td>
+                                            <td>{% trans %}Client secret{% endtrans %}</td>
                                             <td><strong><code>{{ client.secret }}</code></strong></td>
                                         </tr>
                                         <tr>
-                                            <td>{% trans %}Redirect URIs:{% endtrans %}</td>
+                                            <td>{% trans %}Redirect URIs{% endtrans %}</td>
                                             <td><strong><code>{{ client.redirectUris|json_encode() }}</code></strong></td>
                                         </tr>
                                         <tr>
-                                            <td>{% trans %}Grant type allowed:{% endtrans %}</td>
+                                            <td>{% trans %}Grant type allowed{% endtrans %}</td>
                                             <td><strong><code>{{ client.allowedGrantTypes|json_encode() }}</code></strong></td>
                                         </tr>
                                     </table>