Skip to content

Commit

Permalink
feature #29286 [WebProfilerBundle] Enable translation filters (ro0NL)
Browse files Browse the repository at this point in the history
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
-------

9ae2bb4 [WebProfilerBundle] Enable translation filters
  • Loading branch information
nicolas-grekas committed Dec 13, 2018
2 parents 1e0165b + 9ae2bb4 commit f2590d1
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -179,24 +179,26 @@
</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>
</tr>
</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>
Expand Down

0 comments on commit f2590d1

Please sign in to comment.