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

KDECore

  • kdecore
  • localization
Macros | Functions
gettext.h File Reference
#include <string.h>
#include <stdlib.h>

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

◆ _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS

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

◆ bind_textdomain_codeset

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

Definition at line 78 of file gettext.h.

◆ bindtextdomain

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

Definition at line 77 of file gettext.h.

◆ dcgettext

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

Definition at line 69 of file gettext.h.

◆ dcngettext

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

Definition at line 74 of file gettext.h.

◆ dcnpgettext

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

◆ dcpgettext

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

Definition at line 107 of file gettext.h.

◆ dgettext

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

Definition at line 68 of file gettext.h.

◆ dngettext

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

Definition at line 72 of file gettext.h.

◆ dnpgettext

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

◆ dnpgettext_expr

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

◆ dpgettext

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

Definition at line 105 of file gettext.h.

◆ dpgettext_expr

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

Definition at line 176 of file gettext.h.

◆ gettext

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

Definition at line 67 of file gettext.h.

◆ GETTEXT_CONTEXT_GLUE

#define GETTEXT_CONTEXT_GLUE   "\004"

Definition at line 92 of file gettext.h.

◆ gettext_noop

#define gettext_noop (   String)    String

Definition at line 89 of file gettext.h.

◆ ngettext

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

Definition at line 70 of file gettext.h.

◆ npgettext

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

◆ npgettext_expr

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

Definition at line 219 of file gettext.h.

◆ pgettext

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

Definition at line 102 of file gettext.h.

◆ pgettext_expr

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

Definition at line 174 of file gettext.h.

◆ textdomain

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

Definition at line 76 of file gettext.h.

Function Documentation

◆ dcnpgettext_expr()

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.

◆ dcpgettext_expr()

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.

◆ npgettext_aux()

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.

◆ pgettext_aux()

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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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