Opened 3 years ago
Closed 3 years ago
#5929 closed defect (bug) (fixed)
Translations strings not extracted from JS file
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
I have found a plugin, "Yoast Duplicate Post", where strings are not being extracted from a JS file.
The string “Schedule republish” is [https://plugins.trac.wordpress.org/browser/duplicate-post/trunk/js/dist/duplicate-post-strings-412.js js/dist/duplicate-post-strings-412.js]
but it is not referenced in GlotPress and there are other strings like “Republish on:” that are not extracted.
When running wp i18n makepot
locally on the plugin the strings are included. So my conclusion is that this is an issue with the wp i18n makepot
version on WordPress.org
I have not dug deeper to see if the reason the strings are not being extracted because the JS file is minified.
Note: See
TracTickets for help on using
tickets.
I have re-imported the stable tag of the plugin and the strings are now available.