PHP Classes

File: vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php   Download  
File: vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 1,035 bytes
 

Contents

Class file image Download
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)
)
?>