[wp-trac] [WordPress Trac] #25665: Better plugin main-file support for makepot.php tool

WordPress Trac noreply at wordpress.org
Tue Oct 22 19:48:10 UTC 2013


#25665: Better plugin main-file support for makepot.php tool
-------------------------+-----------------------------
 Reporter:  Otto42       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  I18N         |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 The makepot.php tool, when used for plugins, contains the assumption that
 the "main file" of a plugin will be named plugin-slug.php, when searching
 for plugin headers to include in the POT file for translation. This is not
 necessarily the case all the time, and WordPress itself does a directory
 search in get_plugins to find the "main file" of the plugin.

 The makepot.php file should do a similar search instead of making this
 assumption. This allows it to find plugin headers in files that are named
 differently than their slugs.

 Patch attached. Most of the directory searching code is ripped from the
 core's own code, but I removed the subdirectory searching since I think
 that might be a step too far. That could be added back though, if that is
 desirable.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25665>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list