內容簡介
什麼是「Polylang 主題字串」,它是用來做什麼的?
此外掛提供多種附加功能,可應用於 Polylang 掛件。它會自動掃描所有啟用 WP 主題(和所有掛件)的樣本檔案和腳本,以取得可翻譯的字串並將其添加到 Polylang 註冊表。例如:
pll__('...');
pll_e('...');
接著您就可以透過管理面板管理翻譯所有被發現的字串。這可讓您在開發多語言專案時更輕鬆,因為您不需要手動輸入所需翻譯的字串 — 此插件將為您做所有工作。
不要忘記在此示例中所述的是 PHP 函數呼叫,因此它們必須位於 PHP 標記內。
「Polylang 主題字串」如何運作?
您必須在多語言 WordPress CMS 專案上安裝「Polylang」和「Polylang 主題字串」掛件,並啟用兩者。當您在插件(Polylang)的設置中的「字串翻譯」選項卡中時,「Polylang 主題字串」將自動掃描您的專案中的活動主題,找到所有需要翻譯的代碼字符串,將其添加到註冊表中,顯示它們在該頁面上,並讓用戶翻譯這些字符串。
正如您所看到的,「Polylang 主題字串」與「Polylang」插件完美結合,以自動模式運作 — 這很方便、簡單且有用!
從 4.0 版本開始,「Polylang 主題字串」獲得了設置頁面,您可以在這裡更深入地配置搜索字串翻譯。
了解更多信息,請訪問 http://modeewine.com/en-polylang-theme-strings。
外掛標籤
開發者團隊
原文外掛簡介
What is «Polylang Theme Strings» and what for is it?
This plugin gives additional features to the plugin Polylang. It automatically scans all templates files and scripts of the active WP theme (and all plugins) for available strings that can be translated. For example:
pll__('...');
pll_e('...');
and adds them to the Polylang registery, after what you can manage the translation of finded strings using the administration panel. It will make your life easier for the development of multilanguage’s projects, because you will not need to enter the needed strings to translate manually – the plugin will do all the work for you.
Don’t forget that in the example are described the PHP-function calls, that is why they have to be inside of PHP-tags.
How works «Polylang Theme Strings»?
You have to install the plugins «Polylang» and «Polylang Theme Strings» on your multilanguage WordPress CMS project and they must be both active. When you are in the settings of plugin (Polylang) in the tab «Strings translation» the «Polylang Theme Strings» scans automatically the active theme of your project, find all the code strings that needed to be translated, adds them to the register, displays them on that page and gives to user the ability to translate these strings.
Like you can see, the «Polylang Theme Strings» is perfectly integrate with the «Polylang» plugin and works in automatically mode – it is comfortable, simple, and useful!
From version 4.0 «Polylang Theme Strings» got settings page where you can configure the search strings-translations more deeply.
Learn more in http://modeewine.com/en-polylang-theme-strings.
