Make WordPress Core

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#54564 closed enhancement (fixed)

Avoid translating several times wp_locale strings

Reported by: chouby's profile Chouby Owned by: johnbillion's profile johnbillion
Milestone: 6.0 Priority: normal
Severity: normal Version: 1.5
Component: I18N Keywords: has-patch
Focuses: performance Cc:

Description

The translation being a rather expensive process, we should avoid to translate the same string several times.

In the class WP_Locale, week days are translated 3 times each and months are translated 2 times.

Attachments (1)

54564.patch (7.6 KB) - added by Chouby 3 years ago.
Avoid 26 duplicate translations

Download all attachments as: .zip

Change History (6)

@Chouby
3 years ago

Avoid 26 duplicate translations

#1 @costdev
3 years ago

  • Type changed from defect (bug) to enhancement

#2 @johnbillion
2 years ago

  • Milestone changed from Awaiting Review to 6.0
  • Owner set to johnbillion
  • Status changed from new to reviewing

#4 @johnbillion
2 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 52956:

I18N: Avoid translating wp_locale strings several times.

This avoids 26 unnecessary duplicate translations.

Props Chouby

Fixes #54564

Note: See TracTickets for help on using tickets.