WordPress.org

Support

Support » Plugins and Hacks » qTranslate » [Plugin: qTranslate] Content-Language meta is obsolete in HTML5

[Plugin: qTranslate] Content-Language meta is obsolete in HTML5

  • When the plugin is used with an HTML5 theme it produces a validation error:

    “Using the meta element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead.”

    The Content-Language meta is echoed in the qtrans_header function, but that function also outputs essential CSS tags, so I duplicated the qtrans_header function, commented out the meta line, then removed the original action and added the modified one.

    I guess this could be easier if the qtrans_header function would be split, and there would be a separate action for just outputting the Content-Language meta.

    http://wordpress.org/extend/plugins/qtranslate/

Viewing 1 replies (of 1 total)
  • in my case I just don’t like the output on the <head> made by qTranslate…

    add_action('init', 'remove_header_info');
    function remove_header_info() {
    	remove_action('wp_head', 'qtrans_header');
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: qTranslate] Content-Language meta is obsolete in HTML5’ is closed to new replies.
Skip to toolbar