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 39fcccf

Browse filesBrowse files
committed
Revert change made in #28523
1 parent 21c115c commit 39fcccf
Copy full SHA for 39fcccf

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎src/Symfony/Bridge/Twig/Extension/TranslationExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Extension/TranslationExtension.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class TranslationExtension extends AbstractExtension
3434
getLocale as private;
3535
setLocale as private;
3636
trans as private doTrans;
37-
transChoice as private doTransChoice;
3837
}
3938

4039
private $translator;
@@ -108,7 +107,7 @@ public function trans($message, array $arguments = array(), $domain = null, $loc
108107
public function transchoice($message, $count, array $arguments = array(), $domain = null, $locale = null)
109108
{
110109
if (null === $this->translator) {
111-
return $this->doTransChoice($message, $count, array_merge(array('%count%' => $count), $arguments), $domain, $locale);
110+
return strtr($message, $arguments);
112111
}
113112

114113
return $this->translator->transChoice($message, $count, array_merge(array('%count%' => $count), $arguments), $domain, $locale);

0 commit comments

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