[WordPress] 外掛分享: Multilingual Contact Form 7 with Polylang

首頁外掛目錄 › Multilingual Contact Form 7 with Polylang
9,000+
安裝啟用
★★★★
4.9/5 分(17 則評價)
59 天前
最後更新
問題解決
WordPress 5.7.0+ PHP 5.6+ v1.0.13 上架:2021-06-23

內容簡介

這個外掛可以通過使用 Polylang 和其字串翻譯功能,在多語言頁面上使用 Contact Form 7 表單。

與其他解決方案不同,您不需要為每種語言創建一個表單,而是可以使用單一的 CF7 表單為所有語言提供服務。

它是如何運作的?

啟用此外掛後,您可以在您的表單、郵件和表單訊息中設定可翻譯的佔位符。

佔位符使用花括號,就像這樣:{需要翻譯的文本}。

當這些設定好後,您可以在「語言」-「字串翻譯」中翻譯字符串,並篩選「Contact Form 7」。

翻譯表單訊息

此外掛提供了兩種翻譯表單訊息的方法。

簡單方法:只需確保表單訊息都設置為英文的預設值。然後,它們會通過常規的外掛程式語言包自動翻譯。
設置好 Polylang 語言之後,您可能需要更新您的 WordPress 語言包。

自定義方法:使用花括號設置您想要翻譯的字符串(或部分字符串),它們將出現在 Polylang 字串翻譯中,您可以對其進行翻譯。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.13) 或搜尋安裝

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

原文外掛簡介

This plugin makes it possible to use Contact Form 7 forms on multilingual pages by using Polylang and its string translations.
Other than existing solutions you don´t have to create a form for each language, but you can use one single CF7 form for all languages.
How does it work?
With this plugin active, you can setup translatable placeholders in your forms, emails and form messages.
The placeholders are using curly braces, like this: {Text to translate}.
When these are setup, you can then translate the strings in Languages > String translations, filter for “Contact Form 7”

Translate form messages
This plugin gives you two ways of translating the form messages.
The simple way: You only have to make sure the form messages are all set to the english default values. Then they are automatically translated via the normal plugin language pack.
You may have to update your WordPress language packs after setting up your languages in Polylang.
The custom way: Set the strings (or part of strings) you want to have translated in curly braces and they will appear in the Polylang string translations where you can translate them.

延伸相關外掛

文章
Filter
Mastodon