Classes List

Symfony\Component\Translation\Tests\fixtures\extractor\translation.html

 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
 10 
 11 
 12 
 13 
 14 
 15 
 16 
 17 
 18 
 19 
 20 
 21 
 22 
 23 
 24 
 25 
 26 
 27 
 28 
 29 
 30 
 31 
 32 
 33 
 34 
 35 
 36 
 37 
 38 
 39 
 40 
 41 
 42 
 43 
 44 
 45 
 46 
 47 
 48 
 49 
 50 
This template is used for translation message extraction tests <?php
echo $view['translator']->trans('single-quoted key'); ?> <?php
echo $view['translator']->trans('double-quoted key'); ?> <?php
echo $view['translator']->trans(<<<'EOF' heredoc key EOF
); ?> <?php
echo $view['translator']->trans(<<<'EOF' nowdoc key EOF
); ?> <?php
echo $view['translator']->trans(
    "double-quoted key with whitespace and escaped \$\n\" sequences"
); ?> <?php
echo $view['translator']->trans(
    'single-quoted key with whitespace and nonescaped \$\n\' sequences'
); ?> <?php
echo $view['translator']->trans(<<<EOF heredoc key with whitespace and escaped \$\n sequences EOF
); ?> <?php
echo $view['translator']->trans(<<<'EOF' nowdoc key with whitespace and nonescaped \$\n sequences EOF
); ?> <?php
echo $view['translator']->trans('single-quoted key with "quote mark at the end"'); ?> <?php
echo $view['translator']->transChoice(
    '{0} There is no apples|{1} There is one apple|]1,Inf[ There are %count% apples',
    10,
    array('%count%' => 10)
); ?> <?php
echo $view['translator']->trans('other-domain-test-no-params-short-array'array(), 'not_messages'); ?> <?php
echo $view['translator']->trans('other-domain-test-no-params-long-array'array(), 'not_messages'); ?> <?php
echo $view['translator']->trans('other-domain-test-params-short-array'array('foo' => 'bar'), 'not_messages'); ?> <?php
echo $view['translator']->trans('other-domain-test-params-long-array'array('foo' => 'bar'), 'not_messages'); ?> <?php
echo $view['translator']->transChoice('other-domain-test-trans-choice-short-array-%count%'10array('%count%' => 10), 'not_messages'); ?> <?php
echo $view['translator']->transChoice('other-domain-test-trans-choice-long-array-%count%'10array('%count%' => 10), 'not_messages'); ?> <?php
echo $view['translator']->trans('typecast'array('a' => (int) '123'), 'not_messages'); ?> <?php
echo $view['translator']->transChoice('msg1'10 + 1array(), 'not_messages'); ?> <?php
echo $view['translator']->transChoice('msg2'ceil(4.5), array(), 'not_messages'); ?>