內容簡介
這是一個外掛,可讓qTranslate與WooCommerce配合使用。您不再需要為每種語言重複建立表單了。
要使用此外掛,需安裝qTranslate和WooCommerce。
安裝完畢後,您可以使用qTranslate快速標籤(參見http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3&p=15#p15)為類別名稱等添加多語言支持。
例如,如果您使用“[:en] 測試產品 [:de] Test-Produkt [:lb] Test-Produit”作為類別名稱,則qTranslate將使用此外掛的幫助,在顯示類別名稱時自動選擇適當的語言(在此示例中為英語、德語或盧森堡語)。
如果想回報錯誤或對外掛進行貢獻,請在GitHub的項目頁面創建問題:https://github.com/mweimerskirch/wordpress-qtranslate-support-for-woocommerce
我不會在支援論壇中回复要求。
已知問題
此外掛僅與在qTranslate中設置為“使用預先路徑模式”的“URL修改模式”配合使用。
您需要在永久連接設置中填寫WooCommerce相關字段(“產品類別基礎”、“產品標籤基礎”、“產品屬性基礎”)。否則,連結結構在不同語言之間會發生變化,導致404錯誤。
僅在結帳頁面使用HTTPS會導致不正確的重定向。建議解決方法是為整個站點啟用HTTPS。
類別/屬性等在後台顯示未翻譯。
外掛標籤
開發者團隊
② 後台搜尋「qTranslate support for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Plugin to make qTranslate work with WooCommerce. No more need to duplicate forms for each language.
In order to use you need both qTranslate and WooCommerce installed.
After it is installed, you can use the qTranslate quicktags (see http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3&p=15#p15) for your category names, etc.
e.g. if you use “[:en]Test product[:de]Test-Produkt[:lb]Test-Produit” as a category name, qTranslate – with the help of this plugin – will automatically choose the correct language (in this example either English, German or Luxembourgish) when displaying the category name.
To report a bug or contribute to the plugin, please create an issue at the project page on GitHub: https://github.com/mweimerskirch/wordpress-qtranslate-support-for-woocommerce
I won’t answer to requests in the support forum.
Known issues
The plugin only works with “URL Modification Mode” set to “Use Pre-Path Mode” in the qTranslate settings.
You need to fill out the WooCommerce-related fields (“Product category base”, “Product tag base”, “Product attribute base”) in the permalink settings. Otherwise the link structure changes between languages, leading to 404 errors.
Using HTTPS only for the checkout pages leads to incorrect redirections. The suggested workaround is to enable HTTPS for the entire site.
Categories/Attributes/etc show up untranslated in the backend.
