[wp-trac] [WordPress Trac] #44360: Missing translators comment need to be added
WordPress Trac
noreply at wordpress.org
Mon Aug 6 21:10:33 UTC 2018
#44360: Missing translators comment need to be added
----------------------------------------+-------------------------------
Reporter: jrf | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: General | Version: trunk
Severity: minor | Resolution:
Keywords: good-first-bug needs-patch | Focuses: coding-standards
----------------------------------------+-------------------------------
Comment (by swissspidy):
In the `wp i18n make-pot` command to create POT files for WordPress
plugins and themes, but also WordPress core, I added a check to find
strings with multiple different translator comments. I also added some
other checks that I copied from WPCS (kudos!).
This is usually an indicator that these should be multiple strings with
different contexts or that the translator comments should be unified.
Otherwise translators will see multiple comments in GlotPress when trying
to translate a string.
For example, the string `More information about %s` exists three times in
WordPress core. Once, the translator comment is `%s: plugin name and
version`, the second time it's `%s: Importer name` and in the third
instance there's no comment at all.
Here are the current warnings for WordPress 4.9.8:
https://gist.github.com/swissspidy/006e26b7ba53cdb68a5d10763d8fcc31
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44360#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list