libexplain  1.4.D001
Defines | Functions
libexplain/buffer/gettext.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Defines

#define i18n(x)   x

Functions

void explain_buffer_gettext (explain_string_buffer_t *sb, const char *str)
void explain_buffer_gettext_printf (explain_string_buffer_t *sb, const char *fmt,...) LIBEXPLAIN_FORMAT_PRINTF(2

Define Documentation

#define i18n (   x)    x

Definition at line 26 of file gettext.h.


Function Documentation

void explain_buffer_gettext ( explain_string_buffer_t sb,
const char *  str 
)

The explain_buffer_gettext function may be used to translate a string via gettext, and then print it on the given string buffer.

Parameters:
sbThe string buffer to print on.
strThe string to be localized and printed.

Definition at line 25 of file gettext.c.

void explain_buffer_gettext_printf ( explain_string_buffer_t sb,
const char *  fmt,
  ... 
)

The explain_buffer_gettext_printf function may be used to translate a string via gettext, and then use it as the format string for a printf into the given string buffer.

Parameters:
sbThe string buffer to print on.
fmtThe format string describing the rest of the arguments, to be localized and printed.