Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

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

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

maxme merged 1 commit into
developfrom
issue/make-sure-required-file-exists-before-generating-app-strings

Conversation

@maxme

@maxme maxme commented Apr 3, 2020

Copy link
Copy Markdown
Contributor

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

@Tug Tug left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants