[wp-trac] [WordPress Trac] #42747: i18n: Add specific text domain processing to `makepot` tools
WordPress Trac
noreply at wordpress.org
Wed Nov 29 14:38:18 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 | Keywords:
Focuses: |
-------------------------+-----------------------------
In the {{{tools/i18n/}}} directory of the core repo is a great set of
tools. As a plugin developer, two of the most useful tools are the
{{{makepot.php}}} and {{{add-textdomain.php}}} files.
As an enhancement, it would be nice if the {{{makepot.php}}} file was able
to operate on a specific text domain. This obviously wouldn't be necessary
for Core, but for plugins and themes it could be quite useful. In
particular, it would be great to have in the following cases:
* When including default WordPress strings in conjunction with custom
strings.
* When including 3rd-party bundled libraries, such as CMB2.
* When trying to put together a single translation file that spans
multiple plugins and even a theme in a single site (this is certainly an
edge case, but I have worked with clients who have this need)
I have a working patch that allows passing a textdomain and processing
that domain only.
I opened this ticket as the result of a
[https://wordpress.slack.com/archives/C04KRK0KA/p1507040646000668
discussion in Slack].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42747>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list