diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig index 06c27b4716..b37da94681 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig @@ -56,38 +56,9 @@ {% endblock %} {% block panel %} - {% if collector.messages is empty %} -

Translations

-
-

No translations have been called.

-
- {% else %} - {{ block('panelContent') }} - {% endif %} -{% endblock %} - -{% block panelContent %} -

Translation

-
- {{ collector.countDefines }} - Defined messages -
- -
- {{ collector.countFallbacks }} - Fallback messages -
- -
- {{ collector.countMissings }} - Missing messages -
- -
-
{{ collector.locale|default('-') }} Locale @@ -100,88 +71,94 @@

Messages

- {% block messages %} + {% if collector.messages is empty %} +
+

No translations have been called.

+
+ {% else %} + {% block messages %} - {# sort translation messages in groups #} - {% set messages_defined, messages_missing, messages_fallback = [], [], [] %} - {% for message in collector.messages %} - {% if message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED') %} - {% set messages_defined = messages_defined|merge([message]) %} - {% elseif message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING') %} - {% set messages_missing = messages_missing|merge([message]) %} - {% elseif message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %} - {% set messages_fallback = messages_fallback|merge([message]) %} - {% endif %} - {% endfor %} + {# sort translation messages in groups #} + {% set messages_defined, messages_missing, messages_fallback = [], [], [] %} + {% for message in collector.messages %} + {% if message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED') %} + {% set messages_defined = messages_defined|merge([message]) %} + {% elseif message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING') %} + {% set messages_missing = messages_missing|merge([message]) %} + {% elseif message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %} + {% set messages_fallback = messages_fallback|merge([message]) %} + {% endif %} + {% endfor %} -
-
-

Defined {{ collector.countDefines }}

+
+
+

Defined {{ collector.countDefines }}

-
-

- These messages are correctly translated into the given locale. -

+
+

+ These messages are correctly translated into the given locale. +

- {% if messages_defined is empty %} -
-

None of the used translation messages are defined for the given locale.

-
- {% else %} - {% block defined_messages %} - {{ helper.render_table(messages_defined) }} - {% endblock %} - {% endif %} + {% if messages_defined is empty %} +
+

None of the used translation messages are defined for the given locale.

+
+ {% else %} + {% block defined_messages %} + {{ helper.render_table(messages_defined) }} + {% endblock %} + {% endif %} +
+
+ +
+

Fallback {{ collector.countFallbacks }}

+ +
+

+ These messages are not available for the given locale + but Symfony found them in the fallback locale catalog. +

+ + {% if messages_fallback is empty %} +
+

No fallback translation messages were used.

+
+ {% else %} + {% block fallback_messages %} + {{ helper.render_table(messages_fallback) }} + {% endblock %} + {% endif %} +
+
+ +
+

Missing {{ collector.countMissings }}

+ +
+

+ These messages are not available for the given locale and cannot + be found in the fallback locales. Add them to the translation + catalogue to avoid Symfony outputting untranslated contents. +

+ + {% if messages_missing is empty %} +
+

There are no messages of this category.

+
+ {% else %} + {% block missing_messages %} + {{ helper.render_table(messages_missing) }} + {% endblock %} + {% endif %} +
-
-

Fallback {{ collector.countFallbacks }}

+ -
-

- These messages are not available for the given locale - but Symfony found them in the fallback locale catalog. -

- - {% if messages_fallback is empty %} -
-

No fallback translation messages were used.

-
- {% else %} - {% block fallback_messages %} - {{ helper.render_table(messages_fallback) }} - {% endblock %} - {% endif %} -
-
- -
-

Missing {{ collector.countMissings }}

- -
-

- These messages are not available for the given locale and cannot - be found in the fallback locales. Add them to the translation - catalogue to avoid Symfony outputting untranslated contents. -

- - {% if messages_missing is empty %} -
-

There are no messages of this category.

-
- {% else %} - {% block missing_messages %} - {{ helper.render_table(messages_missing) }} - {% endblock %} - {% endif %} -
-
-
- - - - {% endblock messages %} + {% endblock messages %} + {% endif %} {% endblock %}