This topic has 11 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #212133
     0rca
    Participant

    Hi there,

    digging after some missing translation I came to the file /wp-content/themes/kleo/buddypress/members/single/messages/single.php

    There we have the lines

    <?php printf( __( ‘Conversation between %s recipients.’, ‘buddypress’ ), number_format_i18n( bp_get_thread_recipients_count() ) ); ?>

    <?php else : ?>

    <?php printf( __( ‘Conversation between %s’, ‘buddypress’ ), bp_get_thread_recipients_list() ); ?>

    <?php endif; ?>

     

    So the translations should come from the buddypress languages file. We did the translations there,  but they ignored. Changing the string directly works, but is out of the question. Could you please check this and let us know how to fix it?

    Thanks

    Michael

    #212155
     Laura
    Moderator

    Hello, have you tried using Loco Translate? If not working you may need to copy the file to the child theme and change it there

    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 🙂

    #212169
     0rca
    Participant

    We are using Loco Translate, yes. And the translation has been correctly done: https://cloud.deinhardt.com/index.php/s/4FG5wib2a3Yp6GD
    But it doesn’t apply: https://cloud.deinhardt.com/index.php/s/QSC355ASmHgY8Tn

    So why is your buddypress template file not using the correct language file? As i wrote, I can change the text directly in wp-content/themes/kleo/buddypress/members/single/messages/single.php, which shows that no language file is used.

    #212209
     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 🙂

    #212980
     0rca
    Participant

    Any news?

    #213011
     Radu
    Moderator

    Hi,

    Please replace this file content : wp-content/themes/kleo/buddypress/members/single/messages/single.php

    with the content of this one : https://pastebin.com/raw/L2Nnt3JJ

    Let me know, they should be ok now

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #213415
     0rca
    Participant

    Hi Radu,

    sorry for the late reply, but we launched the site last week and had our hands full.

    Thanks for the code. I swapped out the code, but the translation still isn’t applied. I checked Loco translate again and the strings are translated correctly. Cache was cleared etc. so unfortunately it doesn’t yet work.

    Best regards
    Michael

    #213416
     0rca
    Participant

    Hi again,

    tracking another missing translation I found something similar in \kleo\vc_templates\vc_posts_grid.php

    The “Load More” button is created like this

    COPY CODE
    <div class="posts-load-more text-center">
    			<a data-paged="<?php echo $next_page; ?>" class="btn btn-highlight style2" href="#"><?php _e('Load more', 'k-elements'); ?></a>
    		</div>

    but the string does not exist in the K-Elements language files.

    #213419
     Radu
    Moderator

    Try to change
    from
    _e(‘Load more’, ‘k-elements’);
    to
    _e(‘Load more’, ‘kleo_framework’);

    Then re-sync/rescan po/template file in loco translate and let me know if the strings appear in kleo theme after.

    For the “Conversation between” translation issue i think you have an outdated template since on current messages single.php file doesn’t contain identically if else statement see the current content file here : https://pastebin.com/raw/6Xh9c9TX

    In first instance try replace this file content : wp-content/themes/kleo/buddypress/members/single/messages/single.php

    with the content of this : https://pastebin.com/raw/6Xh9c9TX

    Or if you don’t have latest theme version update it to latest version.

    Let me know
    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #213441
     0rca
    Participant

    Hi Radu,

    unfortunately the Load more string is not exiting in kleo-framework either. Why not simply use the original ‘js_composer’ as text domain, that works. So you would have to add the strings to either k-elemenst or kleo-framework or change the text domain in all vc_templates files in the next theme update.

    I am a bit confused about your second part. We are on 4.4 (4.4.1 is not yet available as an update). I have tried every single.php you gave me, but it doesn’t work 🙁

    Best regards
    Michael

    #213442
     0rca
    Participant

    I think I found the problem. The original string in the buddypress pot is ‘Conversation between %s.’ and not ‘Conversation between %s and you.’
    As soon as I change it, the translation works.

    COPY CODE
    <span class="highlight">
    
    				<?php if ( !bp_get_the_thread_recipients() ) : ?>
    
                        <?php _e( 'You are alone in this conversation.', 'buddypress' ); ?>
    
                    <?php else : ?>
    
                        <?php printf( __( 'Conversation between %s.', 'buddypress' ), bp_get_the_thread_recipients() ); ?>
    
                    <?php endif; ?>
    
    			</span>

    So this will have to be changed in wp-content/themes/kleo/buddypress/members/single/messages/single.php in the next theme update too, right?

    #213461
     Radu
    Moderator

    Hi,

    Yes.

    This will be for the next version : https://pastebin.com/raw/eZ7qP6A9

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?