[wp-trac] [WordPress Trac] #36410: Misleading translators comment and bad string
WordPress Trac
noreply at wordpress.org
Mon Apr 4 15:54:53 UTC 2016
#36410: Misleading translators comment and bad string
---------------------------+-----------------------------
Reporter: dimadin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
There is a string "View %1$s version %2$s details" that is used multiple
times for aria-label attribute and where first placeholder is plugin/theme
name and second is its version. This is fine.
There is also a string "View %1$s version %2$s details." (note dot at the
end) that is used on Updates screen in table for plugins updates and
visible to all users (easily reproducible by decreasing version of any
plugin).
While this string has same translator comment as previous ("1: Plugin name
2: Plugin version"), it is not the same nor this comment is true. First
placeholder is actually a tag for screen readers and is not visible, so
HTML it produces is
{{{
View <span class="screen-reader-text">Akismet</span> version 3.1.10
details.
}}}
while user sees
{{{
View version 3.1.10 details.
}}}
Problem with this is that translator doesn't know that this is screen
reader tag, and even if it does know, it can be hard to translate when you
have limited option (tag is in placeholder, not in string). I and at least
French translator had wrong assumption what is output.
I added three patches with different methods of how could this be solved
(I would personally go with third; I don't see need for plugin name here),
but if any output should look like this, second option with tag in a
string is better, which is a point of whole ticket.
Introduced in [35866].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36410>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list