Symfony\Component\Translation\TranslatorInterface
TranslatorInterface.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface TranslatorInterface
{
- // methods
- public string trans()
- public string transChoice()
- public void setLocale()
- public string getLocale()
Methods
public
- getLocale() — Returns the current locale.
- setLocale() — Sets the current locale.
- trans() — Translates the given message.
- transChoice() — Translates the given choice message by choosing a translation according to a number.