You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
array('{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|trans(count=count) }}', 'There is 5 apples', array('count' => 5)),
140
-
array('{{ text|trans(count=5, arguments={\'%name%\': \'Symfony\'}) }}', 'There is 5 apples (Symfony)', array('text' => '{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%)')),
141
-
array('{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|trans({}, "messages", "fr", count) }}', 'There is 5 apples', array('count' => 5)),
142
-
);
139
+
['{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|trans(count=count) }}', 'There is 5 apples', ['count' => 5]],
140
+
['{{ text|trans(count=5, arguments={\'%name%\': \'Symfony\'}) }}', 'There is 5 apples (Symfony)', ['text' => '{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples (%name%)']],
141
+
['{{ "{0} There is no apples|{1} There is one apple|]1,Inf] There is %count% apples"|trans({}, "messages", "fr", count) }}', 'There is 5 apples', ['count' => 5]],
142
+
];
143
143
}
144
144
145
145
/**
146
146
* @group legacy
147
147
*/
148
148
publicfunctiongetTransChoiceTests()
149
149
{
150
-
returnarray(
150
+
return[
151
151
// trans tag
152
-
array('{% trans %}Hello{% endtrans %}', 'Hello'),
153
-
array('{% trans %}%name%{% endtrans %}', 'Symfony', array('name' => 'Symfony')),
152
+
['{% trans %}Hello{% endtrans %}', 'Hello'],
153
+
['{% trans %}%name%{% endtrans %}', 'Symfony', ['name' => 'Symfony']],
154
154
155
-
array('{% trans from elsewhere %}Hello{% endtrans %}', 'Hello'),
155
+
['{% trans from elsewhere %}Hello{% endtrans %}', 'Hello'],
0 commit comments