This topic has 13 replies, 4 voices, and was last updated 8 years by Andrei.

  • Author
  • #108279
     conekeo
    Participant

    Hi,

     

    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.
    #108555
     conekeo
    Participant

    Also I cannot translate all the labels/names under the profile section (see attachment)

    Attachments:
    You must be logged in to view attached files.
    #108617
     Laura
    Moderator

    Hello, 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 solution

    Laura 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 🙂

    #109577
     Radu
    Moderator

    Hi,

    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 solution
    #109616
     conekeo
    Participant

    I 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.
    #109772
     Radu
    Moderator

    Rename 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 solution
    #109894
     conekeo
    Participant

    By 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.
    #109897
     conekeo
    Participant

    find in attachment the .po and .mo I’m using!

    Attachments:
    You must be logged in to view attached files.
    #110007
     Radu
    Moderator

    Hmmm 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 solution
    #110017
     conekeo
    Participant

    by 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.

    #110027
     conekeo
    Participant

    I 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.

    #110072
     conekeo
    Participant

    But the Base, Myself Summary,Lifestyle,Physical and all the fields under those tabs are still not translated! :’-(
    see: http://huklao.com/members/chuck-lecoq/

    #110264
     conekeo
    Participant

    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?

    #112215
     Andrei
    Moderator

    Hi,

    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
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?