[wp-trac] [WordPress Trac] #45425: Add a filter to the translation file location for script localisation
WordPress Trac
noreply at wordpress.org
Tue Nov 27 00:56:28 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
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Changes (by johnbillion):
* keywords: => has-patch
Comment:
[attachment:"45425.patch"] adds a `load_script_translation()` function
which allows the script translation file location to be filtered and then
loads and returns the file's contents, similarly to how
`load_textdomain()` operates.
This allows, for example, the Query Monitor plugin to add support for
debugging script translation file loading.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45425#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list