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

Fix yarn makepot - #658

Closed
Tug wants to merge 5 commits into
developfrom
fix/makepot
Closed

Tug wants to merge 5 commits into
developfrom
fix/makepot

Conversation

@Tug

@Tug Tug commented Feb 22, 2019

Copy link
Copy Markdown
Contributor

This is not a priority for 1.0 release but it could use a fix. Not touching anything critical...
Just fixing the the pot file generation using the xgettext command line.

The current command assumes gutenberg.pot is generated in gutenberg/languages/ and that bash is the default shell to run commands (sh is probably the default one actually)

@Tug Tug self-assigned this Feb 22, 2019
@Tug
Tug requested a review from koke February 22, 2019 17:04
@hypest hypest added this to the Future milestone Feb 22, 2019
@hypest hypest closed this Feb 22, 2019
@Tug
Tug changed the base branch from release/1.0 to develop February 22, 2019 18:20
@Tug Tug reopened this Feb 22, 2019
Comment thread package.json Outdated
"i18n-cache": "node i18n-cache/index.js",
"postinstall": "yarn i18n-cache",
"makepot": "xgettext -f <( find . \\( -path './gutenberg/*/src/*.native.js' -or -path './src/*.js' \\) ! -path 'node_modules' -print ) --from-code=UTF-8 -k__ -k_n -k_x -k_nx -x ./gutenberg/languages/gutenberg.pot -o ./gutenberg-mobile.pot",
"premakepot": "npm run build --prefix gutenberg",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wouldn't this still need a npm install inside gutenberg, leaving a populated node_modules there?

@Tug

Tug commented Mar 15, 2019

Copy link
Copy Markdown
Contributor Author

This is out of date since babel-plugin-makepot was removed from gutenberg in WordPress/gutenberg#12559

@Tug Tug closed this Mar 15, 2019
@Tug
Tug deleted the fix/makepot branch March 15, 2019 09:28
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.

3 participants