-
Author
-
March 3, 2016 at 17:27 #108279
conekeo
ParticipantHi,
I got a weird bug, I’m using PoEdit + q translate X. When I translate the .po file, the “Looking for” tab in user profile disappear when translate it in French or any other languages.
Attachments:
You must be logged in to view attached files.March 4, 2016 at 16:24 #108555conekeo
ParticipantAlso I cannot translate all the labels/names under the profile section (see attachment)
Attachments:
You must be logged in to view attached files.March 4, 2016 at 18:05 #108617Laura
ModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 9, 2016 at 19:56 #109577Radu
ModeratorHi,
Where are your language files located ?
Your issue is happens when the location of the lang theme files are in other path than wp-content/languages/ , so try to move the lang files there.
Let me know
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 9, 2016 at 21:35 #109616conekeo
ParticipantI 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 10, 2016 at 16:56 #109772Radu
ModeratorRename the translation files from fr_FR.mo and fr_FR.po to kleo_framework-fr_FR.mo / kleo_framework-fr_FR.po
The users that have translated the sweetdate theme has used with success Loco translate with saving theme lang files into global language directory (wp-content/languages/)
Let me know if it works by prefixing the lang files with kleo_framework-
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 10, 2016 at 22:01 #109894conekeo
ParticipantBy 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 10, 2016 at 22:04 #109897conekeo
Participantfind in attachment the .po and .mo I’m using!
Attachments:
You must be logged in to view attached files.March 11, 2016 at 19:23 #110007Radu
ModeratorHmmm somehow the name,birthday, I am a, are name of the fields ? you should change the name form english to your language
Check from wp-admin -> users -> profile fields
Or access this link after you replace localhost from url http://localhost/wp-admin/users.php?page=bp-profile-setup
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 11, 2016 at 19:59 #110017conekeo
Participantby 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 11, 2016 at 20:17 #110027conekeo
ParticipantI 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 22:46 #110072conekeo
ParticipantBut 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 14, 2016 at 04:50 #110264conekeo
Participantafter 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 22, 2016 at 17:05 #112215Andrei
ModeratorHi,
I don’t know if will help in your case but please note that the theme is made to work with WPML, so if you’re using other plugins for having a multi-language website then it’s that plugin responsibility to create a compatibility with BuddyPress. Even when using BuddyPress with WPML you still need to add an additional plugin called “BuddyPress Multilingual” for the WPML plugin to work properly with BuddyPress.
Please let me know if I can help you with anything else.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.