[wp-trac] [WordPress Trac] #42747: i18n: Add specific text domain processing to `makepot` tools

WordPress Trac noreply at wordpress.org
Wed Nov 29 14:44:30 UTC 2017


#42747: i18n: Add specific text domain processing to `makepot` tools
-------------------------+------------------------------
 Reporter:  JPry         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  I18N         |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by JPry):

 With the attached patch, here's an example of extracting strings for the
 {{{example}}} textdomain:

 {{{
 php makepot-textdomain.php example wp-plugin path/to/plugin/root/
 path/to/plugin/root/languages/example.pot
 }}}

 To leaving off the path to the {{{.pot}}} file will create the file in the
 current directory.

 Note that this works nearly identically to the current {{{makepot.php}}}
 file, and that file should continue to function without any issues.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42747#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list