[wp-trac] [WordPress Trac] #45103: Automatically load JavaScript translations when scripts are enqueued if these exist.
WordPress Trac
noreply at wordpress.org
Tue Oct 23 13:41:43 UTC 2018
#45103: Automatically load JavaScript translations when scripts are enqueued if
these exist.
-------------------------+-------------------------
Reporter: herregroen | Owner: (none)
Type: enhancement | Status: new
Priority: high | Milestone: 5.0
Component: I18N | Version: trunk
Severity: critical | Resolution:
Keywords: needs-patch | Focuses: javascript
-------------------------+-------------------------
Comment (by herregroen):
Added a patch that moves loading the translations to `l10n.php` as
suggested, first checks if the handle filename exists to avoid calculating
the relative path and changes the relative path calculation somewhat to
account for differing URL protocols and relative URLs.
This also expects the translations to be in JED format. #Meta3876 has been
updated accordingly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45103#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list