carta
mini18n(3)

mini18n3

Translates strings

Usage

const char * mini18n(const char * source);

Overview

mini18n() searches for source in the currently loaded translation and returns the translated value if it's found. In this case, the returned string points to a mini18n internal buffer and thus should not be free()'d or modified in any way. If source is not found or no translation is loaded, the source string is returned.

mini18n_with_conversion() do the same as mini18n() but also converts the returned to the specified format. Another difference is that the returned string is always converted to the format. For now the only possible value of format is MINI18N_UTF16 and is only implemented for the Windows operating system.

Return value

The translated string if successul and the source string otherwise.

From libmini18n-dev 0.2.1-2+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.