Opened 17 years ago
Closed 16 years ago
#6974 closed enhancement (invalid)
Delay loading of l10n string files
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
Need to explain better the problem and solution. Seems to be either invalid or wontfix.