Override String Translations

Description

Change the words your site shows, without editing code or translation files.

For example, turn “Add to cart” into “Buy now”, “Related products” into “You may also like” or “Proceed to checkout” into “Complete your order”.

How it works

  1. Open Settings > Override Translations.
  2. Type the text as it appears on your site, then the text you want instead.
  3. Save: the new text shows up right away.

Features

  • Works with the texts of WordPress, your theme and your plugins, WooCommerce included: buttons, labels, notices, form fields, cart and checkout messages.
  • Add simple HTML to the new text, such as bold or a link.
  • Upper and lower case don’t matter: “add to cart” also matches “Add to cart”.
  • JS mode, for texts a normal override can’t reach, like text typed in a page builder or loaded after the page opens: point to the element with a CSS selector and the plugin replaces the text inside it, placeholders and image alt text included.
  • The admin area keeps the original texts.
  • Available in English and Italian.

Screenshots

Installation

  1. Install the plugin from Plugins > Add New, or upload the wp-override-translations folder to /wp-content/plugins/.
  2. Activate it.
  3. Go to Settings > Override Translations and add your first override.

FAQ

What should I type as the original text?

The text as your visitors read it, in your site’s language: on an Italian site type “Aggiungi al carrello”, not “Add to cart”. Type it as written, not as CSS may display it (e.g. uppercase buttons).

A text contains a product name or a number. Can I still change it?

Yes, use its fixed part. To change “Hoodie has been added to your cart”, override “has been added to your cart”.

When do I need JS mode?

When a text is not replaced by a normal override: text typed in page builders or menus, or added by JavaScript after the page loads. Enable JS and enter the CSS selector of the element that contains the text (e.g. .site-header). The plugin then replaces the text, and the placeholder, title and alt attributes, inside those elements, even when they change later.

Does it change the admin area?

No. Overrides apply to the public site and to its AJAX requests; the admin screens keep the original text.

Can I translate the plugin into my language?

Yes. Contribute on translate.wordpress.org, or start from languages/wp-override-translations.pot with a tool like Poedit.

What happens to my overrides when I delete the plugin?

They are removed together with the plugin. Deactivating it keeps them.

Reviews

❄️2️⃣ 8, 2022
Does not work with Woocommerce! And when you translate, translated text disappears! So you don't know what you translated and what not!
🌸4️⃣ 11, 2021
Make changes to existed translation string with simplest way. 看到甚麼翻譯不順眼就直接替換掉, 粗暴又有效. 太棒了
❄️1️⃣2️⃣ 18, 2020
Anyone does not calculate the functionality of this plugin, after spending days looking for how to translate certain words of a website in which I did not want to use the rest of the robust plugins for translations by simply changing 4 texts, I found this plugin and it is well worth it in leave a recommendation, because they deserve it. Keep moving forward.
🍂 🔟 12, 2021
Ce plugin est juste magique, enfin mes traductions récalcitrantes sont faites sur des plugins impossible à traduire, même avec poedit… Mille Merci au Développeur ! Ce plugin soigne aussi les nerfs 😉
Read all 7 reviews

Contributors & Developers

“Override String Translations” is open source software. The following people have contributed to this plugin.

Contributors

“Override String Translations” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Override String Translations” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

4.1.0

  • Tested up to WordPress 7.1.
  • Fix: HTML replacements were ignored on plain-text strings.
  • Fix: removing a row in the settings could move the JS option to another row.
  • Fix: JS mode could freeze the page when the replacement contains the original text (e.g. “Search” to “Search products”).
  • Fix: JS mode removed the spaces around the replaced text.
  • Fix: overrides no longer depend on the order they were saved in; the longest text wins.
  • New: context strings (_x(), _nx()) and front-end AJAX responses are covered.
  • New: JS mode also handles content added later inside the selected elements and selectors containing commas.
  • New: Italian translation.
  • Plugin assets are loaded as cacheable files, only where needed; settings are removed when the plugin is deleted.

4.0.0

  • Tested up to WordPress 7.0; requires PHP 7.4.
  • Settings page redesigned, with an override counter and no jQuery.
  • Safer output escaping.

3.0.0

  • JS mode reacts to page changes instead of polling.
  • Capability check on save, no inline event handlers, translatable interface.

2.0.0

  • New JS mode with CSS selectors. Tested up to WordPress 6.8.

1.5.0

  • WordPress 6.x support.

1.4.0

  • WordPress 5.9 support and bug fixes.

1.3.0

  • WordPress 5.8 support and bug fixes.

1.2.1

  • WordPress 5.7 support.

1.2.0

  • WordPress 5.6 support and bug fixes.

1.1.0

  • WordPress 5.3 support and bug fixes.

1.0.0

  • First release.