Exemple #1
0
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->multiLocale = $options['multi_locale'];
     $this->multiLocale and $this->availableLocales = $options['available_locales'];
     $this->detectClientLocale = $options['detect_client_locale'];
     $this->defaultLocale = $this->currentLocale = $options['default_locale'];
     $this->localePath = $options['locale_path'];
     $this->options = $options;
     $this->loadLocale($this->defaultLocale);
     $this->undefinedStringsLogFile = storagePath($options['undefined_strings_log']);
     is_file($this->undefinedStringsLogFile) and $this->undefinedStrings = (include $this->undefinedStringsLogFile);
     $this->reset();
 }
Exemple #2
0
 protected function replacePlaceholders($translation, $placeholders = null)
 {
     return parent::replacePlaceholders($translation, $placeholders);
 }