Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#9548 closed defect (bug) (fixed)

Translate strings in comment template functions by default

Reported by: nbachiyski Owned by: nbachiyski
Milestone: 2.8 Priority: lowest
Severity: minor Version:
Component: I18N Keywords: has-patch
Focuses: Cc:


Several functions like comment_type() have as default values of there label arguments the strings in English. That way the theme author has to call the function with the translated strings.

Instead, we can use false as default values and use the translated strings if no other value was given.

Patch attached.

Attachments (1)

comments-translated-args-by-default.diff (3.3 KB) - added by nbachiyski 9 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
9 years ago

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

(In [10953]) Translate defaults. Props nbachiyski. fixes #9548

Note: See TracTickets for help on using tickets.