Forum Replies Created
-
Author
-
March 14, 2016 at 04:50 in reply to: “Looking for” tab in user profile disappear when translate #110264conekeoParticipant
after reading this thread: https://archived.seventhqueen.com/forums/topic/wmpl-to-translate-profile-fields
I put this in wp-content\themes\sweetdate-child\functions.php/**
* translate profile fields
*/add_filter(‘bp_get_the_profile_field_name’, ‘kleo_translated_profile_name’);
add_filter(‘bp_get_the_profile_field_value’, ‘kleo_translated_profile_value’);
function kleo_translated_profile_name($name) {
return __($name,’kleo_framework’);
}function kleo_translated_profile_value($value) {
global $field;
$field->data->value = __(bp_unserialize_profile_field( $field->data->value ), ‘kleo_framework’);
return $field->data->value;
}Seems to do partially the job! good idea?
March 11, 2016 at 22:46 in reply to: “Looking for” tab in user profile disappear when translate #110072conekeoParticipantBut the Base, Myself Summary,Lifestyle,Physical and all the fields under those tabs are still not translated! :’-(
see: http://huklao.com/members/chuck-lecoq/March 11, 2016 at 20:17 in reply to: “Looking for” tab in user profile disappear when translate #110027conekeoParticipantI saw in the source code in wp-content\themes\sweetdate\custom_buddypress\class-bp-tabs.php
line 134 is not translated and use the field from the database directly.March 11, 2016 at 19:59 in reply to: “Looking for” tab in user profile disappear when translate #110017conekeoParticipantby doing that when I want the user switch to English, the non-english fields is shown now for English user!
Did I miss something?
I’m using qtranslate X language switcher.March 10, 2016 at 22:04 in reply to: “Looking for” tab in user profile disappear when translate #109897conekeoParticipantfind in attachment the .po and .mo I’m using!
Attachments:
You must be logged in to view attached files.March 10, 2016 at 22:01 in reply to: “Looking for” tab in user profile disappear when translate #109894conekeoParticipantBy changing the .po and .mo to “kleo_framework-xx” and putting it in wp-content/languages/, I lost some translation!:-(
When I’m putting it back in \wp-content\themes\sweetdate\languages, I got a better result. But the fields that causing me the problem are still not translated!
I tried other langages other than English and still the same result (see attachment).
The fields is not translated.Attachments:
You must be logged in to view attached files.March 9, 2016 at 21:35 in reply to: “Looking for” tab in user profile disappear when translate #109616conekeoParticipantI moved the .po and .mo from the SweetDate theme folder \wp-content\themes\sweetdate\languages to wp-content/languages/, but nothing happen!
See attachment for french .po translation, as you can see all the fields are translated!let me know!
Attachments:
You must be logged in to view attached files.March 4, 2016 at 16:24 in reply to: “Looking for” tab in user profile disappear when translate #108555conekeoParticipantAlso I cannot translate all the labels/names under the profile section (see attachment)
Attachments:
You must be logged in to view attached files.conekeoParticipantoh yeah it’s working! I tried a lot of language plugins that didn’t work, but not qtranslateX!
I should have contact you sooner!!! lol!
Thanks! -
AuthorPosts