Rizin
unix-like reverse engineering framework and cli tools
tuklib_gettext.h File Reference

Wrapper for gettext and friends. More...

#include "tuklib_common.h"
#include <locale.h>

Go to the source code of this file.

Macros

#define TUKLIB_GETTEXT   0
 
#define tuklib_gettext_init(package, localedir)    setlocale(LC_ALL, "")
 
#define _(msgid)   (msgid)
 
#define ngettext(msgid1, msgid2, n)   ((n) == 1 ? (msgid1) : (msgid2))
 
#define N_(msgid)   msgid
 

Detailed Description

Wrapper for gettext and friends.

Definition in file tuklib_gettext.h.

Macro Definition Documentation

◆ _

#define _ (   msgid)    (msgid)

Definition at line 39 of file tuklib_gettext.h.

◆ N_

#define N_ (   msgid)    msgid

Definition at line 42 of file tuklib_gettext.h.

◆ ngettext

#define ngettext (   msgid1,
  msgid2,
  n 
)    ((n) == 1 ? (msgid1) : (msgid2))

Definition at line 40 of file tuklib_gettext.h.

◆ TUKLIB_GETTEXT

#define TUKLIB_GETTEXT   0

Definition at line 23 of file tuklib_gettext.h.

◆ tuklib_gettext_init

#define tuklib_gettext_init (   package,
  localedir 
)     setlocale(LC_ALL, "")

Definition at line 37 of file tuklib_gettext.h.