Claw  1.7.3
Macros
claw_gettext.hpp File Reference

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

#include <libintl.h>

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.
#define claw_ngettext(s, p, n)   dngettext( "libclaw", (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

#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.

Referenced by claw::application::application(), and claw::log_level::get_string().

#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.