Adding html language code to page headers

Popular automatic website translation tool

Adding html language code to page headers

Postby mjbradley85 » Thu Aug 13, 2015 8:40 pm


Google prefers that any foreign language pages are properly tagged with an html language code. Is there some way to automatically or manually add html language codes into the header of translated pages?

For instance, any Spanish pages should be tagged with
Code: Select all

Instead, all translated pages are coded for English by default
Code: Select all

Is there a way to edit or add an html language code using the PRO version?
Posts: 11
Joined: Wed Feb 20, 2013 10:15 pm

Re: Adding html language code to page headers

Postby Edvard » Sun Aug 16, 2015 3:15 pm


If you are writing about <html lang="fr-FR" ...> tag then it is being changed by GTranslate Enterprise and you do not need to do anything about it.

If you are writing about something else, then it is possible to detect the current selected language from your application and based on that change anything. You may check GTranslate Enterprise documentation for more info: ... umentation


Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Site Admin
Posts: 4403
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

  • Related Topics
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests