-
Notifications
You must be signed in to change notification settings - Fork 130
Description
#2, #27, and #46 have established the required infrastructure for modules in the performance plugin. While this approach is what we want to use going forward, at this point there is still a crucial problem with it, which is that the user-facing strings within the module header (most importantly the module description) are not translatable, because they are a PHP comment and therefore don't go through any WordPress translation function (e.g. __
).
Therefore, wordpress.org currently won't recognize these strings as translatable if we upload the plugin in that state. This issue is about implementing a similar approach to translate that data that is also used to translate plugin header values in WordPress core.
The main difference here will be that we need to generate a PHP file with those translations somewhere. That file doesn't even need to be require
d anywhere, but it must be included in the deployment to the WordPress plugin repository so that it can recognize the strings accordingly. This is somewhat similar to what Gutenberg used to do early in its development phase where JS translations were not yet available via WordPress core and wordpress.org.