Title: gettext detection
Last modified: August 22, 2016

---

# gettext detection

 *  [adiskx](https://wordpress.org/support/users/adiskx/)
 * (@adiskx)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/gettext-detection/)
 * Problem.
    I have CentOS 6. PHP with gettext compiled in. Plugin not detect ‘gettext’.
   Buttons disabled.
 * [SOLUTION]
    In class.admin-renderer.php in function is_native_gettext_available()
   change to:
 *     ```
       // gettext extension is required
       if ( !function_exists('dngettext')) {
           $result = 1;
           return 1;
       };
       ```
   
 * [https://wordpress.org/plugins/wp-performance-pack/](https://wordpress.org/plugins/wp-performance-pack/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bjoern](https://wordpress.org/support/users/greencp/)
 * (@greencp)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/gettext-detection/#post-5749032)
 * Do you have any idea as to why “dngettext” exists but not “gettext”?

Viewing 1 replies (of 1 total)

The topic ‘gettext detection’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-performance-pack_6d9fb6.svg)
 * [WP Performance Pack](https://wordpress.org/plugins/wp-performance-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-performance-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-performance-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-performance-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-performance-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-performance-pack/reviews/)

## Tags

 * [gettext](https://wordpress.org/support/topic-tag/gettext/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bjoern](https://wordpress.org/support/users/greencp/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/gettext-detection/#post-5749032)
 * Status: not resolved