* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Translation; use Symfony\Bundle\FrameworkBundle\Translation\Translator as BaseTranslator; /** * Replacement for the original Symfony FrameworkBundle translator */ class Translator extends BaseTranslator implements TranslatorInterface { use PrestaShopTranslatorTrait; use TranslatorLanguageTrait; /** * {@inheritdoc} */ public function addResource($format, $resource, $locale, $domain = null) { parent::addResource($format, $resource, $locale, $domain); parent::addResource('db', $domain . '.' . $locale . '.db', $locale, $domain); } }