In the Minetest game project there is the claim that one cannot use gettext because of the lack of dynamically loading translations.

My question would be howto unload or reload translation files using gettext and the libintl library.

Suppose you join a server, it provides translation files for a certain mod, then you leave and join another server, which happens to provide a translation file for the same mod, but a different one. Minetest needs to be able to unload the first translations after you leave, libgettext does not allow us to do this, which is why we aren't using it.

loading translation files at runtime, is not possible either

Switch to PO file format for client-side translations #7290

I wonder if this can be true and would presume this a standard task to intllib and the GNU gettext tool chain instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.