-
Author
-
October 24, 2018 at 18:05 #2121330rcaParticipant
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
October 25, 2018 at 00:58 #212155LauraModeratorHello, 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 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 🙂
October 25, 2018 at 11:05 #2121690rcaParticipantWe 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/QSC355ASmHgY8TnSo 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.
October 25, 2018 at 23:42 #212209LauraModeratorHello, 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 🙂
November 7, 2018 at 13:52 #213011RaduModeratorHi,
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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 14, 2018 at 12:45 #2134150rcaParticipantHi 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
MichaelNovember 14, 2018 at 13:06 #2134160rcaParticipantHi 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.
November 14, 2018 at 16:40 #213419RaduModeratorTry 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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 15, 2018 at 11:19 #2134410rcaParticipantHi 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
MichaelNovember 15, 2018 at 11:36 #2134420rcaParticipantI 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?
November 15, 2018 at 17:58 #213461RaduModeratorHi,
Yes.
This will be for the next version : https://pastebin.com/raw/eZ7qP6A9
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.