Use native gettext library when available
|Reported by:||linushoppe||Owned by:|
|Cc:||ocean90, johnbillion@…, hebipp1@…, linus.hoppe@…, r.wetzlmayr@…, pavelevap@…, kurtpayne, MHagemeister, sirzooro, frank@…, hello@…, mikeschinkel@…, noah.williamsson, frederic.demarle@…, Devstorm, knut@…, meloniq@…, mike@…|
Here you say that the GNU gettext-Framework is used. Exactly, "pomo" (file: wp-includes/l10n.php) is a complete own php-implementation of the gettext-program.
I've added a patch to solve this problem. Maybe it is not very good, but it works. On my wordpress-sites, the used php-memory returns from about 65% to about 12% and the site is running much faster when patching wp-includes/l10n.php.
I know that gettext is not available on every wordpress-installation, but when it's available, it should be used.
Sorry for my bad english, I'm german.
Change History (57)
comment:16 ocean90 — 2 years ago
- Cc ocean90 added
- Component changed from General to I18N
- Type changed from defect (bug) to enhancement
comment:19 scribu — 2 years ago
- Summary changed from Using pomo for translations is very inefficient to Use native gettext library when available
comment:21 scribu — 2 years ago
- Keywords early added
- Milestone changed from Awaiting Review to Future Release