Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#40763 closed defect (bug) (fixed)

Use placeholders in translation strings

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

Description

The attached patch replaces URLs and HTML tags in translation strings with %s placeholders to make it easier to translate the string.

Attachments (1)

40763.patch (9.5 KB ) - added by ramiy 9 years ago.

Download all attachments as: .zip

Change History (13)

@ramiy
9 years ago

#1 @ramiy
9 years ago

  • Keywords has-patch added

#2 @ocean90
9 years ago

  • Milestone Awaiting ReviewFuture Release
  • Type defect (bug)enhancement
  • Version trunk

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


9 years ago

#4 @SergeyBiryukov
9 years ago

  • Milestone Future Release4.9
  • Owner set to SergeyBiryukov
  • Status newreviewing

#5 @ramiy
9 years ago

  • Type enhancementdefect (bug)

@ocean90 It's not an enhancement, it's a simple search&replace fixing translation strings. We have several tickets that do the same, they are all defined as defect/bug, let's be consistent.

#6 @johnbillion
9 years ago

  • Keywords needs-refresh added

I think we should take the opportunity to improve the phrasing of these instructions.

  • References to ctrl+A should be removed (re-phrase to simply say something along the lines of "select all")
  • The use of we and us is bizarre. Let's re-word the affected sentences to remove the need to reference the little people who live inside WordPress.

#7 @ramiy
9 years ago

  • Keywords needs-refresh removed

@johnbillion Good feedback but those text-changes can be done in separate tickets (use the Text Changes Component).

The scope of this ticket is moving HTML tags, URLs, and other variables outside of translations strings, replacing them with %s placeholders.

This ticket was mentioned in Slack in #core by jeffpaul. View the logs.


9 years ago

#9 @jbpaul17
9 years ago

  • Milestone 4.94.9.1

Per discussion in today's 4.9 bug scrub, we're punting this to 4.9.1.

#10 @SergeyBiryukov
9 years ago

  • Milestone 4.9.14.9

#11 @SergeyBiryukov
9 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 41986:

I18N: Remove <code> and <kbd> tags from translatable strings on Settings screens.

Move URLs to separate strings.

Props ramiy.
Fixes #40763.

#12 @SergeyBiryukov
9 years ago

#42160 was marked as a duplicate.

Note: See TracTickets for help on using tickets.