Search

I've created an extension for my German translation that sets the date format in the config.php. It doesn't translate month or day names though:

public function enable() {

  $this->_Parent->Configuration->set('lang', 'de', 'symphony');
  $this->_Parent->Configuration->set('date_format', 'd.m.Y', 'region');
  return $this->_Parent->saveConfig();    

}

public function disable() {

  $this->_Parent->Configuration->set('lang', 'en', 'symphony');
  $this->_Parent->Configuration->set('date_format', 'Y/m/d', 'region');
  return $this->_Parent->saveConfig();    

}

I would like to translate the months. Maybe I will do it with xsl... It is not as easy as "setLocale()" and "strftime()" but it will work.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details