Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#35672 closed defect (bug) (fixed)

Avoid using HTML tags in translation strings (wp-admin/user-edit.php)

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

Description

See the attached patch.

Attachments (2)

35672.patch​ (844 bytes ) - added by ramiy 11 years ago.
35672.2.patch​ (863 bytes ) - added by ramiy 11 years ago.

Download all attachments as: .zip

Change History (9)

#1 @ramiy
11 years ago

  • Keywords has-patch added

In this patch I've moved the <a href="%2$s">Cancel</a> part into a separate translation string. And also I've added a translator comment to the original string.

#2 @ramiy
11 years ago

Related: #35673

#3 @ramiy
11 years ago

Old string:

  • There is a pending change of your email to %1$s. <a href="%2$s">Cancel</a>

New strings:

  • There is a pending change of your email to %s.
  • Cancel

This ticket was mentioned in ​Slack in #core-i18n by ramiy. ​View the logs.


11 years ago

#5 @ramiy
11 years ago

The patch also adds translators comment.

#6 @SergeyBiryukov
11 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 36655:

I18N: Remove <a> tag from translatable string in wp-admin/user-edit.php.

Add translator comment.

Props ramiy.
Fixes #35672.

#7 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review → 4.5
Note: See TracTickets for help on using tickets.