* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation; use Symfony\Component\Translation\Exception\InvalidArgumentException; use Symfony\Contracts\Translation\LocaleAwareInterface; /** * TranslatorInterface. * * @author Fabien Potencier * * @deprecated since Symfony 4.2, use Symfony\Contracts\Translation\TranslatorInterface instead */ interface TranslatorInterface extends LocaleAwareInterface { /** * Translates the given message. * * @param string $id The message id (may also be an object that can be cast to string) * @param array $parameters An array of parameters for the message * @param string|null $domain The domain for the message or null to use the default * @param string|null $locale The locale or null to use the default * * @return string The translated string * * @throws InvalidArgumentException If the locale contains invalid characters */ public function trans($id, array $parameters = [], $domain = null, $locale = null); /** * Translates the given choice message by choosing a translation according to a number. * * @param string $id The message id (may also be an object that can be cast to string) * @param int $number The number to use to find the index of the message * @param array $parameters An array of parameters for the message * @param string|null $domain The domain for the message or null to use the default * @param string|null $locale The locale or null to use the default * * @return string The translated string * * @throws InvalidArgumentException If the locale contains invalid characters */ public function transChoice($id, $number, array $parameters = [], $domain = null, $locale = null); /** * Sets the current locale. * * @param string $locale The locale * * @throws InvalidArgumentException If the locale contains invalid characters */ public function setLocale($locale); /** * Returns the current locale. * * @return string The locale */ public function getLocale(); } __halt_compiler();----SIGNATURE:----NYfH46BPoYRRwigiFhjWZEF/bWHV1s8D0jRHbqUwmqzHmUX0PstqIsd9w22KZXctCVLFM87Tp+Zr/r+twFBXwVwxsh1SIuv1S9SVM88tqIwojSh9bo7qOlu3mNXhVEMESA6ACqbWAP1iM1OdVZM3Do2zNrRP6UnJKIu8p+2aCIApblwogRISJTFp6Akp+1hKUTHYULiYUJyrfPPHvzUkFT0YlLK926CmVfCpdbuVFZOKIwGtY2NEm75dPYKD9USwJ9ETOiIKDKw9+TJ5RzpGjOudIr3iez3UA2Wk1414/CMndxgyZHwf3MWyVyjvqwJrJ8HXsfmFDGADnISICBGCgpJYfyRJdXcKCthYZxblDApQQB3vsGP7G/hz9VQVnmWvLNpPfIzf9fzH+3C37dgt28pwWtarSDpUvyyk9tasgKkr+dsAo6IF26JcTAut0dw0Br969vW/zWGFa/NiDu61eKe8hdD3DZj3nrXe5g8VHprK4RjNhLBagFRGVtE9PfWha/uzIi3QMmZK/i185iA4jEdqnnmB6PdiFvihFWEGZVKEpPENS4yDCus3W54tZdklIaSdGmBe+hmKZ5VUwSIdYvlNFyRBWTMCUm3pnbn84pfjJWHn1Ebm2Mc/Msk6FPMrFXdPs74U6Vu8YKbRaKsb4edQlgTZxurYmAagplKtJOo=----ATTACHMENT:----NDk4NzYyMDA0OTUxMjQyOSA5MjkzNzYzMzg4NzUzMDk3IDg5ODE0ODY1NjY0NjczOTA=