[wp-meta] [Making WordPress.org] #5929: Translations strings not extracted from JS file

Making WordPress.org noreply at wordpress.org
Thu Oct 14 07:01:34 UTC 2021


#5929: Translations strings not extracted from JS file
--------------------------------------+--------------------
 Reporter:  grapplerulrich            |      Owner:  (none)
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Translate Site & Plugins  |   Keywords:
--------------------------------------+--------------------
 I have found a plugin, "[https://wordpress.org/plugins/duplicate-post/
 Yoast Duplicate Post]", where strings are not being extracted from a JS
 file.

 The string “[https://translate.wordpress.org/projects/wp-plugins
 /duplicate-
 post/stable/ja/default/?filters%5Bterm%5D=Schedule+republish&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc
 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.

 [https://wordpress.slack.com/archives/C0341VCNL/p1634127566014900 Related
 Slack Conversation]

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5929>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list