WordPress.org

Forums

Language Selector Related
incorrect hyphen and capitalization (1 post)

  1. lfgellon
    Member
    Posted 1 year ago #

    Hi Ruben,
    I wonder if you could fix an issue in your your plugin.
    according to IANA (http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) and http://tools.ietf.org/html/rfc5646 references the language should be written in lowercase and using a hyphen
    Example:
    <link rel="alternate" href="http://google.com/" hreflang="en-us" /> USA
    <link rel="alternate" href="http://google.com/" hreflang="en-gb" /> UK

    At the moment is generating
    <link rel="alternate" hreflang="en_US" href"http://google.com" /> USA
    Could you fix it so it pass the w3c validation?

    Hope that helps.

    Regards

    Luis Gellon

    https://wordpress.org/plugins/language-selector-related/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Language Selector Related
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic