• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • localization
Macros | Functions
gettext.h File Reference
#include <string.h>
Include dependency graph for gettext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (__STRICT_ANSI__ - 0 == 0) && (__GNUC__ >= 3 || __GNUG__ >= 2 /* || __STDC_VERSION__ >= 199901L */ )
 
#define bind_textdomain_codeset(Domainname, Codeset)   ((const char *) (Codeset))
 
#define bindtextdomain(Domainname, Dirname)   ((const char *) (Dirname))
 
#define dcgettext(Domainname, Msgid, Category)   ((const char *) (Msgid))
 
#define dcngettext(Domainname, Msgid1, Msgid2, N, Category)   ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
 
#define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
 
#define dcpgettext(Domainname, Msgctxt, Msgid, Category)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
 
#define dgettext(Domainname, Msgid)   ((const char *) (Msgid))
 
#define dngettext(Domainname, Msgid1, Msgid2, N)   ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
 
#define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define dpgettext(Domainname, Msgctxt, Msgid)   pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define dpgettext_expr(Domainname, Msgctxt, Msgid)   dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
 
#define gettext(Msgid)   ((const char *) (Msgid))
 
#define GETTEXT_CONTEXT_GLUE   "\004"
 
#define gettext_noop(String)   String
 
#define ngettext(Msgid1, Msgid2, N)   ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
 
#define npgettext(Msgctxt, Msgid, MsgidPlural, N)   npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N)   dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
 
#define pgettext(Msgctxt, Msgid)   pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
 
#define pgettext_expr(Msgctxt, Msgid)   dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
 
#define textdomain(Domainname)   ((const char *) (Domainname))
 

Functions

static const char * dcnpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, const char *msgid_plural, unsigned long int n, int category)
 
static const char * dcpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, int category)
 
static const char * npgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, const char *msgid_plural, unsigned long int n, int category)
 
static const char * pgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, int category)
 

Macro Definition Documentation

#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS   (__STRICT_ANSI__ - 0 == 0) && (__GNUC__ >= 3 || __GNUG__ >= 2 /* || __STDC_VERSION__ >= 199901L */ )

Definition at line 167 of file gettext.h.

#define bind_textdomain_codeset (   Domainname,
  Codeset 
)    ((const char *) (Codeset))

Definition at line 78 of file gettext.h.

#define bindtextdomain (   Domainname,
  Dirname 
)    ((const char *) (Dirname))

Definition at line 77 of file gettext.h.

#define dcgettext (   Domainname,
  Msgid,
  Category 
)    ((const char *) (Msgid))

Definition at line 69 of file gettext.h.

#define dcngettext (   Domainname,
  Msgid1,
  Msgid2,
  N,
  Category 
)    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))

Definition at line 74 of file gettext.h.

#define dcnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N,
  Category 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)

Definition at line 118 of file gettext.h.

#define dcpgettext (   Domainname,
  Msgctxt,
  Msgid,
  Category 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)

Definition at line 107 of file gettext.h.

#define dgettext (   Domainname,
  Msgid 
)    ((const char *) (Msgid))

Definition at line 68 of file gettext.h.

#define dngettext (   Domainname,
  Msgid1,
  Msgid2,
  N 
)    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))

Definition at line 72 of file gettext.h.

#define dnpgettext (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N 
)    npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)

Definition at line 116 of file gettext.h.

#define dnpgettext_expr (   Domainname,
  Msgctxt,
  Msgid,
  MsgidPlural,
  N 
)    dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)

Definition at line 221 of file gettext.h.

#define dpgettext (   Domainname,
  Msgctxt,
  Msgid 
)    pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)

Definition at line 105 of file gettext.h.

#define dpgettext_expr (   Domainname,
  Msgctxt,
  Msgid 
)    dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)

Definition at line 176 of file gettext.h.

#define gettext (   Msgid)    ((const char *) (Msgid))

Definition at line 67 of file gettext.h.

#define GETTEXT_CONTEXT_GLUE   "\004"

Definition at line 92 of file gettext.h.

#define gettext_noop (   String)    String

Definition at line 89 of file gettext.h.

#define ngettext (   Msgid1,
  Msgid2,
  N 
)    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))

Definition at line 70 of file gettext.h.

#define npgettext (   Msgctxt,
  Msgid,
  MsgidPlural,
  N 
)    npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)

Definition at line 113 of file gettext.h.

#define npgettext_expr (   Msgctxt,
  Msgid,
  MsgidPlural,
  N 
)    dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)

Definition at line 219 of file gettext.h.

#define pgettext (   Msgctxt,
  Msgid 
)    pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)

Definition at line 102 of file gettext.h.

#define pgettext_expr (   Msgctxt,
  Msgid 
)    dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)

Definition at line 174 of file gettext.h.

#define textdomain (   Domainname)    ((const char *) (Domainname))

Definition at line 76 of file gettext.h.

Function Documentation

static const char* dcnpgettext_expr ( const char *  domain,
const char *  msgctxt,
const char *  msgid,
const char *  msgid_plural,
unsigned long int  n,
int  category 
)
static

Definition at line 232 of file gettext.h.

static const char* dcpgettext_expr ( const char *  domain,
const char *  msgctxt,
const char *  msgid,
int  category 
)
static

Definition at line 187 of file gettext.h.

static const char* npgettext_aux ( const char *  domain,
const char *  msg_ctxt_id,
const char *  msgid,
const char *  msgid_plural,
unsigned long int  n,
int  category 
)
static

Definition at line 148 of file gettext.h.

static const char* pgettext_aux ( const char *  domain,
const char *  msg_ctxt_id,
const char *  msgid,
int  category 
)
static

Definition at line 129 of file gettext.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal