[wp-meta] [Making WordPress.org] #3748: Consider using WP-CLI for string extraction

Making WordPress.org noreply at wordpress.org
Thu Oct 25 14:08:31 UTC 2018


#3748: Consider using WP-CLI for string extraction
--------------------------------------+---------------------
 Reporter:  swissspidy                |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:
Component:  Translate Site & Plugins  |  Resolution:
 Keywords:  has-patch                 |
--------------------------------------+---------------------

Comment (by swissspidy):

 [attachment:"3748.5.diff"] contains lots of unrelated code 🤔

 As for the WordPress core string extraction, I have written down how these
 calls can be migrated to WP-CLI here: https://github.com/wp-cli/i18n-
 command/pull/69

 As one can see, there are lots of exceptions for things like default
 themes, Hello Dolly, the list of continents and cities, etc.

 In theory we don't have to use WP-CLI for all parts just yet, as we only
 care about JS right now. However, the WP-CLI command is a bit superior
 because it also finds strings that the current makepot.php script actually
 misses.

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


More information about the wp-meta mailing list