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

Making WordPress.org noreply at wordpress.org
Wed Oct 24 11:55:14 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 ocean90):

 > This patch only covers plugin imports, I've not yet been able to locate
 where exactly the calls to makepot.php happen for core.

 * https://i18n.trac.wordpress.org/browser/tools/trunk/cron-svn-pots.php
 * https://i18n.trac.wordpress.org/browser/tools/trunk/makepot.php

 The code which calls cron-svn-pots.php is not open-sourced but it's
 bascially this:


 {{{
 $POT_GEN -m wp-frontend -c $CO/wordpress -p $CO/wp-pot -n wordpress.pot
 --min-version=3.7
 $POT_GEN -m wp-admin -c $CO/wordpress -p $CO/wp-pot -n wordpress-admin.pot
 -f --min-version=3.7
 $POT_GEN -m wp-network-admin -c $CO/wordpress -p $CO/wp-pot -n wordpress-
 admin-network.pot -f --min-version=3.7
 $POT_GEN -m wp-tz -c $CO/wordpress -p $CO/wp-pot -n wordpress-continents-
 cities.pot -f --min-version=3.7
 }}}



 Thanks for the plugin/theme patches. For back-compat the `--ignore-domain`
 argument should be set.

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


More information about the wp-meta mailing list