[wp-trac] [WordPress Trac] #23903: Revisions compare tweaks: Title, "To:" header
WordPress Trac
noreply at wordpress.org
Mon Apr 15 18:13:21 UTC 2013
#23903: Revisions compare tweaks: Title, "To:" header
------------------------------------+--------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Revisions | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+--------------------
Comment (by SergeyBiryukov):
To clarify: `__( ucfirst( str_replace( 'post_', '', $field ) ) )` may work
in this case, because we already have the strings in
`_wp_post_revision_fields()`: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.5.1/wp-
includes/post.php#L4878
But it's not a good example of i18n, as gettext won't be able to parse it:
[[BR]]
http://ottopress.com/2012/internationalization-youre-probably-doing-it-
wrong/
[attachment:23903.2.diff] reuses the strings from
`_wp_post_revision_fields()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23903#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list