From c7a4f74f9fe225275c8c2e68269b1f86cc31da6e Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 12 Feb 2016 12:00:26 +0100 Subject: Redirect to the right tab on /config --- .../CoreBundle/Controller/ConfigController.php | 19 ++++++++++++------- .../CoreBundle/Resources/translations/messages.fr.yml | 1 + 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index b7799746..5ccf5a56 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -64,7 +64,7 @@ class ConfigController extends Controller 'Password updated' ); - return $this->redirect($this->generateUrl('config')); + return $this->redirect($this->generateUrl('config').'#set4'); } // handle changing user information @@ -82,7 +82,7 @@ class ConfigController extends Controller 'Information updated' ); - return $this->redirect($this->generateUrl('config')); + return $this->redirect($this->generateUrl('config').'#set3'); } // handle rss information @@ -98,7 +98,7 @@ class ConfigController extends Controller 'RSS information updated' ); - return $this->redirect($this->generateUrl('config')); + return $this->redirect($this->generateUrl('config').'#set2'); } // handle tagging rule @@ -116,7 +116,7 @@ class ConfigController extends Controller 'Tagging rules updated' ); - return $this->redirect($this->generateUrl('config')); + return $this->redirect($this->generateUrl('config').'#set5'); } // handle adding new user @@ -147,7 +147,7 @@ class ConfigController extends Controller sprintf('User "%s" added', $newUser->getUsername()) ); - return $this->redirect($this->generateUrl('config')); + return $this->redirect($this->generateUrl('config').'#set6'); } return $this->render('WallabagCoreBundle:Config:index.html.twig', array( @@ -187,7 +187,12 @@ class ConfigController extends Controller return new JsonResponse(array('token' => $config->getRssToken())); } - return $request->headers->get('referer') ? $this->redirect($request->headers->get('referer')) : $this->redirectToRoute('config'); + $this->get('session')->getFlashBag()->add( + 'notice', + 'RSS token updated' + ); + + return $this->redirect($this->generateUrl('config').'#set2'); } /** @@ -214,7 +219,7 @@ class ConfigController extends Controller 'Tagging rule deleted' ); - return $this->redirect($this->generateUrl('config')); + return $this->redirect($this->generateUrl('config').'#set5'); } /** diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index c7186c34..a98b7b7a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -39,6 +39,7 @@ Items per page: "Nombre d'articles par page" Language: 'Langue' Save: 'Enregistrer' RSS token: 'Jeton RSS' +RSS token updated: 'Jeton RSS mis à jour' Name: 'Nom' Email: 'Adresse e-mail' No token: 'Aucun jeton généré' -- cgit v1.2.3 From 55da765e11608e852bf197a01c164e442e635f2e Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 12 Feb 2016 12:00:49 +0100 Subject: Add missing translations --- src/Wallabag/CoreBundle/Controller/ConfigController.php | 2 +- src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 5ccf5a56..e7fb5ad0 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -144,7 +144,7 @@ class ConfigController extends Controller $this->get('session')->getFlashBag()->add( 'notice', - sprintf('User "%s" added', $newUser->getUsername()) + $this->get('translator')->trans('User "%username%" added', array('%username%' => $newUser->getUsername())) ); return $this->redirect($this->generateUrl('config').'#set6'); diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index a98b7b7a..b66ef538 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -111,7 +111,7 @@ to: 'à' website.com: 'website.com' Domain name: 'Nom de domaine' Creation date: 'Date de création' -dd/mm/yyyy: 'dd/mm/aaaa' +dd/mm/yyyy: 'jj/mm/aaaa' Clear: 'Effacer' Filter: 'Filtrer' website.com: "siteweb.com" @@ -162,6 +162,9 @@ Entry unstarred: "Article retiré des favoris" Entry archived: "Article marqué comme lu" Entry unarchived: "Article marqué comme non lu" Entry deleted: "Article supprimé" +Tagging rule deleted: "Règle supprimée" +Tagging rules updated: "Règles mis à jour" +User "%username%" added: 'Utilisateur "%username%" ajouté' # Entry Mark as read: 'Marquer comme lu' -- cgit v1.2.3 From 0c6845a98f050d0cfe8905d814a33407be53830e Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 12 Feb 2016 12:01:02 +0100 Subject: Add env=prod for server:run on install --- src/Wallabag/CoreBundle/Command/InstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index 69fb0a6f..b3e20ceb 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php @@ -56,7 +56,7 @@ class InstallCommand extends ContainerAwareCommand ; $output->writeln('Wallabag has been successfully installed.'); - $output->writeln('Just execute `php bin/console server:run` for using wallabag: http://localhost:8000'); + $output->writeln('Just execute `php bin/console server:run --env=prod` for using wallabag: http://localhost:8000'); } protected function checkRequirements() -- cgit v1.2.3 From 9856805540843e32b65e2893ea870b6b2e2ba6d0 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 12 Feb 2016 12:24:30 +0100 Subject: CS --- src/Wallabag/CoreBundle/Controller/ConfigController.php | 5 +++-- src/Wallabag/CoreBundle/Form/Type/NewUserType.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index e7fb5ad0..6eb621d8 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -5,6 +5,7 @@ namespace Wallabag\CoreBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\JsonResponse; +use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\TaggingRule; @@ -172,7 +173,7 @@ class ConfigController extends Controller * * @Route("/generate-token", name="generate_token") * - * @return JsonResponse + * @return RedirectResponse|JsonResponse */ public function generateTokenAction(Request $request) { @@ -202,7 +203,7 @@ class ConfigController extends Controller * * @Route("/tagging-rule/delete/{id}", requirements={"id" = "\d+"}, name="delete_tagging_rule") * - * @return \Symfony\Component\HttpFoundation\RedirectResponse + * @return RedirectResponse */ public function deleteTaggingRuleAction(TaggingRule $rule) { diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index d8bde17e..6eb0e63f 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php @@ -21,7 +21,7 @@ class NewUserType extends AbstractType ->add('plainPassword', RepeatedType::class, array( 'type' => PasswordType::class, 'invalid_message' => 'The password fields must match', - 'first_options' => array('label' => 'Password'), + 'first_options' => array('label' => 'Password'), 'second_options' => array('label' => 'Repeat new password'), 'constraints' => array( new Constraints\Length(array( -- cgit v1.2.3 From daa2b7e7c3e7315d9ebab9d86ee8f158bc17d4b1 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 12 Feb 2016 16:58:30 +0100 Subject: More translations --- .../Resources/translations/messages.fr.yml | 13 +++++++ .../Resources/views/_bookmarklet.html.twig | 2 +- .../views/themes/baggy/Entry/new_form.html.twig | 17 +++++---- .../views/themes/baggy/Static/howto.html.twig | 2 +- .../views/themes/baggy/Tag/new_form.html.twig | 17 +++++---- .../views/themes/material/Entry/entry.html.twig | 40 +++++++++++++++++++--- .../views/themes/material/Entry/new_form.html.twig | 15 ++++---- .../views/themes/material/Static/howto.html.twig | 6 +--- .../views/themes/material/Tag/new_form.html.twig | 15 ++++---- 9 files changed, 81 insertions(+), 46 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index b66ef538..16e8fe09 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -27,6 +27,7 @@ Search: 'Rechercher' Filter entries: 'Filtrer les articles' Enter your search here: 'Saisissez votre terme de recherche' Save new entry: 'Sauvegarder un nouvel article' +Export: Exporter # Config screen Settings: 'Paramètres' @@ -52,6 +53,7 @@ Old password: 'Mot de passe actuel' New password: 'Nouveau mot de passe' Repeat new password: 'Confirmez votre nouveau mot de passe' Username: "Nom d'utilisateur" +Two factor authentication: Double authentification # Tagging rules Tagging rules: "Règles de tag automatiques" @@ -83,6 +85,7 @@ One rule and another: "Une règle et l'autre" The domain name of the entry: "Le nom de domaine de l'article" "Tests that a subject is matches a search (case-insensitive).
Example: title matches \"football\"": "Teste si un sujet correspond à une recherche (non sensible à la casse).
Exemple : title matches \"football\"" Rule: "Règle" +FAQ: "FAQ" # Entries 'estimated reading time': 'durée de lecture' @@ -98,6 +101,10 @@ Edit an entry: "Éditer un article" Title: "Titre" Is public: "Public" +# tag +Tags: Tags +"{0} There is no tag.|{1} There is one tag.|]1,Inf[ There are %count% tags.": "{0} Il n'y a pas de tag.|{1} IL y a un tag.|]1,Inf[ Il y a %count% tags." + # Filters Filters: 'Filtres' Status: 'Statut' @@ -177,6 +184,8 @@ Download: 'Télécharger' Does this article appear wrong?: "Est-ce que cet article s'affiche mal ?" Problems?: 'Un problème ?' Edit title: "Modifier le titre" +Reload content: Recharger le contenu +Tag added: Tag ajouté # Import Welcome on wallabag importer. Please select your previous service that you want to migrate.: "Bienvenue dans l'outil de migration de wallabag. Choisissez ci-dessous le service depuis lequel vous souhaitez migrer." @@ -193,8 +202,12 @@ Please select your wallabag export and click on the below button to upload and i File: "Fichier" Upload file: "Importer le fichier" Import contents: "Importer les contenus" +Import: "Importer" +Import > Wallabag v1: "Importer > Wallabag v1" +Import > Wallabag v2: "Importer > Wallabag v2" # Quickstart +Quickstart: Pour bien débuter Welcome on wallabag!: "Bienvenue sur wallabag !" We'll accompany you to visit wallabag and show you some features which can interess you.: "Nous allons vous accompagner pour vous faire faire le tour de la maison et vous présenter quelques fonctionnalités qui pourraient vous intéresser pour vous approprier cet outil." Follow us!: "Suivez-nous !" diff --git a/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig index c8fb5612..966a84db 100644 --- a/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig @@ -1 +1 @@ -{% trans %}bag it!{% endtrans %} +bag it! diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig index d182d552..fa0a9f53 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/new_form.html.twig @@ -1,15 +1,14 @@
+ {% if form_errors(form) %} + {{ form_errors(form) }} + {% endif %} - {% if form_errors(form) %} - {{ form_errors(form) }} - {% endif %} + {% if form_errors(form.url) %} + {{ form_errors(form.url) }} + {% endif %} - {% if form_errors(form.url) %} - {{ form_errors(form.url) }} - {% endif %} - - {{ form_label(form.url) }} - {{ form_widget(form.url) }} + {{ form_label(form.url) }} + {{ form_widget(form.url) }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Static/howto.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Static/howto.html.twig index 6a320692..e32264f3 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Static/howto.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Static/howto.html.twig @@ -16,7 +16,7 @@

{% trans %}Mobile Apps{% endtrans %}

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/new_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/new_form.html.twig index 0b5a530d..ade7f56d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/new_form.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/new_form.html.twig @@ -1,15 +1,14 @@
+ {% if form_errors(form) %} + {{ form_errors(form) }} + {% endif %} - {% if form_errors(form) %} - {{ form_errors(form) }} - {% endif %} + {% if form_errors(form.label) %} + {{ form_errors(form.label) }} + {% endif %} - {% if form_errors(form.label) %} - {{ form_errors(form.label) }} - {% endif %} - - {{ form_widget(form.label, { 'attr': {'autocomplete': 'off'} }) }} - {{ form_widget(form.save, { 'attr': {'class': 'btn waves-effect waves-light'}, 'label': 'add tag' }) }} + {{ form_widget(form.label, { 'attr': {'autocomplete': 'off'} }) }} + {{ form_widget(form.save, { 'attr': {'class': 'btn waves-effect waves-light'}, 'label': 'add tag' }) }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 6f8c3674..7dea1b7f 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig @@ -97,11 +97,41 @@
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig index 2de53106..f1e56412 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig @@ -1,14 +1,13 @@
+ {% if form_errors(form) %} + {{ form_errors(form) }} + {% endif %} - {% if form_errors(form) %} - {{ form_errors(form) }} - {% endif %} + {% if form_errors(form.url) %} + {{ form_errors(form.url) }} + {% endif %} - {% if form_errors(form.url) %} - {{ form_errors(form.url) }} - {% endif %} - - {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'http://website' | trans} }) }} + {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'http://website'} }) }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig index 63b51aaa..e2795409 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig @@ -18,12 +18,10 @@ - - - -
{% trans %}Drag & drop this link to your bookmarks bar:{% endtrans %} {% include 'WallabagCoreBundle::_bookmarklet.html.twig' %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/new_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/new_form.html.twig index 0534a4cc..79310307 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/new_form.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/new_form.html.twig @@ -1,14 +1,13 @@
+ {% if form_errors(form) %} + {{ form_errors(form) }} + {% endif %} - {% if form_errors(form) %} - {{ form_errors(form) }} - {% endif %} + {% if form_errors(form.label) %} + {{ form_errors(form.label) }} + {% endif %} - {% if form_errors(form.label) %} - {{ form_errors(form.label) }} - {% endif %} - - {{ form_widget(form.label, { 'attr': {'autocomplete': 'off'} }) }} + {{ form_widget(form.label, { 'attr': {'autocomplete': 'off'} }) }}
-- cgit v1.2.3 From 9e33bc9dfd9752f95cd335bb18bbf07734096554 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Mon, 15 Feb 2016 17:43:11 +0100 Subject: Typos --- src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml | 6 +++--- .../CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | 2 +- .../Resources/views/themes/material/Entry/entry.html.twig | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 16e8fe09..67750bee 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -103,7 +103,7 @@ Is public: "Public" # tag Tags: Tags -"{0} There is no tag.|{1} There is one tag.|]1,Inf[ There are %count% tags.": "{0} Il n'y a pas de tag.|{1} IL y a un tag.|]1,Inf[ Il y a %count% tags." +"{0} There is no tag.|{1} There is one tag.|]1,Inf[ There are %count% tags.": "{0} Il n'y a pas de tag.|{1} Il y a un tag.|]1,Inf[ Il y a %count% tags." # Filters Filters: 'Filtres' @@ -170,7 +170,7 @@ Entry archived: "Article marqué comme lu" Entry unarchived: "Article marqué comme non lu" Entry deleted: "Article supprimé" Tagging rule deleted: "Règle supprimée" -Tagging rules updated: "Règles mis à jour" +Tagging rules updated: "Règles mises à jour" User "%username%" added: 'Utilisateur "%username%" ajouté' # Entry @@ -184,7 +184,7 @@ Download: 'Télécharger' Does this article appear wrong?: "Est-ce que cet article s'affiche mal ?" Problems?: 'Un problème ?' Edit title: "Modifier le titre" -Reload content: Recharger le contenu +Re-fetch content: Recharger le contenu Tag added: Tag ajouté # Import diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index 27a88287..13443029 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig @@ -7,7 +7,7 @@