Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure the file gutenberg.pot exists before generating android and ios strings. #2109

Conversation

maxme
Copy link
Contributor

@maxme maxme commented Apr 3, 2020

The wp i18n make-pot scripts doesn't stop when the referenced file gutenberg.pot in the --subtract parameter is missing. There is a warning shown, but it get lost in other console lines.

If this file is missing, the generated string file will contains all the gutenberg text entry, even those that are not needed in the app.

And this file can be missing if the build failed or if the command makepot:android or makepot:ios are called directly.

This patch just test gutenberg.pot exists before running the actual command.

@maxme maxme requested a review from Tug April 3, 2020 13:57
Copy link
Contributor

@Tug Tug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@maxme maxme merged commit a1be0c4 into develop Apr 3, 2020
@maxme maxme deleted the issue/make-sure-required-file-exists-before-generating-app-strings branch April 3, 2020 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants