[wp-meta] [Making WordPress.org] #3875: Javascript Language Files

Making WordPress.org noreply at wordpress.org
Wed Oct 24 11:08:19 UTC 2018


#3875: Javascript Language Files
--------------------------------------+-------------------------
 Reporter:  herregroen                |       Owner:  herregroen
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:
Component:  Translate Site & Plugins  |  Resolution:
 Keywords:                            |
--------------------------------------+-------------------------

Comment (by herregroen):

 Replying to [comment:6 ocean90]:
 > > wordpress.org would need to also parse JS files when generating POT
 files.
 >
 > Any clue how this would be possible with core? The build version, which
 is currently used for the POT files, has only minified files:
 https://build.trac.wordpress.org/browser/branches/5.0/wp-includes/js/dist/

 I've just added a patch to `wp i18n` to allow it to generate translations
 from the minified files: https://github.com/wp-cli/i18n-command/pull/85.

 The only downside to this is that the minified files do not include
 translator's comments.

 We have two options for that:
 - Configure WebPack to preserve translator's comments.
 - Also scan Gutenberg separately to pick up translator's comments.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3875#comment:7>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list