mini18n(3)

🌸 NAME 🌸

okay so bestie πŸ’– welcome to mini18n(3) from the mini18n manual. This page is literally about mini18n β€” it translates strings ✨. It's giving translator era, and honestly? Iconic.

✨ SYNOPSIS ✨

#include <mini18n.h>

const char * mini18n(const char * source);

const char * mini18n_with_conversion(const char * source, unsigned int
format);

πŸ’… DESCRIPTION πŸ’…

Okay so mini18n() is lowkey doing a search-and-rescue mission for strings πŸ”Ž. It searches for source in the currently loaded translation, and if it finds it, it returns the translated value. Periodt.

When it does find it, the returned string points to a mini18n internal buffer β€” so bestie, it should not be free()'d or modified in any way. That's a hard no πŸ™…. If source is not found, or if no translation is loaded, then the source string itself is returned. No cap.

mini18n_with_conversion() does the same thing as mini18n(), but it also converts the returned string to the specified format. Another difference: the returned string is always converted to the format. For now, the only possible value of format is MINI18N_UTF16, and it is only implemented for the Windows operating system. iykyk πŸͺŸ.

πŸ‘‘ RETURN VALUE πŸ‘‘

The translated string if successful β€” the original spells it successul, and we're keeping that typo energy fr fr 😭 β€” and the source string otherwise.


mini18n-0.2 Β· August 30, 2011 Β· mini18n(3) β€” that's the source/version and date, bestie. bye mwah πŸ’–πŸŽ€