Skip to content

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

Merged
maxme merged 1 commit intodevelopfrom
issue/make-sure-required-file-exists-before-generating-app-strings
Apr 3, 2020
Merged

Make sure the file gutenberg.pot exists before generating android and ios strings.#2109
maxme merged 1 commit intodevelopfrom
issue/make-sure-required-file-exists-before-generating-app-strings

Conversation

@maxme
Copy link
Copy Markdown
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
Copy Markdown
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