[buddypress-trac] [BuddyPress Trac] #5887: Custom language file does not load in bp_core_load_buddypress_textdomain()

buddypress-trac noreply at wordpress.org
Sun Dec 21 11:23:44 UTC 2014


#5887: Custom language file does not load in bp_core_load_buddypress_textdomain()
------------------------------+---------------------
 Reporter:  r-a-y             |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.2
Component:  Core              |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

 * owner:   => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9247"]:
 {{{
 #!CommitTicketReference repository="" revision="9247"
 Make sure custom language files (if they exist) are taking precedence over
 GlotPress language packs

 There can be cases where a community needs cutom language files. In order
 to make sure these custom language files are loaded, BuddyPress will first
 check 2 locations before loading the GlotPress language packs :
 - {{{WP_LANG_DIR . '/buddypress'}}}
 - {{{WP_LANG_DIR}}}

 Using the {{{WP_LANG_DIR . '/buddypress'}}} location for the custom
 language files avoids the mo file name to be listed into the site's
 language setting of the WordPress general options.

 We are also introducing a new filter {{{'buddypress_locale_locations'}}}
 so that it's possible to add a custom location to the ones listed above.

 Props r-a-y, boonebgorges,danbp,DJPaul

 Fixes #5887
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5887#comment:23>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list