8000 Fixed example code. · symfony/symfony@e4f3fd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e4f3fd9

Browse files
Fixed example code.
1 parent 51eac4b commit e4f3fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Translation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ translated strings from these including support for pluralization.
1010

1111
$translator = new Translator('fr_FR', new MessageSelector());
1212
$translator->setFallbackLocale('fr');
13-
$translator->addLoader('array', return new ArrayLoader());
13+
$translator->addLoader('array', new ArrayLoader());
1414
$translator->addResource('array', array(
1515
'Hello World!' => 'Bonjour',
1616
), 'fr');
1717

18-
$translator->trans('Hello World!');
18+
echo $translator->trans('Hello World!') . "\n";
1919

2020
Resources
2121
---------

0 commit comments

Comments
 (0)
0