feature #29286 [WebProfilerBundle] Enable translation filters (ro0NL)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[WebProfilerBundle] Enable translation filters

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Enable filters in the translation panel:

![image](https://user-images.githubusercontent.com/1047696/48918835-724a3500-ee8f-11e8-9d1b-6d464314fe2a.png)

![image](https://user-images.githubusercontent.com/1047696/48918876-b806fd80-ee8f-11e8-8d4d-1f3fa81dd9ce.png)

Commits
-------

9ae2bb45b2 [WebProfilerBundle] Enable translation filters
This commit is contained in:
Nicolas Grekas 2018-12-13 15:06:49 +01:00
commit f2590d196f

View File

@ -179,16 +179,18 @@
</div>
</div>
<script>Sfjs.createFilters();</script>
{% endblock messages %}
{% endblock %}
{% macro render_table(messages) %}
<table>
<table data-filters>
<thead>
<tr>
<th>Locale</th>
<th>Domain</th>
<th data-filter="locale">Locale</th>
<th data-filter="domain">Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
@ -196,7 +198,7 @@
</thead>
<tbody>
{% for message in messages %}
<tr>
<tr data-filter-locale="{{ message.locale }}" data-filter-domain="{{ message.domain }}">
<td class="font-normal text-small nowrap">{{ message.locale }}</td>
<td class="font-normal text-small text-bold nowrap">{{ message.domain }}</td>
<td class="font-normal text-small nowrap">{{ message.count }}</td>