這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Multilingual Polylang

描述

This plugin, which requires 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

Development

This plugin uses wp-cli and PHPUnit 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

Install PHPUnit

If not already present, install PHPUnit

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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Multilingual Polylang” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Multilingual Polylang 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.1

  • Documentation changes only

1.0.0

  • First version