Title: Translating strings with _ex function
Last modified: September 29, 2016

---

# Translating strings with _ex function

 *  [psdbox](https://wordpress.org/support/users/psdbox/)
 * (@psdbox)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/translating-strings-with-_ex-function/)
 * I’m using the Memberpress plugin and this plugin uses the _ex translation function
   to translate the signup fields and other fields.
    For example: <label><?php _ex(‘
   First Name’, ‘ui’, ‘memberpress’); echo ($mepr_options->require_fname_lname)?’*’:”;
 * When I set the WordPress language in Settings>General to Spanish, memberpress
   signup forms appear in english but when I set the WordPress locale to English
   and then switch the language of the website to Spanish with qTranslate, the signup
   form stays in english.
 * Isn’t qTranslate supposed to pull the es_ES locale of the memberpress plugin 
   when switching to spanish?
 * Memberpress does not come with a json config file so I don’t know how to use 
   the _ex function to translate the plugin to spanish when switching language.
    -  This topic was modified 9 years, 7 months ago by [psdbox](https://wordpress.org/support/users/psdbox/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [psdbox](https://wordpress.org/support/users/psdbox/)
 * (@psdbox)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/translating-strings-with-_ex-function/#post-8235691)
 * I managed to solve the problem myself. Looks like I just had to create a languages
   fonder inside the plugin directory and put my .po and .mo files inside and done
   🙂

Viewing 1 replies (of 1 total)

The topic ‘Translating strings with _ex function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [psdbox](https://wordpress.org/support/users/psdbox/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/translating-strings-with-_ex-function/#post-8235691)
 * Status: not resolved