Native Gettext for WordPress

Description

This plugin has no setting or UI. It just does one thing : use the php-gettext library to handle translations. This results in much faster translation than using the default PHP gettext implementation of WordPress.

If the extension is not available, the plugin will simply do nothing.

You can verify that the plugin is working by looking for an HTTP header: X-Native-Gettext: 1, that will be sent as soon as a string will be translated by the native library.

If your WordPress install is in English, this plugin has no purpose. Otherwise, it can help speed up your install quite a lot.

Requirements:
– php-gettext
– OS-level support for the locale(s) you want to translate to.

Avis

20 juin 2022
No problems found, after testing on several sites. My sites are all heavily dependent on fast loading of text domains, and all have the PHP gettext extension. PHP 8.0 and 8.1. However, may not work in combination with other WordPress plugins overriding load_textdomain.
19 juin 2022 1 réponse
Great Plugin. It does one job and it does very good! With the help of the Query Monitor Plugin, I was able to measure a drop of almost 45% of PHP memory usage using « Native Gettext for WordPress » for a simple Dashboard-request. Really cool. The plugin author is answering friendly and helpful to support requests.
Lire les 3 avis

Contributeurs/contributrices & développeurs/développeuses

« Native Gettext for WordPress » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“Native Gettext for WordPress” a été traduit dans 1 locale. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Native Gettext for WordPress » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.