{"action":"opened","issue":{"url":"https://api.github.com/repos/vistamedia/socialmeta/issues/6","repository_url":"https://api.github.com/repos/vistamedia/socialmeta","labels_url":"https://api.github.com/repos/vistamedia/socialmeta/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/vistamedia/socialmeta/issues/6/comments","events_url":"https://api.github.com/repos/vistamedia/socialmeta/issues/6/events","html_url":"https://github.com/vistamedia/socialmeta/issues/6","id":155520715,"number":6,"title":"Wrong \"og:locale\" with the Joomla core : System – Language Code ","user":{"login":"gagnonjeanfrancois","id":13753327,"avatar_url":"https://avatars.githubusercontent.com/u/13753327?v=3","gravatar_id":"","url":"https://api.github.com/users/gagnonjeanfrancois","html_url":"https://github.com/gagnonjeanfrancois","followers_url":"https://api.github.com/users/gagnonjeanfrancois/followers","following_url":"https://api.github.com/users/gagnonjeanfrancois/following{/other_user}","gists_url":"https://api.github.com/users/gagnonjeanfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/gagnonjeanfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagnonjeanfrancois/subscriptions","organizations_url":"https://api.github.com/users/gagnonjeanfrancois/orgs","repos_url":"https://api.github.com/users/gagnonjeanfrancois/repos","events_url":"https://api.github.com/users/gagnonjeanfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/gagnonjeanfrancois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T14:47:18Z","updated_at":"2016-05-18T14:47:18Z","closed_at":null,"body":"Hi,\r\n\r\nSocialMeta use for \"og:locale\" the default language of the site, but should take consideration the alternative code language when the plugin « System – Language Code » is activated. \r\n\r\n**To reproduce :**\r\nThis does not need to be tested on a multilang site.\r\nTest instructions:\r\n![777d5fc2-1cd5-11e6-9729-44315f0eda69](https://cloud.githubusercontent.com/assets/13753327/15362744/5487dc0e-1ce4-11e6-941c-e277dd995812.png)\r\n\r\nEdit the System Language Code plugin and enable it, save.\r\nAfter save, a new tab \"Language Codes\" will show.\r\nEnter fr-CA for example (if your default site language is fr-FR)\r\n\r\nDisplay an article in frontend and look at source:\r\n\r\nInstead of\r\n<meta property=\"og:locale\" content=\"fr_FR\">\r\nwe should get get\r\n<meta property=\"og:locale\" content=\"fr_CA\">\r\n\r\nYes I'm lazy I just copy past [this pull request](https://github.com/joomla/joomla-cms/pull/10542) with litle modification.\r\n\r\n**This could help to create a fix :** \r\nhttps://github.com/joomla/joomla-cms/blob/staging/plugins/system/languagecode/languagecode.php\r\n\r\n**To understand to role of this core plugin**\r\nhttps://joomlaseo.com/blog/multilingual-seo-in-joomla (take a look at this paragraphe \"System – Language Code\")\r\nhttp://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=27390 "}}