Skip to content

Commit

Permalink
Updates translated word for German for better illustration of usage
Browse files Browse the repository at this point in the history
  • Loading branch information
froschdesign committed Mar 17, 2020
1 parent 3b735e7 commit a68259f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/book/view-helpers/translate-plural.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ echo $this->translatePlural('car', 'cars', 4); // 'Autos'
The text domain defines the domain of the translation.

```php fct_label="Invoke Usage"
echo $this->translatePlural('monitor', 'monitors', 1, 'customDomain'); // 'Monitor'
echo $this->translatePlural('monitor', 'monitors', 1, 'customDomain'); // 'Bildschirm'
```

```php fct_label="Setter Usage"
$this->plugin('currencyFormat')->setTranslatorTextDomain('customDomain');

echo $this->translatePlural('monitor', 'monitors', 1); // 'Monitor'
echo $this->translatePlural('monitor', 'monitors', 1); // 'Bildschirm'
```

(The above example assumes that the environment locale is set to `de_DE`.)
Expand Down

0 comments on commit a68259f

Please sign in to comment.