[WordPress] 外掛分享: Bunny’s Language Linker

首頁外掛目錄 › Bunny’s Language Linker
10+
安裝啟用
尚無評分
6649 天前
最後更新
問題解決
WordPress 2.0+ v0.2 上架:2008-01-03

內容簡介

這個外掛假設您的網站有兩種或以上的語言版本,並且您在每種語言版本使用了不同的 WordPress 安裝。它可以幫助您在不同語言版本之間建立相同頁面的連結。

您應該有一個類似 http://stephanie-booth.com/en/、http://stephanie-booth.com/de/、http://stephanie-booth.com/fr/ 的平行網站模式。例如,http://stephanie-booth.com/en/about 會等同於 http://stephanie-booth.com/fr/a-propos。此外掛會在編輯/創建頁面的管理表單中加入一個名為「Other Language Slugs」的 DBX 方塊。在這個例子中,您會編輯「about」頁面,並將 fr slug(「a-propos」)貼上適當的欄位。

這個外掛會在您的頁面底部顯示連結至其他語言版本的小連結,或在您使用基於 Sandbox 的佈景主題時,在選單列中顯示連結。

注意!這個外掛只適用於頁面,不適用於文章!

想要在用戶登陸首頁時進行智能重定向,您可以嘗試使用此處所描述的技術:http://climbtothestars.org/archives/2007/12/28/browser-language-detection-and-redirection/

未來發展

以下是我希望這個外掛未來能夠實現的功能:

自動捕捉類似 http://stephanie-booth.com/en/a-propos 的 URL,並將其重定向到 http://stephanie-booth.com/en/about(當用戶直接更改 URL,只更改語言代碼時,這種情況會發生,我經常這樣做)

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Bunny’s Language Linker」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin assumes you have a site in two or more languages, and that you are using a separate WordPress install for each language. It helps you create links between the same pages in different
language versions.
You should have a pattern of parallel sites with urls like http://stephanie-booth.com/en/, http://stephanie-booth.com/de/, http://stephanie-booth.com/fr/. Maybe the page
http://stephanie-booth.com/en/about is equivalent to the page http://stephanie-booth.com/fr/a-propos. The plugin adds a DBX box in the edit/create page admin form, named “Other Language Slugs”. In
this case, you’d edit the “about” page, and paste the fr slug (“a-propos”) in the appropriate field.
The plugin will then display a small link to the page in the other language at the bottom of your page, or in your menu bar if you’re using a Sandbox-based theme.
Careful! This only works for Pages, not posts!
For intelligent user redirection when they land on the home page, you might want to try using the technique described here: http://climbtothestars.org/archives/2007/12/28/browser-language-detection-and-redirection/
Future Development
Here’s what I’d like this plugin to do, someday:

automatically capture URLs like http://stephanie-booth.com/en/a-propos and redirect them to http://stephanie-booth.com/en/about (that’s what happens when people edit URLs directly, just replacing
the language code — I do it all the time)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon