{"id":33764,"date":"2015-01-07T11:53:21","date_gmt":"2015-01-07T11:53:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/set-html-lang-attribute-per-post\/"},"modified":"2015-01-11T16:33:39","modified_gmt":"2015-01-11T16:33:39","slug":"set-html-lang-attribute-per-post","status":"publish","type":"plugin","link":"https:\/\/su.wordpress.org\/plugins\/set-html-lang-attribute-per-post\/","author":5733768,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.0.1","stable_tag":"0.0.1","tested":"4.1.42","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Set HTML lang attribute per post","header_author":"Nils Norman Hauk\u00e5s","header_description":"","assets_banners_color":"","last_updated":"2015-01-11 16:33:39","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=AX8X2THZR8M5U","header_plugin_uri":"","header_author_uri":"","rating":4.3,"author_block_rating":0,"active_installs":100,"downloads":2107,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","faq","changelog","description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":"1","4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1062130","resolution":"1","location":"assets"}},"screenshots":{"1":"screenshot-1.png"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[246,1974,1385],"plugin_category":[48],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-33764","plugin","type-plugin","status-publish","hentry","plugin_tags-html","plugin_tags-lang","plugin_tags-language","plugin_category-language-tools","plugin_committers-nilsnh"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/set-html-lang-attribute-per-post.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/set-html-lang-attribute-per-post\/assets\/screenshot-1.png?rev=1062130","caption":"screenshot-1.png"}],"raw_content":"<!--section=installation-->\n<ol>\n<li>Upload <code>htmllang.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Wondering about something?<\/p>\n\n<!--section=changelog-->\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>Initial publish.<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>This wordpress plugin adds a meta box for specifying html lang=\"\" language per post.<\/p>\n\n<h3>The problem this plugin solves<\/h3>\n\n<p>Wordpress allows us to specify site-wide language defaults like so:<\/p>\n\n<pre><code>&lt;meta http-equiv=\"content-language\" content=\"es\"&gt;\n<\/code><\/pre>\n\n<p>The problem comes about if you have blog posts in various languages. Personally I write posts in either English or Norwegian. And since English is set as the site-wide language posts that are in Norwegian end up looking kinda weird due to weirdly placed <code>-<\/code> (hyphenations).<\/p>\n\n<h3>Solution<\/h3>\n\n<p>The solution is to add more specific html <code>lang<\/code> attributes when needed.<\/p>\n\n<pre><code>&lt;article id=\"\" class=\"\" lang=\"vi\"&gt;\n<\/code><\/pre>\n\n<p>For example this specifies that the post is in Vietnamese. This plugin enables a meta box when editing posts where you may specify the post's language.<\/p>\n\n<h3>Contributing<\/h3>\n\n<p>This plugin was made in a jiffy. But by all means do suggest improvements. For instance the plugin obviously lacks testing code.<\/p>\n\n<h3>Licensing<\/h3>\n\n<p>Copyright 2014  Nils Norman Hauk\u00e5s<\/p>\n\n<p>This program is free software; you can redistribute it and\/or modify\nit under the terms of the GNU General Public License, version 2, as\npublished by the Free Software Foundation.<\/p>\n\n<p>This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.<\/p>\n\n<p>You should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA<\/p>","raw_excerpt":"This wordpress plugin adds a meta box for specifying html lang=&quot;&quot; language per post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/33764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=33764"}],"author":[{"embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nilsnh"}],"wp:attachment":[{"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=33764"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=33764"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=33764"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=33764"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=33764"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/su.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=33764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}