| 开发者 | janiko |
|---|---|
| 更新时间 | 2026年10月16日 00:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.7 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.
original|replacement and save. No manual operation is needed after translation updates.Yes, the option style_genre_substitution_rules and its format remain unchanged.
No. Version 2.0 only filters translations at runtime. Files modified by 1.x are not restored by this release.
Yes, scripts using the WordPress wp.i18n package, provided their translations run after the filter is installed. Other JavaScript translation methods are not covered.
The legacy rule format reserves commas as separators and the first vertical bar as the delimiter. These characters cannot currently be used freely in search strings.