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 `` --- .../Resources/views/Import/index.html.twig | 7 +++--- .../Resources/views/Pocket/index.html.twig | 27 ++++++++++++---------- .../Resources/views/WallabagV1/index.html.twig | 20 ++++++++-------- .../Resources/views/WallabagV2/index.html.twig | 3 ++- 4 files changed, 32 insertions(+), 25 deletions(-) (limited to 'src/Wallabag/ImportBundle/Resources') diff --git a/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig index 8c300624..aebbfa20 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig @@ -1,17 +1,18 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{% trans %}Import{% endtrans %}{% endblock %} + +{% block title %}{{ 'import.page_title'|trans }}{% endblock %} {% block content %}
- {% trans %}Welcome to wallabag importer. Please select your previous service that you want to migrate.{% endtrans %} + {{ 'import.page_description'|trans }} diff --git a/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig index 3365fc6a..401dbd33 100644 --- a/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig @@ -1,5 +1,6 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{% trans %}Import > Pocket{% endtrans %}{% endblock %} + +{% block title %}{{ 'import.pocket.page_title'|trans }}{% endblock %} {% block content %}
@@ -7,27 +8,29 @@
{% if not has_consumer_key %}
- {% trans %}Pocket import isn't configured.{% endtrans %} + {{ 'import.pocket.config_missing.description'|trans }} + {% if is_granted('ROLE_SUPER_ADMIN') %} - {% trans with {'%keyurls%': '', '%keyurle%':''} %}You need to define %keyurls% a pocket_consumer_key %keyurle%.{% endtrans %} + {{ 'import.pocket.config_missing.admin_message'|trans({'%keyurls%': '', '%keyurle%':''})|raw }} {% else %} - {% trans %}Your server admin needs to define an API Key for Pocket.{% endtrans %} + {{ 'import.pocket.config_missing.user_message'|trans }} {% endif %}
{% endif %}
{{ import.description|trans }}
-

{% trans %}You can import your data from your Pocket account. You just have to click on the below button and authorize the application to connect to getpocket.com.{% endtrans %}

+

{{ 'import.pocket.authorize_message'|trans }}

+
-
-
-
{% trans %}Mark all as read ?{% endtrans %}
- {{ form_widget(form.read) }} - +
+
+
{{ 'import.form.mark_as_read_title'|trans }}
+ {{ form_widget(form.mark_as_read) }} + {{ form_label(form.mark_as_read) }} +
-
diff --git a/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig index a418ed1c..13e24c8c 100644 --- a/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/WallabagV1/index.html.twig @@ -1,5 +1,6 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{% trans %}Import > Wallabag v1{% endtrans %}{% endblock %} + +{% block title %}{{ 'import.wallabag_v1.page_title'|trans }}{% endblock %} {% block content %}
@@ -7,7 +8,8 @@
{{ import.description|trans }}
-

{% trans %}Please select your wallabag export and click on the below button to upload and import it.{% endtrans %}

+

{{ 'import.wallabag_v1.how_to'|trans }}

+
{{ form_start(form, {'method': 'POST'}) }} {{ form_errors(form) }} @@ -15,7 +17,7 @@
{{ form_errors(form.file) }}
- {% trans %}File{% endtrans %} + {{ form.file.vars.label|trans }} {{ form_widget(form.file) }}
@@ -23,15 +25,15 @@
-
{% trans %}Mark all as read ?{% endtrans %}
+
{{ 'import.form.mark_as_read_title'|trans }}
{{ form_widget(form.mark_as_read) }} - + {{ form_label(form.mark_as_read) }}
- - + + {{ form_widget(form.save, { 'attr': {'class': 'btn waves-effect waves-light'} }) }} + + {{ form_rest(form) }}
diff --git a/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig index 78fe67e4..c2905fc6 100644 --- a/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig +++ b/src/Wallabag/ImportBundle/Resources/views/WallabagV2/index.html.twig @@ -1,2 +1,3 @@ {% extends "WallabagImportBundle:WallabagV1:index.html.twig" %} -{% block title %}{% trans %}Import > Wallabag v2{% endtrans %}{% endblock %} + +{% block title %}{{ 'import.wallabag_v2.page_title'|trans }}{% endblock %} -- cgit v1.2.3