gettext comments. Props nbachiyski. see #9112

git-svn-id: https://develop.svn.wordpress.org/trunk@10774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-13 03:53:39 +00:00
parent 6882d8299f
commit 5d8651d6f3
18 changed files with 125 additions and 82 deletions

View File

@@ -1193,9 +1193,12 @@ function wp_post_revision_title( $revision, $link = true ) {
if ( !in_array( $revision->post_type, array( 'post', 'page', 'revision' ) ) )
return false;
$datef = _c( 'j F, Y @ G:i|revision date format');
$autosavef = __( '%s [Autosave]' );
$currentf = __( '%s [Current Revision]' );
/* translators: revision date format, see http://php.net/date */
$datef = _x( 'j F, Y @ G:i', 'revision date format');
/* translators: 1: date */
$autosavef = __( '%1$s [Autosave]' );
/* translators: 1: date */
$currentf = __( '%1$s [Current Revision]' );
$date = date_i18n( $datef, strtotime( $revision->post_modified_gmt . ' +0000' ) );
if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
@@ -1260,7 +1263,8 @@ function wp_list_post_revisions( $post_id = 0, $args = null ) {
break;
}
$titlef = _c( '%1$s by %2$s|post revision 1:datetime, 2:name' );
/* translators: post revision: 1: when, 2: author name */
$titlef = _x( '%1$s by %2$s', 'post revision' );
if ( $parent )
array_unshift( $revisions, $post );