Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2590d1

Browse filesBrowse files
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 ------- 9ae2bb4 [WebProfilerBundle] Enable translation filters
2 parents 1e0165b + 9ae2bb4 commit f2590d1
Copy full SHA for f2590d1

File tree

1 file changed

+6
-4
lines changed
Filter options

1 file changed

+6
-4
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,24 +179,26 @@
179179
</div>
180180
</div>
181181

182+
<script>Sfjs.createFilters();</script>
183+
182184
{% endblock messages %}
183185

184186
{% endblock %}
185187

186188
{% macro render_table(messages) %}
187-
<table>
189+
<table data-filters>
188190
<thead>
189191
<tr>
190-
<th>Locale</th>
191-
<th>Domain</th>
192+
<th data-filter="locale">Locale</th>
193+
<th data-filter="domain">Domain</th>
192194
<th>Times used</th>
193195
<th>Message ID</th>
194196
<th>Message Preview</th>
195197
</tr>
196198
</thead>
197199
<tbody>
198200
{% for message in messages %}
199-
<tr>
201+
<tr data-filter-locale="{{ message.locale }}" data-filter-domain="{{ message.domain }}">
200202
<td class="font-normal text-small nowrap">{{ message.locale }}</td>
201203
<td class="font-normal text-small text-bold nowrap">{{ message.domain }}</td>
202204
<td class="font-normal text-small nowrap">{{ message.count }}</td>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.