/** * Prepare a file to be stored * * Translations plugin allows you to define a default domain that is not "default". * If the extract task finds a default-domain translation - redefine it as "whatever". * This is important because the filename of a pot file is used as the domain on import. * * @param string $domain * @param string $header * @param string $sentence * @return void */ protected function _store($domain, $header, $sentence) { if ($domain === 'default') { $domain = $this->_defaultDomain; } parent::_store($domain, $header, $sentence); }
public function __construct() { parent::__construct(); $this->path = APP::pluginPath('I18nJs'); }