[wp-trac] [WordPress Trac] #45425: Add a filter to the translation file location for script localisation
WordPress Trac
noreply at wordpress.org
Sun Dec 16 15:53:39 UTC 2018
#45425: Add a filter to the translation file location for script localisation
------------------------------+-------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0.2
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: javascript
------------------------------+-------------------------
Comment (by ocean90):
In [changeset:"44232" 44232]:
{{{
#!CommitTicketReference repository="" revision="44232"
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.
See #45425.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45425#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list