{"id":68518,"date":"2017-05-17T11:28:00","date_gmt":"2017-05-17T11:28:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/polylang-multilingual\/"},"modified":"2017-05-17T15:09:01","modified_gmt":"2017-05-17T15:09:01","slug":"multilingual-polylang","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/multilingual-polylang\/","author":14199323,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"4.7.33","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Multilingual Polylang","header_author":"Aptivate","header_description":"Display posts in all languages","assets_banners_color":"","last_updated":"2017-05-17 15:09:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1466,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":{"1.0.0":"<ul>\n<li>First version<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6370,99,10601,95,2333],"plugin_category":[48],"plugin_contributors":[92830],"plugin_business_model":[],"class_list":["post-68518","plugin","type-plugin","status-publish","hentry","plugin_tags-bilingual","plugin_tags-multilingual","plugin_tags-polylang","plugin_tags-translate","plugin_tags-translation","plugin_category-language-tools","plugin_contributors-aptivate","plugin_committers-aptivate"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/multilingual-polylang.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin, which requires <a href=\"https:\/\/wordpress.org\/plugins\/polylang\/\">polylang<\/a>\nprovides the means to include posts that have no translation in the current\nlanguage on pages of posts.<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Multilingual Polylang provides two public functions:<\/p>\n\n<p>The function <code>MultilingualPolylang::get_query()<\/code> returns a <code>WP_Query<\/code> object with posts from\nall languages but where there is a translated post, only the post in the current\nlanguage will be included<\/p>\n\n<p>The function <code>MultilingualPolylang::get_permalink()<\/code> can be used as a drop-in replacement to\n    get_permalink(). This will replace the language in a post URL so that a post\ncan be viewed in a language different to that of the rest of the interface.<\/p>\n\n<p><a href=\"https:\/\/github.com\/aptivate\/multilingual-polylang\">Follow this project on GitHub<\/a><\/p>\n\n<h3>Development<\/h3>\n\n<p>This plugin uses <a href=\"http:\/\/wp-cli.org\/\">wp-cli<\/a> and <a href=\"https:\/\/phpunit.de\/\">PHPUnit<\/a> for testing.<\/p>\n\n<h4>Download the source code from GitHub<\/h4>\n\n<pre><code>$ git clone git@github.com:aptivate\/multilingual-polylang.git\n<\/code><\/pre>\n\n<h4>Install wp-cli<\/h4>\n\n<p>If not already present, install <a href=\"http:\/\/wp-cli.org\/#install\">wp-cli<\/a><\/p>\n\n<h4>Install PHPUnit<\/h4>\n\n<p>If not already present, install <a href=\"https:\/\/phpunit.de\/\">PHPUnit<\/a><\/p>\n\n<h4>Install the test WordPress environment<\/h4>\n\n<pre><code>$ cd multilingual-polylang\n$ bash bin\/install-wp-tests.sh test_db_name db_user 'db_password' db_host version\n<\/code><\/pre>\n\n<p>where:<\/p>\n\n<ul>\n<li>&nbsp;<code>test_db_name<\/code> is the name of your <strong>temporary<\/strong> test WordPress database<\/li>\n<li>&nbsp;<code>db_user<\/code> is the database user name<\/li>\n<li>&nbsp;<code>db_password<\/code> is the password<\/li>\n<li>&nbsp;<code>db_host<\/code> is the database host (eg <code>localhost<\/code>)<\/li>\n<li>&nbsp;<code>version<\/code> is the version of WordPress (eg <code>4.7.5<\/code> or <code>latest<\/code>)<\/li>\n<\/ul>\n\n<h4>Run the tests<\/h4>\n\n<p>From the plugin directory:<\/p>\n\n<pre><code>$ phpunit\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate it through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Documentation changes only<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First version<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate it through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"This plugin, which requires polylang","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/68518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=68518"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/aptivate"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=68518"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=68518"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=68518"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=68518"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=68518"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=68518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}