-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix theme.json
string extraction
#423
Comments
Sharing this thread for reference. |
WordPress 5.8 was released in July 2021. The The reason I mention this is that I suppose we have to trigger the extracting string process for every version of WordPress starting in 5.8. Otherwise, the theme.json strings won't be there. I don't know how the string extraction process works, so I can't speak more about the traceability. This is what I know: the strings for WordPress 5.8 were there when I checked and they are not now in 5.8. Something must have changed them post-release — after December 3rd, 2021 to be exact. I checked and the next events I see are:
Do we re-trigger the extraction process for every minor? Perhaps we used i18n-command 2.4.0 in 5.8.3? Just oversharing in case it's helpful. |
@swissspidy looking at the current code, does this codepath receives all files of a given project? If so, can we just add two other checks so that You also mentioned the following:
Don't we have the same issue with strings coming from PHP? Themes can have strings defined in their |
I don't want do add hardcoded file paths to the string extractor. I think we just need to scan every
Thanks, I appreciate you thinking of all these possibilities! As you can see at https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php, Meta has multiple include/exclude configs for the three projects in use (dev, admin, continents & cities). Most likely a change to those configs would be needed.
I think that will be automated anyway whenever there is a new release. We don't need to know specific version numbers or dates. |
I've been trying to access that link for the whole morning but I'm getting a 504 🤔 |
In #320 we limited extraction of
theme.json
files to ones in the (theme) root and in a/styles
folder.We forgot the fact that there's
wp-includes/theme.json
in core andlib/theme.json
in Gutenberg which are currently forgotten because of that, thus those strings aren't extracted nor translatable in these projects. But they should be!We probably need to drop that limitation and just scan any
theme.json
file we encounter...Meta changes (in
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php
) are probably required too once that lands. To avoid any regression there./cc @ocean90 @oandregal
The text was updated successfully, but these errors were encountered: