Skip to content

Commit

Permalink
Merge pull request #167 from MichaelHoste/patch-1
Browse files Browse the repository at this point in the history
Small typo in README
  • Loading branch information
oscarotero authored Feb 22, 2018
2 parents bda055a + fdaa31a commit 14252f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The benefits of using the functions provided by this library (`__()` instead `_(

* You are using the same functions, no matter whether the translations are provided by gettext extension or any other method.
* You can use variables easier because `sprintf` functionality is included. For example: `__('Hello %s', 'world')` instead `sprintf(_('Hello %s'), 'world')`.
* You can also use named placeholders if the second argument is an array. For example: `__('Hello %name%', ['%name' => 'world'])` instead of `strtr(_('Hello %name%'), ['%name%' => 'world'])`.
* You can also use named placeholders if the second argument is an array. For example: `__('Hello %name%', ['%name%' => 'world'])` instead of `strtr(_('Hello %name%'), ['%name%' => 'world'])`.

## Translation

Expand Down

0 comments on commit 14252f1

Please sign in to comment.