Translator.php
3 years ago
ValidationException.php
2 months ago
ValidatorFactory.php
3 years ago
index.php
3 years ago
Translator.php
18 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\Doctrine\Validator; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoetVendor\Symfony\Contracts\Translation\TranslatorTrait; |
| 9 | |
| 10 | class Translator implements \MailPoetVendor\Symfony\Contracts\Translation\TranslatorInterface { |
| 11 | |
| 12 | use TranslatorTrait; |
| 13 | |
| 14 | public function transChoice($id, $number, array $parameters = [], $domain = null, $locale = null) { |
| 15 | return $this->trans($id, ['%count%' => $number] + $parameters, $domain, $locale); |
| 16 | } |
| 17 | } |
| 18 |