Skip to content

Makepot command #68

@swissspidy

Description

@swissspidy

Based on the discussion at wp-cli/wp-cli#1042

After wp-cli/wp-cli#1775 added Grunt tasks to wp plugin scaffold to generate POT files, the issue was closed.

However, not everyone wants to use Grunt just to use this one task.

i18n-tools is easy enough to use, so I don't think simply bundling it into WP-CLI would bring much value.

This was a fair point by scribu, but still a Grunt task was added. This means I have the same Grunt task in every plugin, each one bundling i18n-tools again.

There were some concerns afterwards as well, see wp-cli/wp-cli#1042 (comment).

Therefore, I'd like to propose a command like wp makepot or wp language makepot or similar.

Just like wp dist-archive made sure there's only 1 command across the project to create a ZIP file for distribution, there would only be 1 global command to create a POT file.

If there's enough interest in this I'd help kick things off with a proof-of-concept command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions