diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-09 08:59:08 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-20 21:12:22 +0100 |
commit | 0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc (patch) | |
tree | 4cf8b97ed3c06def270e9172c7b17c5c86048585 /src/Wallabag/ImportBundle/Resources/views/Pocket | |
parent | d2b4f01d7435e8a8f99b15a2487916427c04e58d (diff) | |
download | wallabag-0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc.tar.gz wallabag-0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc.tar.zst wallabag-0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc.zip |
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 `<div class="hidden">{{ form_rest(form) }}</div>`
Diffstat (limited to 'src/Wallabag/ImportBundle/Resources/views/Pocket')
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig | 27 |
1 files changed, 15 insertions, 12 deletions
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 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | {% block title %}{% trans %}Import > Pocket{% endtrans %}{% endblock %} | 2 | |
3 | {% block title %}{{ 'import.pocket.page_title'|trans }}{% endblock %} | ||
3 | 4 | ||
4 | {% block content %} | 5 | {% block content %} |
5 | <div class="row"> | 6 | <div class="row"> |
@@ -7,27 +8,29 @@ | |||
7 | <div class="card-panel settings"> | 8 | <div class="card-panel settings"> |
8 | {% if not has_consumer_key %} | 9 | {% if not has_consumer_key %} |
9 | <div class="card-panel red darken-1"> | 10 | <div class="card-panel red darken-1"> |
10 | {% trans %}Pocket import isn't configured.{% endtrans %} | 11 | {{ 'import.pocket.config_missing.description'|trans }} |
12 | |||
11 | {% if is_granted('ROLE_SUPER_ADMIN') %} | 13 | {% if is_granted('ROLE_SUPER_ADMIN') %} |
12 | {% trans with {'%keyurls%': '<a href="' ~ path('craue_config_settings_modify') ~ '#set-import">', '%keyurle%':'</a>'} %}You need to define %keyurls% a pocket_consumer_key %keyurle%.{% endtrans %} | 14 | {{ 'import.pocket.config_missing.admin_message'|trans({'%keyurls%': '<a href="' ~ path('craue_config_settings_modify') ~ '#set-import">', '%keyurle%':'</a>'})|raw }} |
13 | {% else %} | 15 | {% else %} |
14 | {% trans %}Your server admin needs to define an API Key for Pocket.{% endtrans %} | 16 | {{ 'import.pocket.config_missing.user_message'|trans }} |
15 | {% endif %} | 17 | {% endif %} |
16 | </div> | 18 | </div> |
17 | {% endif %} | 19 | {% endif %} |
18 | 20 | ||
19 | <blockquote>{{ import.description|trans }}</blockquote> | 21 | <blockquote>{{ import.description|trans }}</blockquote> |
20 | <p>{% 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 %}</p> | 22 | <p>{{ 'import.pocket.authorize_message'|trans }}</p> |
23 | |||
21 | <form method="post" action="{{ path('import_pocket_auth') }}"> | 24 | <form method="post" action="{{ path('import_pocket_auth') }}"> |
22 | <div class="row"> | 25 | <div class="row"> |
23 | <div class="input-field col s6 with-checkbox"> | 26 | <div class="input-field col s6 with-checkbox"> |
24 | <h6>{% trans %}Mark all as read ?{% endtrans %}</h6> | 27 | <h6>{{ 'import.form.mark_as_read_title'|trans }}</h6> |
25 | {{ form_widget(form.read) }} | 28 | {{ form_widget(form.mark_as_read) }} |
26 | <label for="form_read">{% trans %}Mark all imported entries as read{% endtrans %}</label> | 29 | {{ form_label(form.mark_as_read) }} |
30 | </div> | ||
27 | </div> | 31 | </div> |
28 | </div> | ||
29 | <button class="btn waves-effect waves-light" type="submit" name="action"> | 32 | <button class="btn waves-effect waves-light" type="submit" name="action"> |
30 | {% trans %}Connect to Pocket and import data{% endtrans %} | 33 | {{ 'import.pocket.connect_to_pocket'|trans }} |
31 | </button> | 34 | </button> |
32 | </form> | 35 | </form> |
33 | </div> | 36 | </div> |