[wp-meta] [Making WordPress.org] #7995: Refactor i18n of email templates in Plugin Directory for improved translation UX
Making WordPress.org
noreply at wordpress.org
Thu Jun 5 12:03:59 UTC 2025
#7995: Refactor i18n of email templates in Plugin Directory for improved
translation UX
------------------------------+--------------------
Reporter: tobifjellner | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone:
Component: Plugin Directory | Keywords:
------------------------------+--------------------
When a user submits a plugin for the plugin directory, the results of
several automated tests will generate one or more rather long messages to
the submitting user.
A wonderful feature is that these messages can be translated. If you
submit your plugin via a "Rosetta" version of the plugin directory, then
feedback may be given in the same locale.
However, translating these long email templates is quite hard. One single
string may contain quite a lot text. This makes the translation interface
hard to use and navigate.
Also, translation contributors end up translating the same text chunks of
texts several times:
- Many paragraphs are identical between various email templates, but the
translation memory only deals with "complete strings" as unit, so it won't
kick in.
- The "fuzzy logic" on the translation platform doesn't work well with
overly long strings. If any single change is made to one of these large
email templates, the translation needs to be done from scratch.
But there is a neat solution to this.
Please refactor the email templates so that each "string" for translation
is one paragraph each. Where applicable, make sure to use exactly the same
string every time for better reuse.
This would mainly need to be done in:
https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
/wp-content/plugins/plugin-directory/email/class-plugin-rejected.php
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7995>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list