Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to replace “Groups” with “Campaigns”


  • dave8528
    Participant

    @dave8528

    Hi,
    I am trying to figure out how to go about renaming the word “Groups” or “Group” to “Campaigns” or “Campaign” since I am using this plugin for campaigns. So, I like to have all referrals to “Groups” word to be changed to “Campaigns” throughout the site.
    Any tips will greatly be appreciated.

    Cheers,

    Dave

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Participant

    @danbp

    The easiest way for that is to use the language file.

    Customizing Labels, Messages, and URLs


    dave8528
    Participant

    @dave8528

    Thanks @danup,
    I looked up that link and in that PO file noticed a whole bunch of “group” word which some are referring to like: #: bp-activity/bp-activity-actions.php:556 bp-groups/bp-groups-actions.php
    Now, if I go ahead and change bp-groups.actions.php to #: bp-activity/bp-activity-actions.php:556 bp-groups/bp-campaigns-actions.php it will create a problem…wont it?

    Do I need to go line-by-line in that file and change the word(s) where it’s needed without changing the file name as mentioned above?

    If so, this is going to be a long process as I can’t use “find and replace” feature to update my change quickly.

    Cheers,

    Dave


    shanebp
    Moderator

    @shanebp

    How are you going to generate the .mo file after you edit the .po file?

    The examples you give are just references to where the .mo language file should be used.
    You only want to change the actual usage. Don’t touch the references.

    So

    #: bp-core/bp-core-template.php:505
    msgctxt "search form"
    msgid "Groups"
    msgstr ""

    becomes

    #: bp-core/bp-core-template.php:505
    msgctxt "search form"
    msgid "Campaigns"
    msgstr ""

    If you want to use find-replace, use a case sensitive approach.

    Regardless, I recommend using poEdit.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to replace “Groups” with “Campaigns”’ is closed to new replies.
Skip to toolbar