Skip to content

make-php: skip strings without translation#389

Merged
swissspidy merged 1 commit intomainfrom
fix/make-php-skip-empty
Feb 28, 2024
Merged

make-php: skip strings without translation#389
swissspidy merged 1 commit intomainfrom
fix/make-php-skip-empty

Conversation

@swissspidy
Copy link
Copy Markdown
Member

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

@swissspidy swissspidy added bug command:i18n-make-php Related to 'i18n make-php' command labels Feb 28, 2024
@swissspidy swissspidy added this to the 2.6.1 milestone Feb 28, 2024
@swissspidy swissspidy requested a review from a team as a code owner February 28, 2024 10:51
@lgladdy
Copy link
Copy Markdown

lgladdy commented Feb 28, 2024

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.

@swissspidy swissspidy merged commit 7538d68 into main Feb 28, 2024
@swissspidy swissspidy deleted the fix/make-php-skip-empty branch February 28, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:i18n-make-php Related to 'i18n make-php' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants