[wp-trac] [WordPress Trac] #36491: Prevent attempting to load en_US translation files

WordPress Trac noreply at wordpress.org
Tue Apr 12 13:52:06 UTC 2016


#36491: Prevent attempting to load en_US translation files
-----------------------------+------------------------------
 Reporter:  jrf              |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  I18N             |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |     Focuses:
-----------------------------+------------------------------

Comment (by dimadin):

 You have `override_load_textdomain` filter that will prevent loading:

 `add_filter( 'override_load_textdomain', '__return_true' );`

 Or change this line if you want to check if locale is `en_US`.

 There is no reason to have special case for `en_US` since filters are for
 that.

 Another thing is that you can have `en_US` translation files to override
 default strings and this change would break this too.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36491#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list