[wp-trac] [WordPress Trac] #45425: Add a filter to the translation file location for script localisation

WordPress Trac noreply at wordpress.org
Tue Dec 18 23:41:39 UTC 2018


#45425: Add a filter to the translation file location for script localisation
----------------------------------------+-----------------------------
 Reporter:  johnbillion                 |       Owner:  SergeyBiryukov
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  5.0.2
Component:  I18N                        |     Version:  5.0
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch commit fixed-5.0  |     Focuses:  javascript
----------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44316" 44316]:
 {{{
 #!CommitTicketReference repository="" revision="44316"
 I18N: Introduce `load_script_translations()` as a wrapper for loading and
 filtering translation data for JavaScript files.

 * Introduces `pre_load_script_translations` to short-circuit the function.
 * Introduces `load_script_translation_file` to filter the file path for
 loading script translations.
 * Introduces `load_script_translations` to filter the JSON-encoded
 translation data.

 Props johnbillion, strategio, swissspidy, dimadin, ocean90.
 Merges [44232] to trunk.
 Fixes #45425.
 }}}

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


More information about the wp-trac mailing list