claw  1.9.0
Macros
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)   dgettext("libclaw", (s))
 Call gettext on the default text domain used by Claw. More...
 
#define claw_ngettext(s, p, n)   dngettext("libclaw", (s), (p), (n))
 Call ngettext on the default text domain used by Claw. More...
 

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)    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,
 
)    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.