Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#39898 closed defect (bug) (fixed)

Avoid using HTML in translation strings (wp-includes/customize/class-wp-customize-custom-css-setting.php)

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.8 Priority: normal
Severity: normal Version: 4.7
Component: I18N Keywords:
Focuses: Cc:


In the past, we've made an effort to remove <code> tags from translatable strings, as they generally do not need to be translated.

[38829] introduced a bunch of new strings with <code> tags in WP_Customize_Custom_CSS_Setting class for displaying error messages when validating custom CSS rules.

I've just stumbled upon a string where <code>content: "";</code> was translated literally, which means we should remove non-translatable parts from these strings.

Change History (3)

#1 @SergeyBiryukov
7 years ago

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

In 40067:

I18N: Remove <code> tags from translatable strings in wp-includes/customize/class-wp-customize-custom-css-setting.php.

Fixes #39898.

#2 @swissspidy
7 years ago

In 40072:

I18N: Fix broken sprintf() after [40067].

See #39898.

#3 @swissspidy
7 years ago

In 40073:

I18N: Update translators comment after [40072].

Props ocean90.
See #39898.

Note: See TracTickets for help on using tickets.