[Typo3] Multi-language website title

Jan Bednarik info at bednarik.org
Mon Feb 7 11:09:39 CET 2005


Hi folks,

what if I have multi-language site and want to have different website 
titles for different languages? Is there any other possibility than to 
create a titleProcFunction?

I created this:
<?php
function user_title($t) {
          $t = explode(":",$t);
          $l = $GLOBALS['TSFE']->config['config']['language'];
          if ($l=='en') $t[0] = 'A english title';
          else if ($l=='de') $t[0] = 'A german title';
          return implode(':',$t);
}
?>

It works, but I don't think it's the best solution.

Regards,
Jan Bednarik



More information about the TYPO3-english mailing list