Title: esc_html__ translate?
Last modified: April 4, 2023

---

# esc_html__ translate?

 *  [Loosie94](https://wordpress.org/support/users/loosie94/)
 * (@loosie94)
 * [3 years ago](https://wordpress.org/support/topic/esc_html__-translate/)
 * Hi, is it possible to add the function “esc_html__” to the search function? I’m
   trying to translate Gravity Forms string, but they seem to use the function “
   esc_html__” for there labels in there plugin. 
   This function is not includes 
   in this plugin it seems.Is this possible? Or would this give issues?Thanks in
   advance!
    -  This topic was modified 3 years ago by [Loosie94](https://wordpress.org/support/users/loosie94/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/esc_html__-translate/#post-16680511)
 * [@loosie94](https://wordpress.org/support/users/loosie94/), function “esc_html__”
   should work with ttfp plugin.
 * Please give me some example of code where there is a problem with translation.
 *  Plugin Author [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * (@marcinkazmierski)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/esc_html__-translate/#post-16823677)
 * [@loosie94](https://wordpress.org/support/users/loosie94/) scanner in plugin 
   searches for esc_html__ functions:
 *     ```wp-block-code
                   // find wp functions: esc_html_e, esc_html, esc_html__, esc_attr, esc_attr_e, esc_attr__
                   preg_match_all("/[\s=\(\.]+(esc_html|esc_attr)[_e]*[\s]*\([\s]*[\'](.*?)[\'][\s]*[,]*[\s]*[\']*(.*?)[\']*[\s]*\)/s", $content, $matches);
                   if (!empty($matches[2])) {
                       $strings = array_merge($strings, $matches[2]);
                   }
       ```
   
 * please confirm the problem with an example 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘esc_html__ translate?’ is closed to new replies.

 * ![](https://ps.w.org/theme-translation-for-polylang/assets/icon-256x256.png?rev
   =1431912)
 * [Theme and plugin translation for Polylang (TTfP)](https://wordpress.org/plugins/theme-translation-for-polylang/)
 * [Support Threads](https://wordpress.org/support/plugin/theme-translation-for-polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-translation-for-polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-translation-for-polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-translation-for-polylang/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marcin Kazmierski](https://wordpress.org/support/users/marcinkazmierski/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/esc_html__-translate/#post-16823677)
 * Status: not resolved