[wp-trac] [WordPress Trac] #36945: Substrings that should not be translated should not be translatable
WordPress Trac
noreply at wordpress.org
Thu May 26 00:14:15 UTC 2016
#36945: Substrings that should not be translated should not be translatable
--------------------------+-----------------------------
Reporter: julesaus | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
wp-admin/includes/network.php includes the string:
{{{
__( 'Add the following to your %1$s file in %2$s <strong>above</strong>
the line reading <code>/* That’s all, stop editing! Happy blogging.
*/</code>:' )
}}}
The code block is a quote from a file and translating it doesn't make any
sense, but including it in the translatable string signals to translators
that they should translate it.
This is confusing, and creates unnecessary work.
We should pull this substring out of the translatable string to make
translating easier and less error prone.
Patch attached.
p.s. Some examples of this string being being incorrectly translated at
time of writing:
https://translate.wordpress.org/projects/wp/dev/admin/network/tr/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/it/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/ja/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/pt-
br/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/es/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/ru/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/zh-
cn/default?filters%5Bterm%5D=happy+blogging
https://translate.wordpress.org/projects/wp/dev/admin/network/ar/default?filters%5Bterm%5D=happy+blogging
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36945>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list