[buddypress-trac] [BuddyPress Trac] #5578: Child Translations

buddypress-trac noreply at wordpress.org
Wed Apr 23 18:48:31 UTC 2014


#5578: Child Translations
-------------------------+-----------------------------
 Reporter:  sooskriszta  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  i18n         |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Every once in a while someone asks on the forums how to rename BuddyPress
 components: Perhaps someone wants to rename Groups to Schools or Majors or
 Study Groups. Or maybe someone wants to rename Friends to Mates or
 Connections.

 Our stock response is to ask them to edit/create the language files:
 http://codex.buddypress.org/getting-started/customizing/customizing-
 labels-messages-and-urls/

 This is a workable but deeply unsatisfying solution. For one it takes a
 LOT of work to find and rename each reference to the component name
 individually in POedit. More importantly, all the changes would be wiped
 off upon updating BuddyPress. Further, if someone is using BuddyPress in a
 non-English language, then they basically have to edit the language file
 which faces the same overwriting issues.

 So, what I propose is this:

 A while ago WordPress implemented Child Themes. This has been an immensely
 successful initiative. We could take inspiration from that and introduce
 Child Translations.

 Essentially, the site admin can create a language file containing ONLY the
 strings that are different on his/her blog compared to standard version of
 the translation. This file is placed in /wp-content/languages/child/ or
 something to that effect. When BuddyPress loads translations, the ones in
 the file in the child subfolder takes precedence over those in languages
 folder....so strings present in the child subfolder mo are loaded from
 that and the rest of the strings are loaded from the languages mo. When
 translations are updated the languages mo is overwritten with a new
 version, but it doesn't matter as the child mo still outranks it.

 This will allow people to not only change component names, but also
 experiment with other parts of the program.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5578>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list