[WordPress] 外掛分享: Gengo

首頁外掛目錄 › Gengo
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
6519 天前
最後更新
問題解決
WordPress 2.5+ v2.5.3 上架:2006-01-09

內容簡介

Gengo 是一個完整的外掛,提供 WordPress 2.5+ 的多語言部落格功能。它可以為任何文章提供無限數量的翻譯和摘要,並提供模板標籤以顯示語言資訊。它允許您並排編輯翻譯,當訪客來到您的網站時,自動偵測和過濾語言,並自動為連結和內容區塊生成語義信息。它可以通過選項頁進行配置。

Gengo 主要由 Jamie Talbot 撰寫,並得到了 Paolo Tresso(又名 Pixline) 和社群的幫助。

更多資訊和支援

WordPress 多語言部落格
支援論壇
問題追蹤器
提交日誌

已知問題
如果沒有 JavaScript / XHTMLHTTP 會發生什麼?

它不會運作,抱歉。大部分管理員代碼依賴這些技術以更新背景中的資訊,無法繞過。

它不會更改頁面項目,如「分類」、「鏈接」等

您需要為此使用專門的國際化主題。從本質上講,主題必須在其文本周圍使用 _e() 和 __() 函數並提供本地化 .mo 檔案。請聯繫您的主題供應商😀

上一個和下一個鏈接會跳到其他語言的文章!

我知道。WordPress 還不讓我接觸那些。重寫所有那些代碼太麻煩了,所以您必須暫時忍受它。我已經提交了一個補丁到核心,這樣就可以實現,希望它能被納入 WordPress 2.1。 在 https://trac.wordpress.org/ticket/2415/ ,您可以找到該票證的狀態和留下評論以支持其整合,如果您認為它有用的話。如果您知道自己在做什麼,也可以自行應用補丁。一旦補丁完成,Gengo 將不需要進行進一步修改即可利用它。

我為我的分類輸入了同義詞,但它們只會在某些地方出現。 在其他地方,預設值始終顯示。

這是因為 WordPress 應用了 Gengo 使用的過濾器時不一致。 我已經向核心添加了一個票證和補丁,希望它們可以納入 WordPess 2.1。 您可以在那裡檢查此票證的狀態並留下評論,以支持其重要性https://trac.wordpress.org/ticket/2466/。 同時,如果您知道自己在做什麼,可以使用那裡的補丁自行修補文件。在 2.0.4 中,這應該會比以前好一點。

翻譯頁面不起作用

從 0.5 開始,提供了一些遠離編寫文章屏幕的翻譯群組管理。 如果您需要更多信息,請告訴我。

我在 MySQL 5.x 中出現插入錯誤

這發生在嚴格模式中,應在 0.8 中修復

頁面的語言標籤錯誤。

從 0.81 開始,這應該已被修復。 但是,對於兩種或多種語言的頁面,只使用讀者的第一個指定語言,因為沒有為 RSS 指定多語言的設施。 如果 WordPress 支持理解多種語言的頁面,則將進行更新。

更改文章語言後,我的保存按鈕消失了。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5.3) 或搜尋安裝

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

原文外掛簡介

Gengo is a full featured plugin that provides multi-language blogging for WordPress 2.5+. It allows for an unlimited number of translations and summaries for any post and provides template tags to display language information. It allows you to edit translations side by side, detects and filters by language automatically when a visitor comes to your site and automatically generates semantic information for links and content blocks. It is configurable via an options page.
Gengo is mainly written by Jamie Talbot, with some help from Paolo Tresso (aka Pixline) and the community.
More info & Support

WordPress Multilingual Blog
Support Forum
Issue Tracker
Commit Log

Known Issues
What happens if Javascript / XHTMLHTTP isn’t available?
It won’t work, sorry. A large portion of the admin code relies on these technologies to update information in the background. There’s no way around this.
It doesn’t change the page items like “Categories”, “Links” etc
You need a specially internationalised theme for this to work. In essence, the theme has to use _e() and __() functions around its text and provide a localisation .mo file. Contact your theme vendor 😀
Previous and next links go to posts in other languages!
I know. WordPress won’t let me get at those just yet. It’s too much of a hassle to rewrite all that code, so you’ll just have to live with it for the time being, I’m afraid. I’ve submitted a patch to the core which would allow this to happen, so hopefully it will make it into WordPress 2.1… It’s at https://trac.wordpress.org/ticket/2415/ , where you can find out the status of the ticket and leave a comment to support its integration if you think it will be useful. You can also apply the patch yourself if you know what you’re doing. As soon as it is patched, Gengo will take advantage, with no further modifications.
I entered synonyms for my categories but they only show up in certain places. In others, the default is always displayed.
This is because WordPress applies the filter that Gengo uses inconsistently. I’ve added a ticket and patch to the core which hopefully will make it into WordPess 2.1. You can check the status of this ticket and leave a comment to add your support if you think it’s important at https://trac.wordpress.org/ticket/2466/ In the meantime, if you know what you’re doing, you can patch your files yourself using the patch there. In 2.0.4 this should be a little better than before.
The translation page doesn’t do anything
0.5 onwards provides some translation group management away from the write post screen. If you need more, let me know.
I get insert errors with MySQL 5.x
This happened in strict mode, and should be fixed in 0.8
The language tag is set incorrectly for feeds.
This should have been fixed from 0.81 onwards. However, for feeds for two or more languages, only the reader’s first specified language is used, as there is no facility for specifying multiple languages for RSS. This will be updated if and when WordPress supports a feed that understands multiple languages.
My Save buttons disappear forever when changing the language of a post.
This seems to be a browser related problem, especially some versions of Firefox. Make sure the Firebug extension is not snooping XMLHTTP requests as this is known to cause problems. Upgrading to the latest version of your browser should fix the problem. Gengo is known to have problems on some installations of Firefox 1.5 but works seems to work successfully with Firefox 1.5.0.2.
There are multiple UNIQUE indices on the wp_languages table.
This seems to be because of a bug in WordPress’ supplied upgrade function dbdelta(). This should be fixed now.
I have another request / bug / optimisation
Please let me know in the forums at http://jamietalbot.com/wp-hacks/forum/ . I’ll see what I can do to fix it.
Does Gengo work with WordPress x.x.x?
Gengo 2.5 only works with WordPress 2.5+. Version 0.9 works with WordPress 2.1/2.2, and 0.81 works with 2.0.1, but not 2.1.
I don’t have an option to view in multiple languages
Reading in multiple languages is only supported for MySQL versions 4.1 and above. If your MySQL is lower than that, the option won’t appear. You really should start bugging your host for a better MySQL version – WordPress 2.2 is only going to support MySQL 4.1+.
Template Tags
Gengo provides a number of template functions which are very similar to those in WordPress:

gengo_list_languages() – outputs a formatted lists of languages defined for this blog. Surround the call to this function with

文章
Filter
Apply Filters
Mastodon