這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Multilang Block

外掛說明

Not every site needs 1:1 multilanguage experience. Sometimes you want to give your visitors from a certain country a piece of information like “check my other site in your language”, or provide a brief introduction.
Multilang block was created with this idea. Of course, nothing prevents you from wrapping all the content in Multilang block, because it’s the best block out there!

螢幕擷圖

  • An example of the Multilang block wrapping an introduction for Polish visitors.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Multilang Block Create hidden content visible only for speakers of other languages

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/multilang-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Insert “Multilang block” into your post or page
  4. Select a language for the block
  5. Every block INSIDE the multilang block will be visible only for people who have the selected language in navigator.languages of their browsers.

常見問題集

What can I put inside the Multilang block?

Everything. Except donuts, they get squished and the filling will be all over the place.
The block is functionally identical to the group block.

How does multilang block know what languages users speak?

Users can set up languages in the browser settings. They are passed to navigator.languages property.
Multilang block reads this list and if the language you selected is on there – block is displayed.
It stays hidden for users that don’t have that language set in browser settings.

How is the content hidden?

In JavaScript. Post Content has the full content of the post, so it will probably show up in RSS, and in similar delivery systems.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Multilang Block〉的開發相關工作。

參與者

將〈Multilang Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.0

  • Release