An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code. Simply enter the current string, and what you want to replace it with and the plugin will automatically do the rest!
- Install it as you would any other plugin
- Activate it
- Head over to Tools » Text changes and configure some string replacements
Note: This plugin may produce performance issues if you configure a large number of string translations. I'd be interested in feedback if that's the case.
You can only use the plugin to translate strings which are marked for translation.
You can either have a guess, or checkout the plugin in question's source code, translatable strings are generally wrapped in __(), _e(), or _x(), for example:
$foo = __('This is a translatable string', 'plugin-domain');
"Say What?" has preliminary support for exporting, and importing replacements via http://wp-cli.org/. The following commands are currently supported:
- export - Export all current string replacements.
- import - Import string replacements from a CSV file.
- list - Export all current string replacements. Synonym for 'export'.
- update - update string replacements from a CSV file.
Examples:
$ wp say-what export
+-----------+-------------+--------+--------------------+---------+
| string_id | orig_string | domain | replacement_string | context |
+-----------+-------------+--------+--------------------+---------+
| 3 | Tools | | Yada dada tools! | |
+-----------+-------------+--------+--------------------+---------+
$ wp say-what import import-file.csv
Success: 27 new items created.
$ wp say-what update update-file.csv
Success: 14 records updated, 19 new items created.
- Avoid warnings on initial activation.
- Avoid issues where strings contain HTML / entities
Add info box about Pro version
Support for WP-CLI import and export.
Swap database to UTF-8 to fix problems entering non-ASCII strings.
Fix incorrect escaping on the admin screens.
Fix initial DB table creation Fix translations for strings with no domain
Allow strings with context to be replaced
Documentation fixes, and help information
Fix issue with fields being swapped when first entered
Beta ready for testing and feedback