From 0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 9 Mar 2016 08:59:08 +0100 Subject: Convert english translation file - convert english translation to translate key - remove baggy template for login (never used since user isn't logged in and it'll use the default theme: material) - fix tests about text in response (now checking translation key instead of translated text) - remove all ugly `` --- .../themes/baggy/Authentication/form.html.twig | 32 ------------------- .../themes/baggy/Registration/register.html.twig | 20 ------------ .../baggy/Registration/register_content.html.twig | 37 ---------------------- .../themes/baggy/Resetting/checkEmail.html.twig | 17 ---------- .../views/themes/baggy/Resetting/request.html.twig | 20 ------------ .../baggy/Resetting/request_content.html.twig | 17 ---------- .../views/themes/baggy/Security/login.html.twig | 33 ------------------- .../Resources/views/themes/baggy/layout.html.twig | 16 ---------- 8 files changed, 192 deletions(-) delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Authentication/form.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register_content.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/checkEmail.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request_content.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig delete mode 100644 src/Wallabag/UserBundle/Resources/views/themes/baggy/layout.html.twig (limited to 'src/Wallabag/UserBundle/Resources/views/themes/baggy') diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Authentication/form.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Authentication/form.html.twig deleted file mode 100644 index 5bb91081..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Authentication/form.html.twig +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "WallabagUserBundle::layout.html.twig" %} - -{% block fos_user_content %} -
-
- {% for flashMessage in app.session.flashbag.get("two_factor") %} -

{{ flashMessage|trans }}

- {% endfor %} - -
- - -
- - {% if useTrustedOption %} -
- - -
- {% endif %} - -
- {% trans %}Cancel{% endtrans %} - -
-
- -
-{% endblock %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig deleted file mode 100644 index 2713bf45..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "WallabagCoreBundle::layout.html.twig" %} - -{% block title %}{% trans %}create an account{% endtrans %}{% endblock %} - -{% block body_class %}login{% endblock %} - -{% block menu %}{% endblock %} -{% block messages %}{% endblock %} - -{% block content %} - {{ form_start(form) }} -
-

{% trans %}create an account{% endtrans %}

- {% include "FOSUserBundle:Registration:register_content.html.twig" %} -
- -{% endblock %} - -{% block footer %} -{% endblock %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register_content.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register_content.html.twig deleted file mode 100644 index 41f94006..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register_content.html.twig +++ /dev/null @@ -1,37 +0,0 @@ -{% trans_default_domain 'FOSUserBundle' %} - -{{ form_widget(form._token) }} - -{% for flashMessage in app.session.flashbag.get('notice') %} -

{{ flashMessage }}

-{% endfor %} - -
- {{ form_errors(form.email) }} - {{ form_label(form.email) }} - {{ form_widget(form.email) }} -
- -
- {{ form_errors(form.username) }} - {{ form_label(form.username) }} - {{ form_widget(form.username) }} -
- -
- {{ form_errors(form.plainPassword.first) }} - {{ form_label(form.plainPassword.first) }} - {{ form_widget(form.plainPassword.first) }} -
- -
- {{ form_errors(form.plainPassword.second) }} - {{ form_label(form.plainPassword.second) }} - {{ form_widget(form.plainPassword.second) }} -
- - -
- - {% trans %}Login{% endtrans %} -
diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/checkEmail.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/checkEmail.html.twig deleted file mode 100644 index 056d65b5..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/checkEmail.html.twig +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "WallabagCoreBundle::layout.html.twig" %} - -{% block title %}{% trans %}Forgot password{% endtrans %}{% endblock %} - -{% block body_class %}login{% endblock %} - -{% block menu %}{% endblock %} - -{% block content %} -
-
-

{% trans %}Forgot password{% endtrans %}

- -

{{ 'An email has been sent to %email%. It contains a link you must click to reset your password.'|trans({'%email%': email}) }}

-
-
-{% endblock %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request.html.twig deleted file mode 100644 index 10094e83..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request.html.twig +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "WallabagCoreBundle::layout.html.twig" %} - -{% block title %}{% trans %}Forgot password{% endtrans %}{% endblock %} - -{% block body_class %}login{% endblock %} - -{% block menu %}{% endblock %} -{% block messages %}{% endblock %} - -{% block content %} -
-
-

{% trans %}Forgot password{% endtrans %}

- {% include "FOSUserBundle:Resetting:request_content.html.twig" %} -
-
-{% endblock %} - -{% block footer %} -{% endblock %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request_content.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request_content.html.twig deleted file mode 100644 index 1f8da8d7..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Resetting/request_content.html.twig +++ /dev/null @@ -1,17 +0,0 @@ -{% trans_default_domain 'FOSUserBundle' %} - -{% trans %}Enter your email address below and we'll send you password reset instructions.{% endtrans %} - -{% if invalid_username is defined %} -

{{ 'resetting.request.invalid_username'|trans({'%username%': invalid_username}) }}

-{% endif %} - -
- - -
- -
- - {% trans %}Login{% endtrans %} -
diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig deleted file mode 100644 index d52c3662..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Security/login.html.twig +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "FOSUserBundle::layout.html.twig" %} - -{% block fos_user_content %} -
-
-

{% trans %}Login to wallabag{% endtrans %}

- {% if error %} -
{{ error.message }}
- {% endif %} - - {% for flashMessage in app.session.flashbag.get('notice') %} -

{{ flashMessage }}

- {% endfor %} - -
- - -
- -
- - -
- - -
-
-{% endblock %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/layout.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/layout.html.twig deleted file mode 100644 index 60b321bf..00000000 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/layout.html.twig +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "WallabagCoreBundle::layout.html.twig" %} - -{% block title %}{% trans %}Welcome to wallabag!{% endtrans %}{% endblock %} - -{% block body_class %}login{% endblock %} - -{% block menu %}{% endblock %} -{% block messages %}{% endblock %} - -{% block content %} - {% block fos_user_content %} - {% endblock fos_user_content %} -{% endblock %} - -{% block footer %} -{% endblock %} -- cgit v1.2.3