[wp-trac] [WordPress Trac] #11033: Function needed to support l10n for child themes

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 26 05:21:42 UTC 2009


#11033: Function needed to support l10n for child themes
-----------------------------+----------------------------------------------
 Reporter:  johnjamesjacoby  |       Owner:  johnjamesjacoby
     Type:  defect (bug)     |      Status:  new            
 Priority:  normal           |   Milestone:  2.9            
Component:  General          |     Version:  2.9            
 Severity:  normal           |    Keywords:  has-patch      
-----------------------------+----------------------------------------------
 The "load_theme_textdomain" function falls short when there is a parent
 theme to the currently active child theme style. Because
 load_theme_textdomain uses get_theme_directory, it will always load the
 parents textdomain, even if there are text changes included in the child
 style.

 This patch includes a new function "load_style_textdomain" to allow child
 themes to have their own po/mo's. This would presumably be called in the
 child themes functions.php, or somewhere relative to it.

 This may become more important with BuddyPress 1.1+ as the parent/child
 theme/style relationships become more popular.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11033>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list