內容簡介
Style Genre 是一款讓使用者調整翻譯用詞的外掛,例如將 autrice 替換為 auteure。此外掛在 PHP gettext 函數或 JavaScript wp.i18n 函數返回翻譯字串時應用替換,無需重寫翻譯檔案。
【主要功能】
• 調整翻譯用詞的替換功能
• 支援 PHP 和 JavaScript 的翻譯字串
• 保留舊版替換規則
外掛標籤
開發者團隊
原文外掛簡介
Style Genre lets you adjust translation wording, for example autrice|auteure, Autrice|Auteure.
Version 2.0 applies substitutions when translated strings are returned by PHP gettext functions or JavaScript wp.i18n functions. No translation files are rewritten and no recurring substitution job is necessary.
Existing substitution rules stored by Style Genre 1.x are preserved.
The replacements are literal, case-sensitive, and occur inside translated strings. They are applied in the order listed. This plugin does not intercept arbitrary text, third-party JavaScript localization systems, or already-rendered HTML.
