[wp-trac] [WordPress Trac] #15985: _c (deprecated) by _x
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 26 15:22:23 UTC 2010
#15985: _c (deprecated) by _x
--------------------------+----------------------
Reporter: arena | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: I18N | Version: 3.1
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The old way of adding context to strings was to use a bar. For example,
`_c('Post|noun')`. The translators would keep the bar in and _c() would
strip off everything after the last bar.
We now use gettext context, thus it is a separate argument. It's not a
drop-in replacement, as what would go after a bar instead needs to be its
own argument.
If you use makepot, the context will carry into the various files.
Tickets are not the correct place to ask these questions. It seems to be a
pattern of some of your tickets. That's okay, but you'd be better off
trying a mailing list or IRC.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15985#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list