Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/docs' into develop
Browse files Browse the repository at this point in the history
Forward port #86
Forward port #87
  • Loading branch information
weierophinney committed Apr 25, 2018
2 parents e6b095c + da49601 commit 8fc3d0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion docs/book/view-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ The `xgettext` utility can be used to compile `*.po` files from PHP source files
translate view helper.

```bash
$ xgettext --language=php --add-location --keyword=translate my-view-file.phtml
$ xgettext --language=php --add-location --keyword=translate --keyword=translatePlural:1,2 my-view-file.phtml
```

See the [Gettext Wikipedia page](http://en.wikipedia.org/wiki/Gettext) for more information.
Expand Down Expand Up @@ -489,6 +489,17 @@ where:
`en_US`). If unset, it will use the default locale (return value of
`Locale::getDefault()`).

### Gettext

The `xgettext` utility can be used to compile `*.po` files from PHP source files containing the
translate view helper.

```bash
$ xgettext --language=php --add-location --keyword=translate --keyword=translatePlural:1,2 my-view-file.phtml
```

See the [Gettext Wikipedia page](http://en.wikipedia.org/wiki/Gettext) for more information.

### Public Methods

Public methods for setting a `Zend\I18n\Translator\Translator` and a default
Expand Down
2 changes: 1 addition & 1 deletion src/Translator/TranslatorServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
* Proxies to `__invoke()`.
*
* @param ServiceLocatorInterface $serviceLocator
* @returns Translator
* @return Translator
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
Expand Down

0 comments on commit 8fc3d0e

Please sign in to comment.