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 `` --- .../views/themes/material/Config/index.html.twig | 163 +++++++++------------ .../views/themes/material/Entry/edit.html.twig | 16 +- .../views/themes/material/Entry/entries.html.twig | 65 ++++---- .../views/themes/material/Entry/entries.xml.twig | 4 +- .../views/themes/material/Entry/entry.html.twig | 57 ++++--- .../views/themes/material/Entry/new.html.twig | 2 +- .../views/themes/material/Entry/new_form.html.twig | 4 +- .../views/themes/material/Static/about.html.twig | 50 +++---- .../views/themes/material/Static/howto.html.twig | 36 ++--- .../themes/material/Static/quickstart.html.twig | 79 +++++----- .../views/themes/material/Tag/new_form.html.twig | 2 +- .../views/themes/material/Tag/tags.html.twig | 4 +- .../views/themes/material/layout.html.twig | 119 ++++++++++----- 13 files changed, 313 insertions(+), 288 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 2b0b0828..698219b9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig @@ -1,6 +1,6 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{% trans %}config{% endtrans %}{% endblock %} +{% block title %}{{ 'config.page_title'|trans }}{% endblock %} {% block content %} @@ -11,13 +11,13 @@
@@ -28,9 +28,9 @@
+ {{ form_label(form.config.theme) }} {{ form_errors(form.config.theme) }} {{ form_widget(form.config.theme) }} -
@@ -59,10 +59,8 @@
- - + {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.config) }} @@ -72,33 +70,37 @@
- {% trans %}RSS feeds provided by wallabag allow you to read your saved articles with your favourite RSS reader. You need to generate a token first.{% endtrans %} + {{ 'config.form_rss.description'|trans }}
- +
{% if rss.token %} {{ rss.token }} {% else %} - {% trans %}No token{% endtrans %} + {{ 'config.form_rss.no_token'|trans }} {% endif %} - – {% if rss.token %}{% trans %}Reset your token{% endtrans %}{% else %}{% trans %}Create your token{% endtrans %}{% endif %} + – + {% if rss.token %} + {{ 'config.form_rss.token_reset'|trans }} + {% else %} + {{ 'config.form_rss.token_create'|trans }} + {% endif %}
{% if rss.token %}
{% endif %} @@ -111,11 +113,8 @@ - - - + {{ form_widget(form.rss.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.rss) }} @@ -142,7 +141,7 @@ {% if twofactor_auth %}
- {% trans %}Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion{% endtrans %} + {{ 'config.form_user.two_factor_description'|trans }}
@@ -155,11 +154,8 @@ {% endif %} - - - + {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.user) }} @@ -191,11 +187,8 @@ - - - + {{ form_widget(form.pwd.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} + {{ form_rest(form.pwd) }} @@ -205,8 +198,11 @@