Title: WPML translation
Last modified: August 21, 2016

---

# WPML translation

 *  Resolved [MI](https://wordpress.org/support/users/mariukas/)
 * (@mariukas)
 * [12 years ago](https://wordpress.org/support/topic/wpml-translation-3/)
 * Hello,
 * How can I translate messages? Can see some of the strings in WPML string management
   tool, but after adding translation it doesn’t seems to be working. Also tried
   to “replace” the string with getText and to translate it as theme part using 
   this function:
 *     ```
       function my_text_strings( $translated_text, $text, $domain ) {
       switch ( $translated_text ) {
       case '<strong>ERROR</strong>: please type a comment.' :
       $translated_text = __( 'CUSTOM TEXT', 'THEME NAME' );
       break;
   
       }
       return $translated_text;
   
       }
       add_filter( 'gettext', 'my_text_strings', 20, 3 );
       ```
   
 * It replaced default text, but after translating it over WMPL it is still in one
   language.
 * Also i have tried to change default strings in wp-ajaxify-comments.php (in line
   37 and line 246), but it didn’t changed from default text.
 * Any help?
 * Thanks!
 * [https://wordpress.org/plugins/wp-ajaxify-comments/](https://wordpress.org/plugins/wp-ajaxify-comments/)

Viewing 1 replies (of 1 total)

 *  [janjonas](https://wordpress.org/support/users/janjonas/)
 * (@janjonas)
 * [12 years ago](https://wordpress.org/support/topic/wpml-translation-3/#post-4810604)
 * Closing this thread as it is a duplicated one (see [http://wordpress.org/support/topic/wpml-translation-custom-messages](http://wordpress.org/support/topic/wpml-translation-custom-messages)).

Viewing 1 replies (of 1 total)

The topic ‘WPML translation’ is closed to new replies.

 * ![](https://ps.w.org/wp-ajaxify-comments/assets/icon-256x256.png?rev=2962290)
 * [Ajaxify Comments - Ajax and Lazy Loading Comments](https://wordpress.org/plugins/wp-ajaxify-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ajaxify-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ajaxify-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ajaxify-comments/reviews/)

## Tags

 * [custom messages](https://wordpress.org/support/topic-tag/custom-messages/)
 * [strings](https://wordpress.org/support/topic-tag/strings/)

 * 1 reply
 * 2 participants
 * Last reply from: [janjonas](https://wordpress.org/support/users/janjonas/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/wpml-translation-3/#post-4810604)
 * Status: resolved