const char * pngettext(const char *context, const char *msg, const char *msgPlural, unsigned long n) noexcept
Translates a plural message for a given context.
const char * dgettext(const char *msgid) noexcept
Translates a message.
const char * pgettext(const char *context, const char *msg) noexcept
Translates a message for a given context.
bool init(const std::string &domainName) noexcept
Initializes the gettext system. This function should only be called once, regardless of with differen...
std::string fgettext(const char *msg, Args &&... args) noexcept
Translates a message and formats it with the given arguments.
Definition gettext.h:85
std::string fngettext(const char *msg, const char *msgPlural, unsigned long n, Args &&... args) noexcept
Translates a plural message and formats it with the given arguments.
Definition gettext.h:98
const std::vector< std::string > & getAvailableLanguages() noexcept
Gets the list of available translated languages.
bool changeLanguage(const std::string &language) noexcept
Changes the current language for gettext translations.
const std::string & getDomainName() noexcept
Gets the domain name used for gettext translations.
const char * dngettext(const char *msg, const char *msgPlural, unsigned long n) noexcept
Translates a plural message.