Symfony\Component\Translation\MessageCatalogueInterface
MessageCatalogueInterface.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface MessageCatalogueInterface
{
- // methods
- public string getLocale()
- public array getDomains()
- public array all()
- public void set()
- public Boolean has()
- public Boolean defines()
- public string get()
- public void replace()
- public void add()
- public void addCatalogue()
- public void addFallbackCatalogue()
- public MessageCatalogueInterface|null getFallbackCatalogue()
- public array getResources()
- public void addResource()
Methods
public
- add() — Adds translations for a given domain.
- addCatalogue() — Merges translations from the given Catalogue into the current one.
- addFallbackCatalogue() — Merges translations from the given Catalogue into the current one only when the translation does not exist.
- addResource() — Adds a resource for this collection.
- all() — Gets the messages within a given domain.
- defines() — Checks if a message has a translation (it does not take into account the fallback mechanism).
- get() — Gets a message translation.
- getDomains() — Gets the domains.
- getFallbackCatalogue() — Gets the fallback catalogue.
- getLocale() — Gets the catalogue locale.
- getResources() — Returns an array of resources loaded to build this collection.
- has() — Checks if a message has a translation.
- replace() — Sets translations for a given domain.
- set() — Sets a message translation.