* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Translation\Provider; /** * Translations provider for keys not yet put in the right domain. * Equivalent to so-called main "messages" domain in the Symfony ecosystem. */ class OthersProvider extends AbstractProvider implements UseDefaultCatalogueInterface { /** * {@inheritdoc} */ public function getTranslationDomains() { return ['^messages*']; } /** * {@inheritdoc} */ public function getFilters() { return ['#^messages*#']; } /** * {@inheritdoc} */ public function getIdentifier() { return 'others'; } /** * {@inheritdoc} */ public function getDefaultResourceDirectory() { return $this->resourceDirectory . DIRECTORY_SEPARATOR . 'default'; } }