claw 1.9.0
 
Loading...
Searching...
No Matches
claw_gettext.hpp File Reference

Macros to call gettext on the libclaw textdomain. More...

#include <libintl.h>
Include dependency graph for claw_gettext.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define claw_gettext(s)
 Call gettext on the default text domain used by Claw.
 
#define claw_ngettext(s, p, n)
 Call ngettext on the default text domain used by Claw.
 

Detailed Description

Macros to call gettext on the libclaw textdomain.

Author
Julien Jorge

Definition in file claw_gettext.hpp.

Macro Definition Documentation

◆ claw_gettext

#define claw_gettext ( s)
Value:
dgettext("libclaw", (s))

Call gettext on the default text domain used by Claw.

Parameters
sThe string to translate.

Definition at line 39 of file claw_gettext.hpp.

◆ claw_ngettext

#define claw_ngettext ( s,
p,
n )
Value:
dngettext("libclaw", (s), (p), (n))

Call ngettext on the default text domain used by Claw.

Parameters
sThe string to translate by default.
pThe plural version of s.
nThe number thar triggers the choice of s or p.

Definition at line 47 of file claw_gettext.hpp.