Viewing 1 post (of 1 total)
  • Author
    Posts
  • griiettner Friend
    #183179

    Some of people here are asking how to change the language code dynamically when ever you have a multilingual site, and when the language is changed, the main language of the document, should reflect that change on the opening HTML tag like.

    Go to templatesyour_template_nametplsdefault.php to make the following modifications…

    <html lang=”en-GB”>

    The best way to do that, would be by using a Joomla API that identifies what language your site was set for and than it changes automatically by using the following code

    [PHP]
    <html lang=”<?php echo $this->language; ?>”>
    [/PHP]

    As you can see, the PHP code watch for the language that the site is set for and return to the code, the appropriate value

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  griiettner 11 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum