Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed example code.

  • Loading branch information...
commit bc1c1fd97e1dd2735ae5b774e9c2427a74a47364 1 parent 3d909f1
@clemens-tolboom clemens-tolboom authored
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
---------
Please sign in to comment.
Something went wrong with that request. Please try again.