[wp-trac] [WordPress Trac] #46726: Site health: the site data is gathered twice on non-English locales
WordPress Trac
noreply at wordpress.org
Fri Mar 29 21:19:08 UTC 2019
#46726: Site health: the site data is gathered twice on non-English locales
----------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+---------------------
Comment (by azaozz):
Seems a simple/easy way to fix this would be to create both arrays at the
same time: one in `en_US` the other in the user's locale. Then there's no
need to translate the en_US strings, can be hard-coded.
Another option would be to gather the data first in a more "readable"
form, with hard-coded strings/explanations. Then translate that to user
facing language. What I mean is to have associative arrays where the keys
would be meaningful enough so they can be used instead of having an extra
"full-text" en_US version.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46726#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list