WordPress.org

Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#1740 closed defect (bug) (fixed)

Translation for Anonymous comment author

Reported by: z720 Owned by: markjaquith
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: General Keywords: bg|has-patch bg|commit bg|squashed
Focuses: Cc:

Description

A string is not localized in wp-includes/comment-functions.php :

function get_comment_author() {
        global $comment;
        if ( empty($comment->comment_author) )
                $author = 'Anonymous';
        else
                $author = $comment->comment_author;
        return apply_filters('get_comment_author', $author);
}

should be

function get_comment_author() {
        global $comment;
        if ( empty($comment->comment_author) )
                $author = __('Anonymous')
;
        else
                $author = $comment->comment_author;
        return apply_filters('get_comment_author', $author);
}

Attachments (1)

comment-functions.php.diff (450 bytes) - added by markjaquith 15 years ago.
Patch for 1.6 SVN

Download all attachments as: .zip

Change History (7)

#1 @z720
15 years ago

  • Component changed from Template to General

#2 @ryan
15 years ago

  • Owner changed from anonymous to ryan

@markjaquith
15 years ago

Patch for 1.6 SVN

#3 @markjaquith
15 years ago

  • Keywords bg|has-patch bg|commit added
  • Owner changed from ryan to markjaquith
  • Status changed from new to assigned

Thanks z720. Patch uploaded to make the fix.

#4 @skippy
15 years ago

  • Keywords bg|squashed added

#5 @matt
15 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [2986]) Allow "anonymous" to be translated, fixes #1740

#6 @(none)
14 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.