Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#41694 closed defect (bug) (fixed)

i18n: Avoid using HTML tags in translation strings (wp-signup.php)

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

Description

The old translation string:

<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.

Is using <a href="%1$s">%2$s</a>. This can be replaced with a simple %1$s moving the HTML tags out of the string. Making is much easier for translation, especially in RTL languages like Hebrew where bi-directional languages are difficult to handle.

Attachments (2)

41694.png​ (19.7 KB ) - added by ramiy 9 years ago.
41694.patch​ (853 bytes ) - added by ramiy 9 years ago.

Download all attachments as: .zip

Change History (6)

#1 @ramiy
9 years ago

Old string:

  • <a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Log in</a> as &#8220;%4$s&#8221; using your existing password.

New string:

  • %1$s is your new site. <a href="%2$s">Log in</a> as &#8220;%3$s&#8221; using your existing password.

#2 @ramiy
9 years ago

  • Keywords has-patch added

Related: #41645

#3 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review → 4.9
  • Owner set to SergeyBiryukov
  • Status new → reviewing

#4 @SergeyBiryukov
9 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 41911:

I18N: Remove <a> tag from a translatable string in confirm_another_blog_signup().

Props ramiy.
Fixes #41694.

Note: See TracTickets for help on using tickets.