Skip to content
Browse files

Fixed example code.

  • Loading branch information...
1 parent 3d909f1 commit bc1c1fd97e1dd2735ae5b774e9c2427a74a47364 @clemens-tolboom clemens-tolboom committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -10,12 +10,12 @@ translated strings from these including support for pluralization.
$translator = new Translator('fr_FR', new MessageSelector());
$translator->setFallbackLocale('fr');
- $translator->addLoader('array', return new ArrayLoader());
+ $translator->addLoader('array', new ArrayLoader());
$translator->addResource('array', array(
'Hello World!' => 'Bonjour',
), 'fr');
- $translator->trans('Hello World!');
+ echo $translator->trans('Hello World!') . "\n";
Resources
---------

0 comments on commit bc1c1fd

Please sign in to comment.
Something went wrong with that request. Please try again.