Skip to content

Module header information is not translatable #59

@felixarntz

Description

@felixarntz

#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 required 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.

Metadata

Metadata

Assignees

Labels

InfrastructureIssues for the overall performance plugin infrastructure[Type] BugAn existing feature is broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions