wp-cli / i18n-command

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

Improve warnings for strings with different comments #318

Closed swissspidy closed 2 years ago

swissspidy commented 2 years ago

Lists all different comments attached to the string after the warning.

Example output:

$ wp i18n make-pot foo-plugin
Plugin file detected.
Warning: The string "Hello World" has 2 different translator comments. (foo-plugin.php:7)
translators: Translators 1!
Translators: Translators 2!
Success: POT file successfully generated!

Fixes #227

swissspidy commented 2 years ago

Related: #119