getData(); } $file = (isset($options['file'])) ? $options['file'] : null; $locale = (isset($options['locale'])) ? $options['locale'] : null; if (file_exists($file) === false) { throw new \InvalidArgumentException( sprintf("Add translation method error: The translation file '%s' could not be found.", $file)); } if (Locale::isLocale($locale) === false) { throw new \InvalidArgumentException( sprintf("Add translation method error: '%s' is an invalid locale.", $locale)); } $this->_translate[$locale] = include($file); } return $this; } }