* * 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:----Z7F/GsBDTTym+3c9Nl4zUnv+0Wpg1WJacL7pb1mnFbrypIkcgC0SkDkL5eNWruTJ25wNFviwbhWHGEBp2QQHizJDozWvBVFmJ4i8WPdGY0QGCQcq1pSqAGGGYIRTDp/Eld5t0nBPSdA7IFS8/lHJSkPMK9jdY71hAuAvoPRNxE74RUk9wjmA9Icpms2dsi7ZE4EkTNHb8Qz4Sw+YbO4FpZHugeHsuL7/scs7mNpY6IJwIqgnt/kGMJjM/P1g0qzDsaqyRTiLkAJ1Zy9zf8P1f1wEULjpi9sRbY1hVdnWyDKKkSg5QX91xTMOXRCl345oud9HSRiwzmfnHJeZZQgJDaPBAFJUpP9qINMSXCybYtCZs4szRecHCPyGXQ6Ow0NiD5wP3KOQFZWUvzObXVRBixzLQWrazLDGKXwlZZidafbUGvmFVJadKFolGRGNWFNArdG6XatphoigI9R/o/NBd3iKedy7+plcdM8dv6fycYozbMC22f38K/JyenpHQ2G7jFxBqgBXMbSglZEg/IN6YxoJepQVI9FtCfTjH2Pj1HgjpzaAZYbc1XcdxQuud1/FzToyJ/ku8ymlw2hiRwrkvUss0rBRiv4iyExMn+OXJVLnep2dd2N0KHYwTDZS4PAqWen2RqWLPaUzJYHy2Msfsc/W1ZaxCuFx90A/e68Zicw=----ATTACHMENT:----NzgyMzM1MjA0MzM4OTEyNCA2MTY1MjY2MTA2ODEyMjczIDcyNzE2MzM1ODk2Njg0NjI=