Say what?

Описание

Этот легкий в использовании плагин позволяет изменять строки на вашем сайте без необходимости редактировать код ядра WordPress, плагинов или тем. Просто введите оригинал строки и строку, которой вы хотите его заменить. Плагин сам сделает всё остальное!

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

Check out Say What Pro for:

  • String discovery — Don’t have the time/expertise to find strings in the code, set up replacements easily with easy-to-use autocomplete features
  • Произвольная замена текста — замена отдельных слов или фрагментов текста на сайте
  • 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

Treeware

You’re free to use this package for free, but if it makes it to your production environment please buy the world some trees.

Скриншоты

  • 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

Отзывы

29.08.2020
First of all, we cannot judge the functionality of the product, as it has never been used. This evaluation refers only to the developer's dealings with customers. Therefore we also award three stars instead of one, because we hypothetically assume that the product itself works and does what it is supposed to do. The invoice issued is unfortunately unusable for non-UK tax authorities and was rejected by our authority. Not only are the necessary details for tax authorities missing, the invoice is only available as an e-mail and not - as is usually the case - as a PDF. In one word: unusable. Our request regarding a properly issued invoice was not met in any way. The reaction is pure impudence. Say what Pro was immediately removed from our system and will never be used again, as we cannot be sure that the manufacturer will not react just as dubiously in the event of a further support request. For B2B this supplier is unfortunately not recommended from our perspective. [Update: correction of header typo]
20.01.2020
It works like a charm but a little bit confused for me at first time. This is the rule. 1. It will be easy to replace some core wordpress word/phrase. Just fill in the original string and replacement string, ignore the other two. 2. Changing/replacing plugin text, it requires to fill in the text domain field. We need to find source code of the plugin and plugin editor can help us to so. So text domain text is as below. $foo = __('This is a translatable string', 'text-domain'); Just copy it and paste into the text domain field. Thanks for your great plugin.
Посмотреть все 75 отзывов

Участники и разработчики

«Say what?» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Say what?» переведён на 7 языков. Благодарим переводчиков за их работу.

Перевести «Say what?» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

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

  • Обновлена информация о функционале Про-версии

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