Title: Register WordPress Users &#8211; Translate Custom Fields
Last modified: August 22, 2016

---

# Register WordPress Users – Translate Custom Fields

 *  [ula schmied](https://wordpress.org/support/users/ula-schmied/)
 * (@ula-schmied)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/register-wordpress-users-translate-custom-fields-1/)
 * Hi, I’m configuring a e-learning website that works with Buddypress plugin.
    
   For register there are two parts. First part is “Account Details” (user, mail,
   and password). This fields are provided for wordpress system Second part “Profile
   Details”. The profile details are custom fields created by myself in: Wordpress
   <Users<Profile Fields
 * The website I’m configuring is in two languages, Spanish and Portuguese. Spanish
   as a main languages
    When I visit spanish version all form is in Spanish. When
   I visit portuguese version all form is in portuguese exept the “Profile Details”.
   That’s reasonable, all other register features are provided by the system, so
   if the system is in two languages this fields are translated automatically. But
   I created custom fields, and the system don’t have in the .po .mo files this 
   new items. So, custom profile fields are not translated. I tried to solve, using[:
   es][:pt] in custom fields name to filter languages. This kind of code works in
   all website, but doesn’t works for profile custom fields.
 * Using WordPress 3.9.2
    Budypress 2.02 Mq Translate 2.6.7
 * I asked before the same in budypress forum, they give me a solution but they 
   are not sure, and tell me to ask in MqTranslate Forum.
    So, do us know if this
   solution will work? A possible solution could be this one given on the mqTranslate
   support.
 * add_filter(‘get_the_author_description’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’);
 * Try to use this (in bp-custom.php or functions.php), but i’m absolutely not sure
   it would work:
 * add_filter(‘bp_get_member_profile_data’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’);
 * and if it works, you can use the [:es][:pt] shortcodes
 * Ask also on the plugin support.
 * [https://wordpress.org/plugins/mqtranslate/](https://wordpress.org/plugins/mqtranslate/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [ula schmied](https://wordpress.org/support/users/ula-schmied/)
 * (@ula-schmied)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/register-wordpress-users-translate-custom-fields-1/#post-5283355)
 * Hi finally I tried the budypress solution
    Add this code `add_filter('get_the_author_description','
   qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage');` But it doesn’t works.
   Any other idea to solve that?
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Register WordPress Users – Translate Custom Fields’ is closed to new 
replies.

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

 * 1 reply
 * 1 participant
 * Last reply from: [ula schmied](https://wordpress.org/support/users/ula-schmied/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/register-wordpress-users-translate-custom-fields-1/#post-5283355)
 * Status: not resolved