Say what?

描述

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!

The plugin’s available for forking and contribution over on GitHub

Check out Say What Pro for:

  • String Discovery and autocomplete – find the strings you need without diving through code. Works with server-side and Javascript-rendered strings
  • Improved performance using text-domain-specific filters
  • Wildcard string replacements – replace individual words, or fragments across your whole site
  • Multi-lingual support – set different replacements for different languages on multi-lingual sites
  • Import/export features – Easy import/export of replacements through the user interface

Support this free plugin

As a business, we already donate a percentage of our profits from premium plugins to global climate change projects. You’re free to use this plugin free of charge, but if you do, please consider buying the world some trees in return. You’ll be creating employment for local families and restoring wildlife habitats.

螢幕截圖

  • Finding a string to replace
  • The admin screen - setting up a replacement
  • The result

安裝

  • Install it as you would any other plugin
  • Activate it
  • Head over to Tools » Text changes and configure some string replacements

常見問題

Can I use it to change any string?

You can only use the plugin to translate strings which are marked for translation.

How do I find the string to translate?

You can either have a guess, or checkout the plugin in question’s source code, translatable strings are generally wrapped in __(), _e(), _n(), or _x(), for example:

$foo = __('This is a translatable string', 'plugin-domain');

The article here shows some examples of what you’re looking for. Alternatively, the Pro version of the plugin provides a String Discovery mode which means you can search for strings on your site via autocomplete suggestions.

Is there any support for importing replacements?

“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.

See the GitHub homepage for examples.

Can I set different replacements for different languages?

Not in the free plugin, however this is available in the Pro version of the plugin

評價

2021年10月14日
The Pro version has been a huge time saver for me and I've used it all over our site. It's so easy to use - I can literally change the text I need to in about 15 seconds. Worth every penny, and one of the best deals around as far as useful/necessary plugins go. In addition, when I had a question today, support responded very quickly and helped me find the info I was looking for - top notch service!
2021年9月10日
After hours of looking through the code, I finally gave up and came to wordpress.org to search for help. I found Say What plugin. It's simple and easy to use (free version)! I was able to tweak the 'wording of WooCommerce' at Checkout. Thank you so much for an awesome plugin! Thank you, Bai!
2021年4月15日
Thank you for creating this plugin. Your efforts made the process of changing a few bits of text generated by one of my plugins a breeze! This type of clean solution is why I love WordPress and the talented developer community. Keep up the great work!
2021年3月16日
sometimes you wish to test things out and deleting and creating from scratch a rule is annoying and time consuming! if you could keep it but in a "disabled" state that will neve be executed if you want to, that would be 5/5 for me. 🙂
2021年3月5日
I just changed my review. User error on my part... sort of important to include the context or it won't change the string. This works as it is supposed to.
閱讀全部83個評價

貢獻者及開發者

“Say what?” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Say what? 外掛目前已有 13 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Say what? 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0.2

  • Reduce size of bundled images
  • Update dev build scripts

2.0.1

  • Improve Javascript performance, and remove lodash dependency (resolves some plugin conflicts)

2.0.0

  • Support for translatable strings rendered through WordPress Javascript framework
  • Supports replacing text in Gutenberg / WooCommerce admin / WooCommerce blocks
  • Update details of Say What? Pro vs free plugin

1.9.7

  • Fix issue where replacement table disappeared at small screen widths
  • Update WordPress compatibility
  • Changes to donation / upsell content

1.9.6

  • Fix link in documentation

1.9.5

  • WordPress 5.5 compatibility
  • Changes to Treeware links

1.9.4

  • Ensure help links open in new windows

1.9.3

  • Fix link target in Treeware content

1.9.2

  • Suggest Treeware donations

1.9.1

  • Update information about Pro features

1.9.0

  • Fix issue adding more strings after downgrade from Pro
  • Update text domain of plugin to match wordpress.org guidelines to aid translations

1.8.2

  • Documentation updates only

1.8.1

  • Update plugin links, include settings and upgrade link
  • Update documentation about pro features
  • Admin styling fixes

1.8.0

  • Fix issues where entities could be double encoded on admin screens.

1.7.1

  • Update to admin marketing message. No functional changes.

1.7

  • Support for _n() and _nx()
  • Support for multi-line strings

1.6

Introduce filters that allows back compatibility for plugins that change their text-domain. Props Pippin Williamson

1.5

Avoid warnings on initial activation.
Avoid issues where strings contain HTML / entities

1.4

Add info box about Pro version

1.3

Support for WP-CLI import and export.

1.2

Swap database to UTF-8 to fix problems entering non-ASCII strings.

1.1

Fix incorrect escaping on the admin screens.

1.0.1

Fix initial DB table creation
Fix translations for strings with no domain

1.0

Allow strings with context to be replaced

0.9.3

Documentation improvements

0.9.2

Avoid wpdb->prepare warning
Minor admin fixes, don’t double translate strings

0.9.1

Fix issue with fields being swapped when first entered

0.9

Beta ready for testing and feedback