8573385a83
Conflicts: src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php src/Symfony/Component/ClassLoader/DebugClassLoader.php src/Symfony/Component/ClassLoader/UniversalClassLoader.php src/Symfony/Component/Console/Command/Command.php src/Symfony/Component/DependencyInjection/Definition.php src/Symfony/Component/DependencyInjection/DefinitionDecorator.php src/Symfony/Component/EventDispatcher/Event.php src/Symfony/Component/Filesystem/Exception/IOException.php src/Symfony/Component/HttpFoundation/File/File.php src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php src/Symfony/Component/HttpFoundation/Session/SessionInterface.php src/Symfony/Component/HttpFoundation/StreamedResponse.php src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php src/Symfony/Component/HttpKernel/HttpKernel.php src/Symfony/Component/HttpKernel/Kernel.php src/Symfony/Component/HttpKernel/KernelInterface.php src/Symfony/Component/HttpKernel/Log/LoggerInterface.php src/Symfony/Component/HttpKernel/Log/NullLogger.php src/Symfony/Component/Process/Process.php src/Symfony/Component/Routing/RequestContext.php src/Symfony/Component/Routing/Route.php src/Symfony/Component/Templating/EngineInterface.php src/Symfony/Component/Templating/PhpEngine.php src/Symfony/Component/Templating/TemplateNameParser.php src/Symfony/Component/Templating/TemplateReference.php src/Symfony/Component/Templating/TemplateReferenceInterface.php src/Symfony/Component/Translation/IdentityTranslator.php src/Symfony/Component/Translation/Translator.php src/Symfony/Component/Validator/ConstraintViolationInterface.php src/Symfony/Component/Validator/Constraints/False.php src/Symfony/Component/Validator/Constraints/FalseValidator.php src/Symfony/Component/Validator/Constraints/GroupSequence.php src/Symfony/Component/Validator/Constraints/Image.php src/Symfony/Component/Validator/Constraints/Null.php src/Symfony/Component/Validator/Constraints/NullValidator.php src/Symfony/Component/Validator/Constraints/True.php src/Symfony/Component/Validator/Constraints/TrueValidator.php src/Symfony/Component/Validator/ExecutionContextInterface.php src/Symfony/Component/Validator/ValidatorInterface.php
66 lines
2.1 KiB
PHP
66 lines
2.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Component\Translation;
|
|
|
|
/**
|
|
* TranslatorInterface.
|
|
*
|
|
* @author Fabien Potencier <fabien@symfony.com>
|
|
*/
|
|
interface TranslatorInterface
|
|
{
|
|
/**
|
|
* 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
|
|
*
|
|
* @throws \InvalidArgumentException If the locale contains invalid characters
|
|
*
|
|
* @return string The translated string
|
|
*/
|
|
public function trans($id, array $parameters = array(), $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 indice 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
|
|
*
|
|
* @throws \InvalidArgumentException If the locale contains invalid characters
|
|
*
|
|
* @return string The translated string
|
|
*/
|
|
public function transChoice($id, $number, array $parameters = array(), $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();
|
|
}
|