[wp-trac] [WordPress Trac] #27696: makepot.php looks for hardcoded dependcy 'src/wp-includes/pomo/po.php'

WordPress Trac noreply at wordpress.org
Mon Apr 7 15:53:34 UTC 2014


#27696: makepot.php looks for hardcoded dependcy 'src/wp-includes/pomo/po.php'
--------------------------+-----------------------------
 Reporter:  BjornW        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I've checked out the rev 27986 of the i18n tools using svn
 (http://develop.svn.wordpress.org/trunk/tools/i18n/) so I could generate a
 POT from my plugin with makepot.php. All according to the instructions
 found here:
 http://codex.wordpress.org/I18n_for_WordPress_Developers#Command_Line_Script

 However this causes an error since it cannot find the po.php file which it
 looks for in '/src/wp-includes/pomo/'.

 It seems makepot.php and its required files need these files from
 WordPress core to run. As far as I remember the i18n tools were able to
 run standalone from WordPress core files so this seems to be a regression?

 Apparently this problem exists already for some revisions according to
 this forum thread:
 http://wordpress.org/support/topic/warning-makepotphp-
 revision-25726-trunktoolsi18n
 '''
 Solutions'''

 1. Add a readme in the i18n tools directory explaining how to use the
 tools including the new dependency on WordPress core files & change the
 wiki instructions as well

 2. Remove the dependency and make the tools run standalone again

 3. Checkout trunk in total so the dependencies are met. This means you
 cannot just checkout i18n to use the tools.

 I prefer option nr 2 since it feels kinda weird to depend on WordPress
 itself to create a POT file from a plugin file. IMHO tools should be able
 to run standalone.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27696>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list