[WordPress] 外掛分享: Multilingual Polylang

前言介紹

  • 這款 WordPress 外掛「Multilingual Polylang」是 2017-05-16 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2017-05-17,距離現在已有 2909 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aptivate |

外掛標籤

polylang | bilingual | translate | translation | multilingual |

內容簡介

這個外掛需要 Polylang。
該外掛提供了一種方法,在文章頁面上包含當前語言中沒有翻譯的文章。

使用方法

多語言 Polylang 提供了兩個公共函數:

函數 MultilingualPolylang::get_query() 返回一個帶有文章的 WP_Query 物件,包括所有語言的文章,但除非有翻譯的文章,否則只會包括當前語言中的文章。

函數 MultilingualPolylang::get_permalink() 可以用作 get_permalink() 的替代品。這將替換文章網址中的語言,以便以與界面其餘部分語言不同的語言查看文章。

在 GitHub 上關注此項目

開發

該外掛使用 wp-cli 和 PHPUnit 进行测试。

从 GitHub 下载源代码
$ git clone [email protected]:aptivate/multilingual-polylang.git

安装 wp-cli

如果尚未安装,请安装 wp-cli

安装 PHPUnit

如果尚未安装,请安装 PHPUnit

安装测试 WordPress 环境
$ cd multilingual-polylang
$ bash bin/install-wp-tests.sh test_db_name db_user'db_password' db_host version

其中:

 test_db_name 是您的临时测试 WordPress 数据库的名称
 db_user 是数据库用户名
 db_password 是密码
 db_host 是数据库主机(例如 localhost)
 version 是 WordPress 版本(例如 4.7.5 或最新版本)

运行测试

从插件目录中:

$ phpunit

原文外掛簡介

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 [email protected]: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

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Multilingual Polylang」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Translate Multilingual sites – TranslatePress 》透過可視化的翻譯介面,直接從前端翻譯您的WordPress網站並製作多語言網站,體驗更好的翻譯方式。, TranslatePress是一個任何人都可以使用的WordPress翻譯外...。
  • Hyyan WooCommerce Polylang Integration 》由於最近我沒有在使用 WordPress,也沒有使用 WooPoly 了一段時間,因此我正在尋找維護者接手這個項目。, 如果您有興趣,請回覆這個問題或透過電子郵件與我聯...。
  • Ray Enterprise Translation 》Ray Enterprise Translation 提供方便的基於雲端的本地化和WordPress翻譯,通過簡化創建和維護多語言網站的過程。其功能包括機器翻譯、專業翻譯和社區翻譯解...。
  • WPBakery Visual Composer & qTranslate-X 》這個外掛可以讓 qTranslate-X 多語言工具運作於 WPBakery Visual Composer 外掛程式中。, 需要 qTranslate-X 版本 3.3 或者 alpha 預發行版 以上版本。, 這個...。
  • WPML to Polylang 》特色, , 匯入語言和 WPML 選項(當相同選項存在於 Polylang 中時)。, 匯入文章和詞語的語言以及翻譯(包括自訂文章類型和自訂分類法)。, 匯入多語言導覽選...。
  • Falang multilanguage for WordPress 》Falang 是 WordPress 的多語言外掛,它允許您將現有的 WordPress 網站翻譯成其他語言。Falang 原生支援 WooCommerce(產品、變體、類別、標籤、屬性等)。, ...。
  • WPGlobus Featured Images 》WPGlobus Featured Images 是 WPGlobus 外掛的擴充功能,可以讓您為每種語言設定單獨的特色圖像。, , 注意:在安裝 WPGlobus Featured Images 擴充功能之前,...。
  • WPCasa Polylang 》WPCasa Polylang 外掛程式是為 Polylang 外掛程式設計的橋樑,以確保所有房源詳情、出租期間和其他 WPCasa 文字字串都能正確翻譯。, , 請注意,此外掛程式是 ...。
  • Translate by Supsystic 》手動翻譯 WordPress 網站內容,讓網站可以支援全球觀眾。創建多語言頁面、文章、小工具、選單等功能。使用者可以透過語言小工具選擇語言,或者配置 Translate...。
  • User Language Switch 》, 結束公告, 我們協助多語言網站翻譯已經有一段時間,也非常感謝大家對於這個外掛的信任與使用。很遺憾地,因為我們無法維護並提供支援,我們再也無法提供支...。
  • Bilingual Linker 》此外掛的目的是讓使用者能在管理介面中新增一個頁面或文章的翻譯版本連結,並在網誌、單一文章或頁面上顯示此連結。, 您可以在暫時的 WordPress 副本這裡試用...。
  • Multilingual Text 》這個外掛可以透過標記文字以不同語言呈現,旁邊會有旗幟圖示,允許使用者在不同語言中進行切換。, 博客的其他元素並不會被翻譯。, 使用[:gb]來指定以下文字部...。
  • nLingual 》nLingual 系統允許 WordPress 靈活的多語言支援和翻譯管理。該系統以每篇文章為基礎處理翻譯,並可以設置為同步,以便在一個文章上的某些細節發生更改時將其...。
  • Events Made Easy & qTranslate-X 》啟用qTranslate-X多語言框架,以支援外掛Events Made Easy。, 至少需要版本 3.2.2 的qTranslate-X外掛。。
  • Switch Polylang To Ukrainian language 》此外掛將顯示彈出式視窗,提供語言選擇功能,以便於根據「網站翻譯成烏克蘭語法律」,開啟網頁時使用烏克蘭語。。

文章
Filter
Mastodon