{"id":1887,"date":"2007-07-23T12:57:10","date_gmt":"2007-07-23T12:57:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/multilingual-posts\/"},"modified":"2007-12-18T12:58:47","modified_gmt":"2007-12-18T12:58:47","slug":"multilingual-posts","status":"publish","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/multilingual-posts\/","author":191518,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"0.2","tested":"2.4","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"Multilingual posts","header_author":"imluke","header_description":"","assets_banners_color":"","last_updated":"2007-12-18 12:58:47","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.imluke.com\/","header_plugin_uri":"http:\/\/www.imluke.net\/ideas\/mlpost.htm","header_author_uri":"http:\/\/www.imluke.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3956,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1385,86],"plugin_category":[48],"plugin_contributors":[97539],"plugin_business_model":[],"class_list":["post-1887","plugin","type-plugin","status-publish","hentry","plugin_tags-language","plugin_tags-post","plugin_category-language-tools","plugin_contributors-imluke","plugin_committers-imluke"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/multilingual-posts.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>If you can write your posts in 2 or more(Woo...) languages within one blog, you might want to tell the client browser the language attribute of you posts.<\/p>\n\n<p>According to <a href=\"http:\/\/www.w3.org\/International\/tutorials\/language-decl\/en\/all.html\" title=\" W3C tutorial\">the tutorial on W3C<\/a>, language attribute can be declared in the container html tag of your post like this:\n&lt;div id=\"post_id\" class=\"post_entry\" lang=\"zh-Hant\" xml:lang=\"zh-Hant\" dir=\"ttb\"&gt;...\nHere \"zh-Hans\" is the language attribute of your post which means it's written in Simplified Chinese.<\/p>\n\n<p>This plugin gives your post a language tag by adding a meta deta to that post.<\/p>\n\n<p>To add language tag, select it from the language box when you compose\/edit a post. Select \"None\" will delete the language tag.<\/p>\n\n<h3>Revisions<\/h3>\n\n<p>2007-12-18,\n0.2: Now you can difine language direction.\n     Insert CSS style into page head automatically to support pretty printing.<\/p>\n\n     readme file updated for new feature and fixed a error\n\n<p>2007-07-23\n0.1: First release<\/p>\n\n<!--section=installation-->\n<p>To use this plugin, you have to upload the plugin file, active it and edit your theme.<\/p>\n\n<ol>\n<li>First upload the folder \"multilingual-posts\" to plugin folder <\/li>\n<li>Open file \"languages.php\" and select languages that might be used.\nSimply uncomment the row that contains language you will use.<\/li>\n<li>if you need to specify language directions, define it in the bottom of \"languages.php\"<\/li>\n<li>Edit your wordpress theme.\n<!--***NOTICE: the code below is modified for battery render in webpages. please replace \"&gt;\" with &gt; and \"&lt;\" with \"&lt; &quot; when insert to your wp theme***-->\nIn the loop(inside a while(have_posts()) loop), find the top html container which is normally a div block and add a function call before the \"&gt;\" mark:\n&lt;?php \/* Support for multilingual posts plugin<em>\/ if(function_exists('theLangTag')) theLangTag($post-&gt;ID);?&gt;\nIt should look like this(wp2.2 default theme):\n&lt;div class=\"post\" id=\"post-&lt;?php the_ID(); ?&gt;\" &lt;?php \/<\/em> Support for multilingual posts plugin*\/ if(function_exists('theLangTag')) theLangTag($post-&gt;ID);?&gt; &gt;<\/li>\n<li>activate this plugin in wordpress admin panel<\/li>\n<\/ol>","raw_excerpt":"This plugin adds a standard compliant language tag to your post and page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1887"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/imluke"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1887"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1887"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1887"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1887"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1887"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}