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

Hi,

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
lang="es"


Instead, all translated pages are coded for English by default
Code: Select all
lang="en-US"


Is there a way to edit or add an html language code using the PRO version?
mjbradley85
 
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

Hi,

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: https://gtranslate.io/docs/58-gtranslat ... umentation

Thanks!
Regards,

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
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron