1
2
3
4
5
6
7
8
9
10
11
    public function init()
    {
      parent::init();

      // translation handler (change language)
      if($this->dataRecord->hasExtension('Translatable'))
      {
        i18n::set_locale($this->dataRecord->Locale);                            // i18n::set_locale('de_DE');
        setlocale(LC_TIME, $this->dataRecord->Locale . ".utf8");
      }
    }