[WordPress] 外掛分享: Preferred Languages

前言介紹

  • 這款 WordPress 外掛「Preferred Languages」是 2017-10-01 上架。
  • 目前有 2000 個安裝啟用數。
  • 上一次更新是 2025-04-08,距離現在已有 26 天。
  • 外掛最低要求 WordPress 6.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2.24 以上。
  • 有 17 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

swissspidy |

外掛標籤

i18n | language | translation | localization | internationalization |

內容簡介

多虧了語言包,現在更容易更改您的網站主語言。然而,在某些情況下,單一語言環境是不夠的。當 WordPress 找不到活動語言環境的翻譯時,它會回退到原始的英語字符串。對於許多非英語使用者,這是一種糟糕的用戶體驗。

本項目希望通過讓用戶選擇多種語言來顯示 WordPress 來解決這個問題。這樣,您可以設置某種“回退順序”,讓 WordPress 嘗試按您喜歡的順序加載翻譯。

請幫助我們測試此外掛,並讓我們知道如果有任何錯誤。

參與其中

活躍的開發正在 GitHub 上進行。

如果您想參與其中,請查看開放問題並加入#core-i18n Slack 頻道。如果您還沒有 Slack 帳戶,您可以在make.wordpress.org/chat/上註冊。

原文外掛簡介

Thanks to language packs it’s easier than ever before to change the main language of your site.
However, in some cases a single locale is not enough. When WordPress can’t find a translation for the active locale, it falls back to the original English strings.
That’s a poor user experience for many non-English speakers.
This feature project aims to change that by letting users choose multiple languages for displaying WordPress in.
That way you can set some sort of “fallback chain” where WordPress tries to load translations in your preferred order.
Please help us test this plugin and let us know if something is not working as you think it should.
Keyboard Shortcuts

Arrow Up: Move selected locale one position up.
Arrow Down: Move selected locale one position down.
Home: Select first locale in the list.
End: Select last locale in the list.
Backspace/Delete: remove the selected locale from the list.
Alt+A: Add the current locale from the dropdown to the list.

Note: the Preferred Languages UI needs to be focused in order for the keyboard shortcuts to work.
Merging Translations
Previously, only the first available translation for a given locale and domain will be loaded.
However, when translations are incomplete, some strings might still be displayed in English.
That’s a poor user experience as well.
To prevent this, Preferred Languages now automatically merges all incomplete translations in the list.
the preferred_languages_merge_translations filter can be used to opt out of this behavior.
It provides three parameters:

$merge – Whether translations should be merged. Defaults to true.
$domain – The text domain
$current_locale – The current locale.

Get Involved
Active development is taking place on GitHub.
If you want to get involved, check out open issues and join the -i18n channel on Slack. If you don’t have a Slack account yet, you can sign up at make.wordpress.org/chat/.

各版本下載點

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

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


1.0.0 | 1.0.1 | 1.1.0 | 1.2.0 | 1.3.0 | 1.4.0 | 1.5.0 | 1.6.0 | 1.7.0 | 1.7.1 | 1.8.0 | 2.0.0 | 2.0.1 | 2.1.0 | 2.1.1 | 2.1.2 | 2.2.0 | 2.2.1 | 2.2.2 | 2.3.0 | 2.4.0 | trunk |

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

  • Loco Translate 》Loco Translate 提供在瀏覽器中編輯 WordPress 翻譯文件和與自動翻譯服務集成的功能。, 它還為開發人員提供 Gettext/本地化工具,例如提取字符串和生成模板。...。
  • Polylang 》ts, Polylang is developed by the Polylang team with the help of numerous contributors., If you want to contribute or report an issue, please visit ...。
  • Translate WordPress with GTranslate 》Translate WordPress with GTranslate外掛使用 Google Translate 自動翻譯服務,讓您的 WordPress 網站多語言化,並發揮 Google 的力量。有103種語言可供選擇...。
  • Translate Multilingual sites – TranslatePress 》透過可視化的翻譯介面,直接從前端翻譯您的WordPress網站並製作多語言網站,體驗更好的翻譯方式。, TranslatePress是一個任何人都可以使用的WordPress翻譯外...。
  • Cyr-To-Lat 》將文章、頁面和分類別名中的 Cyrillic 字元轉換為 Latin 字元,有助於建立易於閱讀的 URL。, 特點, , 唯一具有完全可編輯的轉換表的外掛程式。可以添加/刪除...。
  • Translate WordPress – Google Language Translator 》Google Language Translator 外掛現已經成為 GTranslate 家族的一員!, GTranslate 自 2008 年以來一直是一家領先的網站翻譯服務提供商,為全球超過 500,000 ...。
  • Translate WordPress and go Multilingual – Weglot 》Weglot Translate是領先的WordPress翻譯外掛,全球有超過60,000個使用者信任。您可以在幾分鐘內將WordPress網站翻譯成110多種語言,無需編碼即可實現多語言。...。
  • Performant Translations 》- 本專案使用了一種新的方法來處理 WordPress 的翻譯檔案,大幅提升本地化速度。, - 深入的 i18n 效能分析顯示,經過本地化處理的 WordPress 網站載入速度顯...。
  • Say what? 》這是一個易於使用的外掛,允許您改變網站上的字符串而無需編輯 WordPress 核心或外掛程式碼。只需輸入當前字符串和您想要替換的內容,外掛程式就會自動執行其...。
  • WP Multilang – Translation and Multilingual Plugin 》WP Multilang 是 WordPress 的多語言外掛。, 翻譯文章類型、分類法、元字段、選項、多媒體檔案中的文本字段、選單、標題和小工具中的文本字段。, WP Multilan...。
  • Theme and plugin translation for Polylang (TTfP) 》「Polylang 的主題和外掛程式翻譯」是什麼?, 這是 Polylang 外掛的擴充套件。Polylang 是一個可讓 WordPress 網站多語言化的擴充套件。, 這個外掛可以讓 Pol...。
  • Prisna GWT – Google Website Translator 》這個外掛讓 Google 自動翻譯服務的強大功能可翻譯您的網站成 100 多種語言,是 WordPress 的一個簡單而完整的多語言解決方案。, 功能:, , 易於安裝,包括內聯...。
  • My WP Translate 》這是一個簡單而強大的 WordPress 翻譯外掛程式,可在支援翻譯的大部分主題和外掛中使用。, , 為什麼要選擇 My WP Translate 自 MyThemeShop:, , 在 WordPres...。
  • Admin Locale 》這個外掛提供了在網站上以某種語言運行(例如阿拉伯語),並在管理面板中使用另一種語言(例如英語)的能力。, 只需前往「設定」»「一般」,然後選擇您...。
  • Admin Language Per User 》這個插件讓你的後台管理面板可以以英文或任何已安裝的語言顯示,即使你的網站翻譯為其他語言。語言偏好設置可以基於使用者個人設定設定。, 在多站點上已進行...。

文章
Filter
Apply Filters
Mastodon