Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#54564 closed enhancement (fixed)

Avoid translating several times wp_locale strings

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

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 5 years ago.
Avoid 26 duplicate translations

Download all attachments as: .zip

Change History (6)

@Chouby
5 years ago

Avoid 26 duplicate translations

#1 @costdev
5 years ago

  • Type defect (bug)enhancement

#2 @johnbillion
5 years ago

  • Milestone Awaiting Review6.0
  • Owner set to johnbillion
  • Status newreviewing

#4 @johnbillion
4 years ago

  • Resolutionfixed
  • Status reviewingclosed

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.