Skip to:

Opened 2 years ago

Closed 2 years ago

#3011 closed defect (fixed)

'%1$s reported this %2$s as spam' is not translatable

Reported by: SergeyBiryukov Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Locale - i18n/l10n Keywords: has-patch commit


This string in BBP_Akismet::submit_post() cannot be translated correctly due to $post_data['comment_type'] being substituted in English:

esc_html__( '%1$s reported this %2$s as spam', 'bbpress' )

An example of the translated string:

sergeybiryukov пометил этот topic как спам

There should be distinct strings for known comment types:

  • '%s reported this topic as spam'
  • '%s reported this reply as spam'

Current string can be used for custom comment types, if there are any.

Attachments (1)

bbpress-3011.patch (2.6 KB) - added by SergeyBiryukov 2 years ago.

Download all attachments as: .zip

Change History (2)

#1 @johnjamesjacoby
2 years ago

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

In 6225:

Akismet: Improve translatability of update-history strings.

Fixes #3011. Props SergeyBiryukov.

Note: See TracTickets for help on using tickets.