Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Rename components (11 posts)

Started 2 years, 4 months ago by: mlemberg

  • Profile picture of mlemberg mlemberg said 2 years, 4 months ago:

    I am looking for a way to rename certain components, i.e. Groups, Forums etc.

    I have already localized the installation with the .po and .mo files and that does most of the job. But two things are still missing, and I’m having a hard time figuring out how to change that:

    1. How to rename slugs?
    Is there any easy way to do this? For instance if I want to rename mysite.com/forums to mysite.com/debate can I do this without hardcoding?

    2. Page titles
    I have noticed that my localized Buddypress doesn’t chance the names of page titles. So my Wire is still named “Wire” in the browser, and “Groups” are still named Groups etc. How do I change that?

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 4 months ago:

    1. Rename slugs by defining global constants in /wp-config.php. Eg:
    define ( 'BP_GROUPS_SLUG', 'clubs' );

    2. Page titles are generated by bp_page_title(), which is defined in bp-core/bp-core-templatetags.php. It looks to me like they are properly localized, though. Maybe there’s a missing translation in the .po/.mo files? What language are you using?

  • Profile picture of mlemberg mlemberg said 2 years, 4 months ago:

    Thanks for the reply. I have translated Buddypress myself to da_DK.

  • Profile picture of mlemberg mlemberg said 2 years, 4 months ago:

    Hmm… Just tried out defining slugs in wp-config.php but it didn’t change anything? Wrote the following at the bottom:

    /** Set up Buddypress Slugs */
    define ( ‘BP_GROUPS_SLUG’, ‘ideer’ );
    define ( ‘BP_FORUMS_SLUG’, ‘debat’ );
    define ( ‘BP_MEMBERS_SLUG’, ‘medlemmer’ );
    define ( ‘BP_ACTIVITY_SLUG’, ‘aktivitet’ );
    define ( ‘BP_GROUPS_SLUG’, ‘clubs’ );
    define ( ‘BP_WIRE_SLUG’, ‘vaeg’ );

    Also I took a look at bp_page_title() but it seems to me that it only defines titles for the blog area. Not directories, wire etc. Am I misunderstanding anything?

  • Profile picture of r-a-y r-a-y said 2 years, 4 months ago:

    Try putting the define lines in wp-config.php above:
    /* That's all, stop editing! Happy blogging. */

    Or try putting the define lines in /wp-content/plugins/bp-custom.php.

  • Profile picture of mlemberg mlemberg said 2 years, 4 months ago:

    Thanks, that did the trick for me. Any help regarding the bp_page_title() issue?

  • Profile picture of mlemberg mlemberg said 2 years, 4 months ago:

    Ok, now it seems that another problem has shown up.

    I have renamed the slugs for i.e. GROUPS. But as a result of that, the drop-down adminbar submenu containing the “My groups”, “Create group” and “Group Invitations” functions has been disabled.

    Anybody knows how to crack that nut?

  • Profile picture of mlemberg mlemberg said 2 years, 4 months ago:

    Bump!

    Any suggestions?

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 4 months ago:

    @mlemberg

    If what you want to do is translate and/or localize the text of each component, there are a few posts regarding how to do that already.

    Can you point me to where things aren’t localized? There were a few places in 1.1 that have been patched in 1.1.3, and 1.2 should be pretty solid in this regard.

  • Profile picture of alanchrishughes alanchrishughes said 1 year, 10 months ago:

    Is there a simple way to completely rename things? Like I got this to work fine re-url’ing “Groups” to “Topics” but then it still shows up everywhere else as groups. So beside manually going through, finding every instance of the word groups, and changing it to topics, is there any other way?

  • Profile picture of alphonse.tan alphonse.tan said 5 months, 4 weeks ago:

    Where you guys ever able to fix this thing? same problem here.. :(