Delay loading of l10n string files
|Reported by:||mark-k||Owned by:||anonymous|
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.