BuddyBoss Home – Web Support Forums Themes OneSocial theme Change name of 'Friends' to 'Vendors'

Tagged: 

Viewing 15 posts - 1 through 15 (of 18 total)
  • Question

    #62732
    @costyclan

    I want to change the title of ‘Friends’, ‘my friends’, ‘add friend’ etc to ‘Vendors’.
    How can I do this please

    Answers

    #62872
    @anve

    Hi @costyclan,

    Please attach a screenshot of the pages from where you want to replace the text with ‘vendors’.

    Regards
    Anve

    #63012
    @costyclan

    In every place where buddypress states friend/friends. I believe it has to be changed via language file?
    One example is in the members directory I would like to change ‘Add Friend’ to ‘Add Contact’.
    My members directory is used as a ‘Vendor Directory’ for brides to find wedding vendors, so I want to call them contacts so that she can make a separate list of the vendors she’s using to plan her wedding. Hope this makes sense.
    3 screenshots attached with examples highlighted in red box.

    #63051

    Anonymous
    @

    Hi @costyclan, You can easily translate it through Loco Translate plugin

    just install the plugin
    https://wordpress.org/plugins/loco-translate/

    Go to plugin option
    Select the Plugin and theme to change the string..

    For help:
    https://localise.biz/help/wordpress/translate-plugin/beginners

    Regards

    #63087
    @costyclan

    thank you @pallavi, installing and attempting to use plugin now. Getting the following error:
    //
    Other potential issues with OneSocial

    Theme does not declare a “Text Domain” .. Loco has guessed “onesocial”
    Theme has a strange POT file name (xx_XX.pot). A better name would be “onesocial.pot”
    //
    Should I change the .pot file name to onesocial.pot ??
    Also, I use a child theme but do I run this plugin on main theme?
    What happens after theme updates?

    Thanks Pallavi this really helps me out

    #63091
    @costyclan

    So I’ve created the .po and .mo files just not sure where to put them? Child theme, Onesocial theme or wp-content/languages ??
    Amy I way off?

    #63894

    Anonymous
    @

    Hi @costyclan
    Ideally xx_XX.pot should be saved as onesocial.pot

    it should be like this where xx_XX is your language

    wp-content/languages/themes/onesocial-xx_XX.po
    wp-content/languages/themes/onesocial-xx_XX.mo

    Regards
    Varun Dubey

    #66158
    @costyclan

    @vapvarun
    the translation has worked for some areas but not others. See attached screenshots.
    Can you tell me how I can change the other items highlighted?

    #66162
    @costyclan

    I may have answered my own question… I need to do translation for each relevant plugin including Buddypress, not just the theme, correct?

    #66173
    @costyclan

    Yep, got it all working. Another question though…
    How do I change the URL to /contacts (as per attached screenshot)

    #66177

    Anonymous
    @

    Hi @costyclan, To change the slug, you can use from within bp-custom.php
    define ( ‘BP_FRIENDS_SLUG’, ‘whatever’ );

    whatever should be exclusively alpha numeric, lower case, without any special character or ponctuation.

    Regards

    #69242
    @costyclan

    @anonymous where do I find this file? Do I copy it and move to child theme?

    #69243
    @costyclan

    Disregard my last. I think this article answers my above question. I have to create the file if it’s not there right?

    #69244
    @costyclan

    I’ve tried to change the URL using the code suggested in bp-custom.php file
    This is the code that I have in file:
    define ( ‘BP_FRIENDS_SLUG’, ‘contacts’ );
    and you can see in screenshot attached that the url has not been changed??

    #69259

    Anonymous
    @

    Hi @costyclan

    You can simply use language files and edit all the terms.

    You will need to take care of language files of plugins and theme both.
    Marketplace plugin
    BuddyPress plugin
    WC Vendor Plugin
    WC Vendor Pro plugin

    OneSocial theme

    Regards
    Varun Dubey

Viewing 15 posts - 1 through 15 (of 18 total)
  • The question ‘Change name of 'Friends' to 'Vendors'’ is closed to new replies.