[Typo3-dev] Adding language info to the html tag: config.lang

Kasper Skårhøj kasper at typo3.com
Tue Apr 20 11:53:45 CEST 2004


Support has been added to CVS now. The implementation is slightly
different to what you have done here.

- kasper
On Sun, 2004-04-11 at 04:44, Martin T. Kutschker wrote:
> Hello!
> 
> To follow the accessability guidelines you should add language info to 
> your page. The best place for this is the html tag as it also covers the 
> head section.
> 
> Following my suggestion for adding bidi info I expand my code:
> 
> if ($GLOBALS['TSFE']->config['config']['lang']) {
>    $htmlParam .=
>      ' lang="'.$GLOBALS['TSFE']->config['config']['lang'].'"';
> 
>    if ($xhtml11) {
>      $htmlParam .=
>        ' xml:lang="'.$GLOBALS['TSFE']->config['config']['lang'].'"';
>    }
> }
> 
> The flag $xhtml11 should be set when XHTML 1.1 is in use. The html 
> "lang" attribute has been *removed* in favour of the general xml "lang" 
> attribute.
> 
> Masi
> 
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
-- 
Best regards

- kasper

--------------------
It's not a bug, it's a missing feature.






More information about the TYPO3-dev mailing list