Search code examples
internationalizationtranslationgettext

C++ Translation Library


Gettext really bugs me with how it doesn't work, and when it does work, it's huge folder hierarchy and unable to simplify it.

Is there a simple translation library for C++, maybe using a hash table out there? OpenTTD has kind of what I want, but I'm not sure..


Solution

  • After spending months looking for alternatives, I've settled on using Boost.Locale (which uses Gettext).

    I've managed to kind of get used to the folder hierarchy, but Boost.Locale has the ability for custom filesystem support, meaning I could reimplement the .mo loader to load from a different structure, or actually use a different format altogether.