wp-cli / i18n-command

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

make-php: skip strings without translation #389

Closed swissspidy closed 5 months ago

swissspidy commented 5 months ago

Without this, a string without a translation would have an empty string as a translation, which would cause WP to show that empty string instead of the original.

Props @lgladdy

lgladdy commented 5 months ago

This fix is working for me.

Blank strings in .po files no longer get output to the l10n.php files solving the issue of blank output for those strings in WordPress.