8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51eac4b commit e4f3fd9Copy full SHA for e4f3fd9
src/Symfony/Component/Translation/README.md
@@ -10,12 +10,12 @@ translated strings from these including support for pluralization.
10
11
$translator = new Translator('fr_FR', new MessageSelector());
12
$translator->setFallbackLocale('fr');
13
- $translator->addLoader('array', return new ArrayLoader());
+ $translator->addLoader('array', new ArrayLoader());
14
$translator->addResource('array', array(
15
'Hello World!' => 'Bonjour',
16
), 'fr');
17
18
- $translator->trans('Hello World!');
+ echo $translator->trans('Hello World!') . "\n";
19
20
Resources
21
---------
0 commit comments