[wp-trac] [WordPress Trac] #45287: Deprecate and remove i18n tools
WordPress Trac
noreply at wordpress.org
Mon Nov 5 10:45:17 UTC 2018
#45287: Deprecate and remove i18n tools
----------------------------+---------------------------
Reporter: ocean90 | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: WordPress.org
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+---------------------------
The internationalization tools (also known as `makepot.php`) were added in
[25003].
`makepot.php` was primarily used for generating POT files on WordPress.org
servers for core. Later also for bbPress/BuddyPress and WordPress.org
projects like Rosetta or the support forums until it was opened for
plugins and themes. The canonical source of the tools is still
https://i18n.trac.wordpress.org/browser/tools/trunk which was causing for
files not being in sync in the past.
It has been a great pleasure to work with `makepot.php` over the past
[https://i18n.trac.wordpress.org/changeset/4169/ 11 years] but now it's
time to say goodbye as there's now a proper replacement for it:
[https://developer.wordpress.org/cli/commands/i18n/ wp i18n make-pot]. 🎉
The new CLI command was [https://make.wordpress.org/cli/2018/08/08/wp-
cli-v2-0-0-release-notes/ introduced in WP-CLI 2.0] and provides full
parity with `makepot.php`. Actually even more like auditing strings,
parsing strings only of a specific text domain, extracting JavaScript
strings and extracting [https://github.com/wp-cli/i18n-
command/pull/69#issuecomment-410712986 PHP strings which weren't caught]
by `makepot.php`. Since last week, the build tools on WordPress.org are
using the command for string extraction, see #meta3748.
Therefore I'm proposing to remove the tools from core.svn and promote the
use of `wp i18n make-pot` and [https://github.com/wp-cli/i18n-
command/issues concentrate our efforts on the new command].
Tickets which can be closed:
* #37605
* #42747
* #42818
* #43864
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45287>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list