Title: Multilingual Polylang
Author: Aptivate
Published: <strong>2017 年 5 月 17 日</strong>
Last modified: 2017 年 5 月 17 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/multilingual-polylang.svg)

# Multilingual Polylang

 作者：[Aptivate](https://profiles.wordpress.org/aptivate/)

[下载](https://downloads.wordpress.org/plugin/multilingual-polylang.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/multilingual-polylang/#description)
 * [评价](https://cn.wordpress.org/plugins/multilingual-polylang/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/multilingual-polylang/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/multilingual-polylang/#developers)

 [支持](https://wordpress.org/support/plugin/multilingual-polylang/)

## 描述

This plugin, which requires [polylang](https://wordpress.org/plugins/polylang/)

provides the means to include posts that have no translation in the current language
on pages of posts.

#### Usage

Multilingual Polylang provides two public functions:

The function `MultilingualPolylang::get_query()` returns a `WP_Query` object with
posts from
 all languages but where there is a translated post, only the post in
the current language will be included

The function `MultilingualPolylang::get_permalink()` can be used as a drop-in replacement
to
 get_permalink(). This will replace the language in a post URL so that a post
can be viewed in a language different to that of the rest of the interface.

[Follow this project on GitHub](https://github.com/aptivate/multilingual-polylang)

### Development

This plugin uses [wp-cli](http://wp-cli.org/) and [PHPUnit](https://phpunit.de/)
for testing.

#### Download the source code from GitHub

    ```
    $ git clone git@github.com:aptivate/multilingual-polylang.git
    ```

#### Install wp-cli

If not already present, install [wp-cli](http://wp-cli.org/#install)

#### Install PHPUnit

If not already present, install [PHPUnit](https://phpunit.de/)

#### Install the test WordPress environment

    ```
    $ cd multilingual-polylang
    $ bash bin/install-wp-tests.sh test_db_name db_user 'db_password' db_host version
    ```

where:

 *  `test_db_name` is the name of your **temporary** test WordPress database
 *  `db_user` is the database user name
 *  `db_password` is the password
 *  `db_host` is the database host (eg `localhost`)
 *  `version` is the version of WordPress (eg `4.7.5` or `latest`)

#### Run the tests

From the plugin directory:

    ```
    $ phpunit
    ```

## 安装

 1. Upload the plugin to the `/wp-content/plugins/` directory.
 2. Activate it through the **Plugins** menu in WordPress.

## 常见问题

  Installation Instructions

 1. Upload the plugin to the `/wp-content/plugins/` directory.
 2. Activate it through the **Plugins** menu in WordPress.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Multilingual Polylang」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Aptivate ](https://profiles.wordpress.org/aptivate/)

[帮助将「Multilingual Polylang」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/multilingual-polylang)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/multilingual-polylang/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/multilingual-polylang/)，或通过[RSS](https://plugins.trac.wordpress.org/log/multilingual-polylang/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/multilingual-polylang/)。

## 更新日志

#### 1.0.1

 * Documentation changes only

#### 1.0.0

 * First version

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/multilingual-polylang/)
 * 标签
 * [bilingual](https://cn.wordpress.org/plugins/tags/bilingual/)[multilingual](https://cn.wordpress.org/plugins/tags/multilingual/)
   [polylang](https://cn.wordpress.org/plugins/tags/polylang/)[translate](https://cn.wordpress.org/plugins/tags/translate/)
   [translation](https://cn.wordpress.org/plugins/tags/translation/)
 *  [高级视图](https://cn.wordpress.org/plugins/multilingual-polylang/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/multilingual-polylang/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/multilingual-polylang/reviews/)

## 贡献者

 *   [ Aptivate ](https://profiles.wordpress.org/aptivate/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/multilingual-polylang/)