[wp-trac] [WordPress Trac] #45103: Automatically load JavaScript translations when scripts are enqueued if these exist.
WordPress Trac
noreply at wordpress.org
Tue Nov 13 14:27:51 UTC 2018
#45103: Automatically load JavaScript translations when scripts are enqueued if
these exist.
------------------------------------------------+-------------------------
Reporter: herregroen | Owner: herregroen
Type: enhancement | Status: reopened
Priority: high | Milestone: 5.0
Component: I18N | Version: trunk
Severity: critical | Resolution:
Keywords: has-patch fixed-5.0 needs-dev-note | Focuses: javascript
------------------------------------------------+-------------------------
Comment (by herregroen):
@tfirdaus Thanks for the report!
Just had a quick look. I think there's two things going on here.
1. The tarot plugins doesn't seem have any translations at all:
https://translate.wordpress.org/locale/en/default/wp-plugins/tarot as such
there's no translations to be loaded or registered.
2. In this situation the above error is shown, this doesn't interrupt
script execution but I understand this is confusing. I've got a patch
ready to make sure that if no translations exist the domain is still
registered to prevent these errors.
The patch also includes a fix to ensure no warning is thrown.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45103#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list