BuddyBoss Home – Web Support Forums Themes Boss. theme Where to translate

Viewing 11 posts - 1 through 11 (of 11 total)
  • Question

    #35589
    @yann

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

    #35592
    @yann

    Not 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”?

    #35612

    Alyssa
    Participant
    @alyssa-buddyboss

    @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?

    #35617
    @yann

    Thank 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”

    #35627

    Alyssa
    Participant
    @alyssa-buddyboss

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

    #35633
    @yann

    ok @tjchester, thank you, it works perfectly!

    But i don’t anderstand why it works for some sentences and don’t for others…

    #35683

    Alyssa
    Participant
    @alyssa-buddyboss

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

    #35857
    @yann

    Hello!!

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

    #35891

    Alyssa
    Participant
    @alyssa-buddyboss

    @yann I’m not familiar with the plugin but if you have the option put ALL changes in the child theme.

    #39699
    @yann

    ok… 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>
    #39941

    Anonymous
    @

    Hi @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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The question ‘Where to translate’ is closed to new replies.