Skip to:
Content

Opened 11 months ago

Last modified 7 months ago

#5579 new enhancement

Dynamic component names

Reported by: sooskriszta Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Locale - i18n Keywords:
Cc: boonebgorges, vivek@…, needle@…

Description

Related #5578

People often want to rename BuddyPress components: Perhaps someone wants to rename Groups to Schools or Friends to Connections.

Editing/creating language files as suggested at http://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ is only a partial and temporary solution as it requires a lot of work and is wiped on updates.

Perhaps we should store Component names in database, and allow admins to change them either via Admin interface or via wp-config filters. In the language files we can then have variables %% instead of hardcoded component names. That said, we should also include in language files the Default component names in that language (in case the admin doesn't want to change the component name from whatever it would generally be called in his/her language)

Change History (4)

comment:1 follow-up: @boonebgorges11 months ago

Which part of the interface are you talking about when you talk about "component names"? Like the list at Dashboard > Settings > BuddyPress > Components?

comment:2 @DJPaul11 months ago

  • Milestone changed from Awaiting Review to Future Release

Component *slugs* will eventually become changeable via an admin UI, but strings (such as the component title) may also be supported in the same interface, due to how BP builds the navigation menus. Or, just thinking out aloud, perhaps the main menu becomes a custom navigation menu and then you can just use WordPress' nav menus admin screen to set the titles to whatever you want.

Your suggestion of mixing strings together using placeholders probably won't work; I've done similar things before and have had problems with regards to differences in locales about sentence structure/word order.

At either rate, I don't think the basic idea is bad so I'm going to put this into the Future Release pile until other things shape up to allow us to re-visit this ticket.

comment:3 in reply to: ↑ 1 @sooskriszta11 months ago

  • Cc vivek@… added

Replying to boonebgorges:

Which part of the interface are you talking about when you talk about "component names"? Like the list at Dashboard > Settings > BuddyPress > Components?

I think we are primarily concerned about how the component names appear in the frontend.

comment:4 @needle7 months ago

  • Cc needle@… added
Note: See TracTickets for help on using tickets.