wp-cli / i18n-command

Provides internationalization tools for WordPress projects.
MIT License
96 stars 52 forks source link

`update-po`: Update/no changes report #333

Open strarsis opened 2 years ago

strarsis commented 2 years ago

Feature Request

Describe your use case and the problem you are facing (Side note: The new update-po subcommand is awesome!)

Currently it will report that the PO files were updated, even they hadn't changed (because the POT file hadn't changed).

Describe the solution you'd like update-po should either report updated files or files that didn't need an update/changing.

Some examples:

Success: Updated 0 files. 1 file unchanged.
Success: Updated 1 file.
Success: Updated 4 files. 2 files unchanged.

This also helps spotting the need for adding/updating translations without using something like a diff tool or inspecting the last modified date of the POT file(s).

swissspidy commented 2 years ago

Thanks for sharing this suggestion 👍

Would need to check if it's easily possible to detect changes/modifications like that.