[wp-trac] [WordPress Trac] #34134: Do not import strings without domains if string exists in Core
WordPress Trac
noreply at wordpress.org
Fri Oct 2 20:43:29 UTC 2015
#34134: Do not import strings without domains if string exists in Core
--------------------------+-----------------------------
Reporter: niallkennedy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
I include strings translated by Core in my plugin to match WordPress
behavior. I expect WordPress to skip importing my domainless string if it
matches a Core `msgid`.
I truncate text and include the domainless `__( '…' )` in my PHP
code.
https://plugins.trac.wordpress.org/browser/twitter/tags/1.1.0/src/Twitter/WordPress/Cards/Sanitize.php#L120
The same domainless string exists in WordPress Core.
https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
includes/formatting.php#L2853
I expect the string will not be imported into `translate.wordpress.org`
and therefore scoped to my plugin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34134>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list