How to translate a WordPress.org plugin description
To localize the description of a plugin published on WordPress.org (the Description shown in the plugins list in the admin), local translation files (PO/MO) are not enough — you have to register the translation on translate.wordpress.org.
Why local translation files don't work
For plugins hosted on WordPress.org, the plugin header (Plugin Name, Description, Author, and so on) is translated through language packs.
- Local
languages/*.poand*.mofiles are for translation functions like__()andesc_html__() - The plugin header uses the language pack distributed from translate.wordpress.org
- Language packs are downloaded automatically into
/wp-content/languages/plugins/
Registering a translation on translate.wordpress.org
Open the translation page
- URL:
https://translate.wordpress.org/locale/ja/default/wp-plugins/{plugin-slug}/
- URL:
Choose a translation set
- Select "Stable (latest release)" — required for language-pack generation
Import translations
- Use "Import Translations" to upload your existing
.pofile - Translations are imported in the "Waiting" state
- Use "Import Translations" to upload your existing
Approve the translations
- Approval by the Japanese team's GTE / PTE is required
- Or obtain PTE (Project Translation Editor) status yourself
Conditions for language-pack generation
- The Stable translation must be at least 90% approved
- The generated language pack is downloaded to user sites automatically
How to request PTE
If you want to approve translations yourself:
- Go to https://make.wordpress.org/polyglots/
- Create a new post:
Title: PTE Request for {plugin name}
Body:
Hello Polyglots,
I am the plugin author for {plugin name}.
https://wordpress.org/plugins/{plugin-slug}/
I would like to become a Project Translation Editor (PTE) for the Japanese locale.
#ja
Thank you!Managing POT / PO files
bash
# sync the PO file with the POT
msgmerge --update languages/plugin-ja.po languages/plugin.pot
# recompile the MO file
msgfmt -o languages/plugin-ja.mo languages/plugin-ja.poReferences
- translate.wordpress.org
- Translating with GlotPress (Polyglots Handbook)
- PTE request (Polyglots Handbook)
This came out of building Markdown Renderer for GitHub.