Chris@0
|
1 {#
|
Chris@0
|
2 /**
|
Chris@0
|
3 * @file
|
Chris@0
|
4 * Default theme implementation for displaying translation status information.
|
Chris@0
|
5 *
|
Chris@0
|
6 * Displays translation status information per language.
|
Chris@0
|
7 *
|
Chris@0
|
8 * Available variables:
|
Chris@0
|
9 * - modules: A list of modules names that have available translation updates.
|
Chris@0
|
10 * - updates: A list of available translation updates.
|
Chris@0
|
11 * - not_found: A list of modules missing translation updates.
|
Chris@0
|
12 *
|
Chris@0
|
13 * @see template_preprocess_locale_translation_update_info()
|
Chris@0
|
14 *
|
Chris@0
|
15 * @ingroup themeable
|
Chris@0
|
16 */
|
Chris@0
|
17 #}
|
Chris@0
|
18 <div class="locale-translation-update__wrapper" tabindex="0" role="button">
|
Chris@0
|
19 <span class="locale-translation-update__prefix visually-hidden">Show description</span>
|
Chris@0
|
20 {% if modules %}
|
Chris@0
|
21 {% set module_list = modules|safe_join(', ') %}
|
Chris@0
|
22 <span class="locale-translation-update__message">{% trans %}Updates for: {{ module_list }}{% endtrans %}</span>
|
Chris@0
|
23 {% elseif not_found %}
|
Chris@0
|
24 <span class="locale-translation-update__message">
|
Chris@0
|
25 {%- trans -%}
|
Chris@0
|
26 Missing translations for one project
|
Chris@0
|
27 {%- plural not_found|length -%}
|
Chris@0
|
28 Missing translations for @count projects
|
Chris@0
|
29 {%- endtrans -%}
|
Chris@0
|
30 </span>
|
Chris@0
|
31 {% endif %}
|
Chris@0
|
32 {% if updates or not_found %}
|
Chris@0
|
33 <div class="locale-translation-update__details">
|
Chris@0
|
34 {% if updates %}
|
Chris@0
|
35 <ul>
|
Chris@0
|
36 {% for update in updates %}
|
Chris@0
|
37 <li>{{ update.name }} ({{ update.timestamp|format_date('html_date') }})</li>
|
Chris@0
|
38 {% endfor %}
|
Chris@0
|
39 </ul>
|
Chris@0
|
40 {% endif %}
|
Chris@0
|
41 {% if not_found %}
|
Chris@0
|
42 {#
|
Chris@0
|
43 Prefix the missing updates list if there is an available updates lists
|
Chris@0
|
44 before it.
|
Chris@0
|
45 #}
|
Chris@0
|
46 {% if updates %}
|
Chris@0
|
47 {{ 'Missing translations for:'|t }}
|
Chris@0
|
48 {% endif %}
|
Chris@0
|
49 {% if not_found %}
|
Chris@0
|
50 <ul>
|
Chris@0
|
51 {% for update in not_found %}
|
Chris@0
|
52 <li>{{ update.name }} ({{ update.version|default('no version'|t) }}). {{ update.info }}</li>
|
Chris@0
|
53 {% endfor %}
|
Chris@0
|
54 </ul>
|
Chris@0
|
55 {% endif %}
|
Chris@0
|
56 {% endif %}
|
Chris@0
|
57 </div>
|
Chris@0
|
58 {% endif %}
|
Chris@0
|
59 </div>
|