Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#35994 closed defect (bug) (fixed)

Avoid using HTML tags in translation strings (wp-includes/ms-default-constants.php)

Reported by: ramiy's profile ramiy Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch
Focuses: administration Cc:

Description

One more translation string with <code> HTML tags.

Old String:

  • The constant <code>VHOST</code> <strong>is deprecated</strong>. Use the boolean constant <code>SUBDOMAIN_INSTALL</code> in wp-config.php to enable a subdomain configuration. Use is_subdomain_install() to check whether a subdomain configuration is enabled.

New String:

  • The constant %1$s <strong>is deprecated</strong>. Use the boolean constant %2$s in %3$s to enable a subdomain configuration. Use %4$s to check whether a subdomain configuration is enabled.

Changes:

  • %1$s = <code>VHOST</code>
  • %2$s = <code>SUBDOMAIN_INSTALL</code>
  • %3$s = wp-config.php
  • %4$s = is_subdomain_install()

I added code tags to the last the placeholders. And also I added translators comments.

See the attached patch.

Attachments (1)

35994.patch (1.3 KB) - added by ramiy 9 years ago.

Download all attachments as: .zip

Change History (4)

@ramiy
9 years ago

#1 @ramiy
9 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
9 years ago

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

In 36773:

I18N: Remove <code> tags from translatable string in wp-admin/network/site-new.php.

Props ramiy.
Fixes #35994.

#3 @SergeyBiryukov
9 years ago

  • Milestone changed from Awaiting Review to 4.5
Note: See TracTickets for help on using tickets.