Skip to content

Commit 61bae05

Browse files
committed
feature #874 Replaced the "transchoice" filter by "trans" (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #874). Discussion ---------- Replaced the "transchoice" filter by "trans" Fixes #872. Commits ------- 6cba825 Replaced the \"transchoice\" filter by \"trans\"
2 parents 985cdb9 + 6cba825 commit 61bae05

22 files changed

+151
-148
lines changed

composer.lock

Lines changed: 129 additions & 126 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/blog/post_show.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</div>
3535

3636
<h3>
37-
<i class="fa fa-comments" aria-hidden="true"></i> {{ 'post.num_comments'|transchoice(post.comments|length) }}
37+
<i class="fa fa-comments" aria-hidden="true"></i> {{ 'post.num_comments'|trans({ 'count': post.comments|length }) }}
3838
</h3>
3939

4040
{% for comment in post.comments %}

translations/messages.bg.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
</trans-unit>
261261
<trans-unit id="post.num_comments">
262262
<source>post.num_comments</source>
263-
<target>%count% коментар|%count% коментари</target>
263+
<target>{count, plural, one {# коментар} other {# коментари}}</target>
264264
</trans-unit>
265265
<trans-unit id="post.commented_on">
266266
<source>post.commented_on</source>

translations/messages.ca.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
</trans-unit>
202202
<trans-unit id="post.num_comments">
203203
<source>post.num_comments</source>
204-
<target>%count% comentari|%count% comentaris</target>
204+
<target>{count, plural, one {# comentari} other {# comentaris}}</target>
205205
</trans-unit>
206206
<trans-unit id="post.commented_on">
207207
<source>post.commented_on</source>

translations/messages.cs.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
</trans-unit>
190190
<trans-unit id="post.num_comments">
191191
<source>post.num_comments</source>
192-
<target>%count% komentář|%count% komentáře|%count% komentářů</target>
192+
<target>{count, plural, one {# komentář} few {# komentáře} other {# komentářů}}</target>
193193
</trans-unit>
194194
<trans-unit id="post.commented_on">
195195
<source>post.commented_on</source>

translations/messages.de.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
</trans-unit>
210210
<trans-unit id="post.num_comments">
211211
<source>post.num_comments</source>
212-
<target>%count% Kommentar|%count% Kommentare</target>
212+
<target>{count, plural, one {# Kommentar} other {# Kommentare}}</target>
213213
</trans-unit>
214214
<trans-unit id="post.commented_on">
215215
<source>post.commented_on</source>
@@ -239,7 +239,7 @@
239239
<source>post.search_for</source>
240240
<target>Suchen nach...</target>
241241
</trans-unit>
242-
242+
243243
<trans-unit id="help.app_description">
244244
<source>help.app_description</source>
245245
<target><![CDATA[Das ist eine <strong>Demo Applikation</strong>, die mit dem Symfony Framework gebaut wurde um eine Empfehlung für die Entwicklung auszusprechen.]]></target>

translations/messages.en.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
</trans-unit>
307307
<trans-unit id="post.num_comments">
308308
<source>post.num_comments</source>
309-
<target>%count% comment|%count% comments</target>
309+
<target>{count, plural, one {# comment} other {# comments}}</target>
310310
</trans-unit>
311311
<trans-unit id="post.commented_on">
312312
<source>post.commented_on</source>

translations/messages.es.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
</trans-unit>
255255
<trans-unit id="post.num_comments">
256256
<source>post.num_comments</source>
257-
<target>%count% comentario|%count% comentarios</target>
257+
<target>{count, plural, one {# comentario} other {# comentarios}}</target>
258258
</trans-unit>
259259
<trans-unit id="post.commented_on">
260260
<source>post.commented_on</source>

translations/messages.fr.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
</trans-unit>
307307
<trans-unit id="post.num_comments">
308308
<source>post.num_comments</source>
309-
<target>%count% commentaire|%count% commentaires</target>
309+
<target>{count, plural, one {# commentaire} other {# commentaires}}</target>
310310
</trans-unit>
311311
<trans-unit id="post.commented_on">
312312
<source>post.commented_on</source>

translations/messages.hr.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
</trans-unit>
255255
<trans-unit id="post.num_comments">
256256
<source>post.num_comments</source>
257-
<target>%count% komentar|%count% komentara|%count% komentara|%count% komentara</target>
257+
<target>{count, plural, one {# komentar} few {# komentara} other {# komentara}}</target>
258258
</trans-unit>
259259
<trans-unit id="post.commented_on">
260260
<source>post.commented_on</source>

0 commit comments

Comments
 (0)