plugin-icon

Multilingual Polylang

제작자: Aptivate·
This plugin, which requires polylang
버전
1.0.1
최근 업데이트일
May 17, 2017

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
무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.7.33
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.