GNU Gettext is a powerful, standard, efficient way to translate a PHP project. It’s not quite modern but it’s solid and it’s a standard de-facto. Unfortunately, GNU Gettext can be very painful to configure, since no error is shown. Sometime it just does not translate anything. Moreover, it has a very aggressive cache and the official documentation does not say anything about how to clear it without restarting your whole webserver. For this and other tips…
Enjoy my definitive guide with deep troubleshooting steps, also thanks to strace
.
https://stackoverflow.com/a/79584284/3451846
Just enjoy the native GNU Gettext, without using slow userland replacements.