WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 12 years ago

#6974 closed enhancement (invalid)

Delay loading of l10n string files

Reported by: mark-k Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords: reporter-feedback
Focuses: Cc:

Description

Right now, whenever a load_textdomain is called, the translation file is being loaded into the memory. If someone uses an hardcoded localized theme, it is possible that there will not be even a single translation when a page is viewed, and the CPU and memory used in loading the file are simply wasted.

My suggestion is that load_textdomain will not load the file but just make a list of all the domains and their respective translation files, and only when an actual translation is requested for the domain, the translation file will be loaded.

Change History (2)

#1 @jacobsantos
13 years ago

  • Milestone changed from 2.7 to 2.8

Need to explain better the problem and solution. Seems to be either invalid or wontfix.

#2 @FFEMTcJ
12 years ago

  • Keywords reporter-feedback added
  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing. Feel free to reopen with further explanation.

Note: See TracTickets for help on using tickets.