外掛說明
這是一個實用且簡單易用的外掛,它為 WordPress 多站網路 (例如多站網路中的子網域或子目錄網站) 新增多語內容功能。Multisite Language Switcher 讓網站管理員不費吹灰之力便能管理文章、頁面、自訂內容類型、分類、標籤集自訂分類法的譯文。
這個外掛使用了源自 FamFamFam 的旗幟圖示,由衷感謝 Mark James 的作品。此外,也必須感謝 Jürgen Mayer 為外掛製作的橫幅。
請記得為這個外掛評等,謝謝。
本地化人員
感謝全體本地化人員的卓越貢獻。
- 德國德文 (de_DE):由 Dennis Ploetner 提供
- 義大利文 (it_IT):由 Antonella Cucinelli 提供
- 荷蘭文 (nl_NL):由 Alexandra Kleijn 提供
- 巴西葡萄牙文 (pt_BR):由 Coolweb 提供
- 西班牙西班牙文 (es_ES):由 Andreas Breitschopp 提供
- 法國法文 (fr_FR):由 Andreas Breitschopp 提供
- 俄文 (ru_RU):由 Andrey Vystavkin 提供
- 烏克蘭文 (uk):由 Victor Melnichenko 提供
- 克羅埃西亞文 (hr_HR):由 Brankec69 提供
- 羅馬尼亞文 (ro_RO):由 Armand K 提供
- 波蘭文 (pl_PL):由 Kamil Frejlich 提供
- 立陶宛文 (lt_LT):由 Ovidijus Pukys 提供
- 加泰羅尼亞文 (ca_ES):由 Joan López 提供
- 捷克文 (cs_CZ):由 Rastr 提供
- 匈牙利文 (hu_HU):由 RobiG 提供
- 喬治亞文 (ka_GE):由 Jas Saran 提供
- 希臘文 (el):由 Christoforos Aivazidis 提供
- 塞爾維亞文 (sr_RS):由 Web Hosting Hub 提供
- 土耳其文 (tr):由 Alican Cakil 提供
- 亞美尼亞文 (hy_AM):由 Yeghishe Nersisyan 提供
- 孟加拉文 (bn_BD):由 Md. Nazmul Huda 提供
- 日文 (ja):由 ThemeBoy 提供
- 瑞典文 (sv_SE):由 Erik Bernskiold 提供
- 台灣繁體中文 (zh_TW) 及中國簡體中文 (zh_CN):分別由 Alex Lion (阿力獅) 及 DrBenson 提供
- 阿拉伯文 (ar):由 Mohamed Elwan 提供
- 挪威文 (nb_NO):由 Ibrahim Qraiqe 提供
- 保加利亞文 (bg_BG):由 Vencislav Raev 提供
- 墨西哥西班牙文 (es_MX):由 Fernando Mata 提供
You can translate this plugin on translate.wordpress.org, or if you prefer and have created your language pack, or have an update of an existing one, you can send me your Gettext PO and MO so that I can
bundle it into the Multisite Language Switcher. You can download the latest POT file
from here.
適用於區塊編輯器
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- Multisite Language Switcher Review the settings for the Multisite Language Switcher plugin, as the block utilizes the API function `the_msls()` for its output.
安裝方式
- 使用 WordPress 管理後台安裝外掛或…
- 將外掛安裝套件壓縮檔解壓縮得到的資料夾完整上傳至 WordPress 網站的
/wp-content/plugins目錄中。 - 在外掛管理頁面啟用這個外掛。多站網路管理員能為多站網路的全部子網站啟用外掛,或由個別子網站的網站管理員分別啟用外掛。
- After activation, configure the plugin once in each blog under
Settings->Multisite Language Switcher
完成安裝後,網站便能…
- Connect your translated pages and posts in
Posts->EditorPages->Edit - Connect your translated categories and tags in
Posts->CategoriesorPosts->Tags - 跨語言連結網站上的自訂內容類型及自訂分類法。
- 如果有提供對應的翻譯內容,便能使用小工具、區塊編輯器的區塊、短代碼
[sc_msls]及content_filter向使用者顯示相關提示。 - 使用小工具短代碼
[sc_msls_widget]。 - optionally you can place the code
<?php if ( function_exists( 'msls_the_switcher' ) ) msls_the_switcher(); ?>directly in your theme files
查看 Multisite Language Switcher 官方網站以進一步了解相關資訊。
常見問題集
-
在 [一般] 設定頁面中沒有可供使用的 [網站介面語言] 選項。
-
請先查看這份官方文件中對你的母語的說明。
-
有需求要讓網站保持英文介面。
-
請在控制台的 [個人資料] 設定頁面選取個人要使用的網站語言介面。
-
是否需要使用多站網路?
-
是否建置多站網路取決於網站管理員,但是如果要使用 Multisite Language Switcher,就必須採用多站網路。
-
如何依據使用者的瀏覽器偏好語言將使用者重新導向至對應的語言網站?
-
Multisite Language Switcher 無法自動將使用者重新導向至對應的偏好語言網站,我 (指外掛開發者) 也不認為外掛應該具備這個功能。如果需要這個功能,可以參考這個 jQuery 外掛或能達成這個目標的佈景主題。
-
請參考 MslsMenu 附加元件外掛。
-
如何在網站上將 Multisite Language Switcher 的功能加入 HTML 選取功能中?
-
請參考 MslsSelect 附加元件外掛。
-
是否有可以呼叫取得訪客目前檢視頁面的語言資訊的函式?
-
網站管理員應該使用 WordPress API 函式
get_locale(),但也可以使用下列程式碼:use lloc\Msls\MslsBlogCollection; $blog = MslsBlogCollection::instance()->get_current_blog(); $language = $blog->get_language(); -
如果還有其他問題,可以在何處提問?
-
請造訪 MSLS 網站或 WordPress 技術支援論壇以進一步了解相關資訊。
使用者評論
參與者及開發者
變更記錄
請參考這個外掛專案的獨立變更記錄。








