[TYPO3] Website title in different languages

Rakowski Tomasz raczek at open.infi.pl
Tue Jul 10 18:35:43 CEST 2007


perfect, that's what I was looking for!

Thank you very much for your time and help!

greetings
Tomasz

Jan Bednarik pisze:
> Hi,
> 
>> How to change website title (one taken from website template) for 
>> different language versions?
> 
> I saw an extension for this once, but cannot remember its name.
> 
> Anyway, it's not that hard.
> 
> Create a file called title.php and place it into fileadmin:
> 
> <?php
> function user_title($t) {
>          $t = explode(":",$t);
>          $l = $GLOBALS['TSFE']->config['config']['language'];
>          if ($l=='uk') $t[0] = 'English title';
>          else if ($l=='de') $t[0] = 'German title';
>          return implode(':',$t);
> }
> ?>
> 
> and then add to your TS:
> 
> page.includeLibs.something = fileadmin/title.php
> config.titleTagFunction = user_title
> 
> Regards
> 


More information about the TYPO3-english mailing list