BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Where to translate
- This topic has 10 replies, 3 contibutors, and was last updated 9 years, 6 months ago by Anonymous.
Question
February 7, 2015 at 3:44 pm #35589@yannHello.
I’m translating Boss Theme.Maybe this topic can help me and other people.
For changing avatar, i found this sentence in mo file, make translation, but nothing happend.
-Change Avatar
-Your avatar will be used on your profile and throughout the site. If there is a Gravatar associated with your account email we will use that, or you can upload an image from your computer.
-If you’d like to delete your current avatar but not upload a new one, please use the delete avatar button.
-Delete my avatar
on the wall, for the icon “like this”, i don’t find the sentence “like this”
I don’t find the sentences “xxx posted an update” or “you posted an update” on activity…
Well, I guess that’s all for now…
Answers
February 7, 2015 at 4:49 pm #35592@yannNot really a translation, but on group page, we have for exemple in bold above “hidden” and below “group”
It doesn’t make sense in french…
How to make “group” in bold above, and below “hidden”?
February 8, 2015 at 9:57 am #35612@alyssa-buddyboss
AlyssaParticipant@yann the first issue “change avatar” could be a BuddyPress translation, same with “delete avatar”
You second issue “like this” is in the BuddyBoss Wall Language file and will probably look like “%s liked this” in the language file.
I’m not sure what you are referring to in the post from 4:49pm. Can you send me an image?February 8, 2015 at 10:55 am #35617@yannThank you @tjchester
It’s ok for “Like This”
As you can see on attach files, expression are in boss theme, i translated them, but take not effect on my site.
EDIT : i can’t attach po files. So i contact support by mail…
Now, the image for “hidden group”
February 8, 2015 at 12:59 pm #35627@alyssa-buddyboss
AlyssaParticipant@yann even though this translation may be in the buddyboss mo/po file it is still translated by BuddyPress. You can translate it directly in this file: boss/buddypress/members/single/profile/change-avatar.php copy this file and place it here:
wp-content/themes/buddyboss-child/buddypress/members/single/profile/change-avatar.php
Then make your translation directly in the child theme.February 8, 2015 at 2:56 pm #35633@yannok @tjchester, thank you, it works perfectly!
But i don’t anderstand why it works for some sentences and don’t for others…
February 9, 2015 at 10:25 am #35683@alyssa-buddyboss
AlyssaParticipant@yann every theme and every plugin has a different language file. You need to translate ALL of these files to translate a site. It is getting complex which is why codestyling is a good plugin to consolidate translation of WordPress and themes/plugins.
February 12, 2015 at 9:56 am #35857@yannHello!!
Since the first day, i do translation with loco translate pluggin.
Do i create translation files in boss theme or in child theme?
I ask about that because with update of boos theme, i lost all my work (and don’t make back up, so dummy i am).
February 12, 2015 at 10:01 pm #35891@alyssa-buddyboss
AlyssaParticipant@yann I’m not familiar with the plugin but if you have the option put ALL changes in the child theme.
May 3, 2015 at 2:21 pm #39699@yannok… for hidden groups (February 8, 2015 at 10:55 am)
in /buddypress/groups/single
change
<?php global $groups_template; $group =& $groups_template->group; if ( 'public' == $group->status ) { $type = __( "Public", "boss" ); } else if ( 'hidden' == $group->status ) { $type = __( "Hidden", "boss" ); } else if ( 'private' == $group->status ) { $type = __( "Private", "boss" ); } else { $type = ucwords( $group->status ); } echo $type; ?> </p> <p class="small"><?php _e("Group",'boss'); ?></p>
by
<p class="small"><?php _e("Group",'boss'); ?></p> <?php global $groups_template; $group =& $groups_template->group; if ( 'public' == $group->status ) { $type = __( "Public", "boss" ); } else if ( 'hidden' == $group->status ) { $type = __( "Hidden", "boss" ); } else if ( 'private' == $group->status ) { $type = __( "Private", "boss" ); } else { $type = ucwords( $group->status ); } echo $type; ?> </p>
May 8, 2015 at 1:32 am #39941@
AnonymousHi @yann it will be better you use this approach https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
No need to alter the theme files
and keep all translation for plugins inside /wp-content/languages/plugins/
and for themes tranlation file inside /wp-content/languages/themes/
this will also keep all translation preserved even you update the plugin or theme
Regards
Varun Dubey
- The question ‘Where to translate’ is closed to new replies.