Override String Translations

Description

WP Override Translations allows you to easily override any text string in WordPress, WooCommerce, and plugin/theme translations directly from your admin panel – no code editing required!

🔒 Security First (v3.0.0)
* CSRF protection with WordPress nonces
* User capability validation
* XSS prevention with secure coding practices
* No inline JavaScript handlers

⚡ High Performance (v3.0.0)
* Modern MutationObserver API for DOM changes (replaces resource-heavy intervals)
* Pre-built translation maps for faster processing
* Optimized JavaScript with comprehensive error handling
* Graceful fallback for older browsers

✨ Key Features:
* Override any WordPress core, plugin, or theme text strings
* Full WooCommerce compatibility for e-commerce sites
* Support for HTML in translations (bold, links, etc.)
* CSS selector-based DOM string replacement for dynamic content
* Translates all _e(), __(), gettext, and ngettext calls
* Real-time JavaScript translation for dynamic elements
* WordPress coding standards compliant

📝 What You Can Translate:
* WordPress core strings
* WooCommerce product pages, checkout, cart messages
* Plugin and theme text strings
* Button labels, error messages, form fields
* Any string that uses WordPress translation functions

❌ Limitations:
Dynamic strings with placeholders like %s or %d cannot be translated (e.g., « %s has been added to your cart »).

Captures d’écrans

  • Chaîne originale de l’interface publique
  • Chaîne surchargée depuis l’interface d’administration
  • Chaîne surchargée
  • Chaîne originale de WooCommerce sur l’interface publique
  • Chaîne surchargée depuis l’interface d’administration
  • Chaîne WooCommerce surchargée avec HTML

Installation

  1. Téléversez le répertoire WP Override String Translations dans le répertoire /wp-content/plugins/
  2. Activez l’extension depuis le menu « Extensions » de WordPress.
  3. Cliquez sur Réglages dans votre liste d’extensions (ou visitez le sous-menu Réglages)
  4. Terminé !

FAQ

Comment fonctionne cette extension ?

Elle utilise un filtre WordPress gettext et ngettext

Avis

8 février 2022
Does not work with Woocommerce! And when you translate, translated text disappears! So you don’t know what you translated and what not!
11 avril 2021
Make changes to existed translation string with simplest way. 看到甚麼翻譯不順眼就直接替換掉, 粗暴又有效. 太棒了
18 décembre 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 octobre 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 😉
Lire les 7 avis

Contributeurs/contributrices & développeurs/développeuses

« Override String Translations » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Override String Translations” a été traduit dans 1 locale. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Override String Translations » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

3.0.0

  • MAJOR SECURITY UPDATES: Added CSRF protection with WordPress nonces
  • MAJOR PERFORMANCE IMPROVEMENTS: Replaced setInterval with MutationObserver for better browser performance
  • SECURITY: Added user capability checks for admin functions
  • SECURITY: Removed inline onClick handlers to prevent XSS vulnerabilities
  • PERFORMANCE: Pre-built translation maps to eliminate redundant processing loops
  • PERFORMANCE: Optimized JavaScript error handling with try-catch blocks and graceful degradation
  • STANDARDS: Fixed all WordPress coding standards violations (variable naming, text domains, etc.)
  • JAVASCRIPT: Enhanced DOM manipulation with better selector validation
  • JAVASCRIPT: Added fallback support for older browsers without MutationObserver
  • ADMIN: Improved user interface with proper event listeners instead of inline JavaScript
  • ADMIN: Added wp_localize_script for secure PHP-to-JavaScript data transfer
  • TRANSLATION: Added proper text domain support for all translatable strings
  • CODE QUALITY: Comprehensive error handling and logging improvements
  • COMPATIBILITY: Maintained backward compatibility while modernizing codebase

2.0.0

  • Improvements for WordPress 6.8 support
  • Add javascript with selector translate
  • Code improvements
  • Code Fixes

1.5.0

  • Support for WordPress 6.x added

1.4.0

  • Support for WordPress 5.9 added
  • Bug fix

1.3.0

  • Support for WordPress 5.8 added
  • Minor bug fix

1.2.1

  • Support for WordPress 5.7 added

1.2.0

  • Correctif de bugs et ajout de la prise en charge de WordPress 5.6

1.1.0

  • Compatible avec WordPress 5.3
  • Correctif de bug

1.0.0

  • Première version publique.