Bogo

外掛說明

外掛說明網站

Bogo 是一款簡單易用的 WordPress 多語系外掛。

WordPress 核心程式本身內建多語系功能,因此使用者可以在控制台及佈景主題使用英文之外的語系介面。Bogo 擴充了這項功能,讓使用者可以為 WordPress 網站輕鬆建置多語內容。

這裡提供一些需要注意的技術詳細資訊。Bogo 會每一篇文章的每一種語言新增一篇內容。這對 WordPress 來說,是十分搭配的方式。Bogo 與其他同類外掛不同,它不會在資料庫中建立額外的自訂資料表;這項設計讓 Bogo 成為實用、可靠,並且不會產生衝突的多語系內容外掛。

Bogo 快速入門

  1. 安裝語言套件

    請先在網站上安裝要製作多語系內容的語言套件。網站管理員可以在 [語言套件] 畫面 ([內容語言]→[語言套件]) 檢視並安裝需要的語言套件。

  2. 在管理畫面依需求選取語言

    Bogo 讓每一位已登入使用者可以選取一種偏好的管理後台使用者介面語言。使用者可以從工具列上的選單選取語言;如果工具列因故隱藏,也可以從 [個人資料] ([使用者]→[個人資料]) 頁面的選單選取語言。

  3. 翻譯網站文章及頁面

    如需建立某個語言的內容譯文,請前往原始內容的編輯畫面,並找到 [語言] 區塊。Bogo 僅會複製內容成為複本,複本的內容翻譯是外掛使用者的工作。

  4. 新增語言切換器至小工具

    網站建立多語內容後,在網站上加上語言切換器,對網站訪客而言會非常有幫助。Bogo 在 [小工具] 畫面提供 [語言切換器] 小工具 ([外觀]→[小工具])。

    也可以在文章內容中使用 [bogo] 短代碼插入語言切換器。如果想要在佈景主題範本檔案中使用這個短代碼,請將以下程式碼加入範本中:

    <?php echo do_shortcode( '[bogo]' ); ?>
    

隱私權注意事項

依照預設設定,這個外掛及其程式碼並不會進行以下行為:

  • 以匿蹤方式追蹤使用者。
  • 將任何形式的使用者個人資料寫入安裝外掛的網站的資料庫。
  • 將任何資料傳送至安裝外掛的網站之外的外部伺服器。
  • 使用 Cookie。

螢幕擷圖

  • 在工具列上選取偏好的語言
  • 在 [語言] 區塊管理文章譯文
  • [語言套件] 畫面能讓網站管理員檢視並安裝語言套件

適用於區塊編輯器

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

  • Language Switcher Language switcher widget by Bogo.

安裝方式

  1. 將外掛安裝套件解壓縮所得的 bogo 資料夾上傳至網站的 /wp-content/plugins/ 目錄。
  2. 請在 [外掛] 畫面啟用外掛 ([外掛]→[已安裝的外掛])。

使用者評論

2023 年 12 月 29 日
My main goal was to find a multi-language plugin that supports REST API using some easy, expected methods to pull the multi-language content. After trying a few language plugins, I realized not many supported REST API, or you needed to pay for it… when I tried Bogo, it was simple and intuitive, no fuss. Getting the language was also super easy through REST API… you can pass in a lang parameter (i.e. [URL]/wp-json/wp/v2/posts?lang=zh OR [URL]/zh/wp-json/wp/v2/posts … ), this is the expected way to get the language you expect…
2022 年 1 月 11 日
Bogoで日本語と英語のページを固定ページで作成して運用してましたが、ある日突然日本語ページが”Not found”と”No post”の文字が出てエラーになりました。 ちなみに英語のページは見れます。 色々調べましたが、Bogoプラグインを消したらそのサイトを見れるようになったのでまず間違いなさそうです。どうすればエラーが無くなるでしょうか?
2021 年 8 月 9 日
I tried Bogo everal times, the older versions didn’t work for me, or I couldn’t find all the settings. Now I gave it one more try because I’ve had it with Google translate crappy plugins, and it all works! I’m almost done translating my complete site (a lot of work), but the way Bogo is build it is as solid as a rock. Menu translation is done by apointing translated menu items, you can let the menu item to a specific language with a check box. Something you realy have to know, it took me some time to find it. That brings me to the following. A short manual is in place for this plugin. It will realy prevent users to step out and look for another solution. Pitty, becuase it’s a great plugin.
閱讀全部 41 則使用者評論

參與者及開發者

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

參與者

〈Bogo〉外掛目前已有 15 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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

變更記錄

3.8

  • Language switcher: Updates apiVersion to 3 in the block.json file.
  • Lets bogo_http_accept_languages() always return an array.
  • Fixes a bug that makes it impossible to have two sticky posts or more.

3.7

  • Language switcher: Adds the language suggestion view.
  • Improves bogo_format_atts().
  • Updates the languages list in bogo_languages() based on translate.wordpress.org.
  • Uses a static list to retrieve language native names.
  • National flags: Drops famfamfam.com icons in favor of Unicode regional indicator symbols.
  • New filter hook: bogo_get_language
  • New filter hook: bogo_get_language_native_name
  • New filter hook: bogo_get_country_code