dpkg 1.21.11
Data Structures | Macros | Functions
Internationalization support
Collaboration diagram for Internationalization support:

Data Structures

struct  dpkg_locale
 

Macros

#define _(str)   gettext(str)
 
#define P_(str, str_plural, n)   ngettext(str, str_plural, n)
 
#define N_(str)   gettext_noop(str)
 
#define C_(ctxt, str)   pgettext(ctxt, str)
 

Functions

void dpkg_locales_init (const char *package)
 
void dpkg_locales_done (void)
 
struct dpkg_locale dpkg_locale_switch_C (void)
 
void dpkg_locale_switch_back (struct dpkg_locale loc)
 

Detailed Description

Macro Definition Documentation

◆ _

#define _ (   str)    gettext(str)

◆ C_

#define C_ (   ctxt,
  str 
)    pgettext(ctxt, str)

◆ N_

#define N_ (   str)    gettext_noop(str)

◆ P_

#define P_ (   str,
  str_plural,
 
)    ngettext(str, str_plural, n)

Function Documentation

◆ dpkg_locale_switch_back()

void dpkg_locale_switch_back ( struct dpkg_locale  loc)

References dpkg_locale::oldloc.

◆ dpkg_locale_switch_C()

struct dpkg_locale dpkg_locale_switch_C ( void  )

References dpkg_locale::oldloc.

◆ dpkg_locales_done()

void dpkg_locales_done ( void  )

◆ dpkg_locales_init()

void dpkg_locales_init ( const char *  package)

Referenced by main().

Here is the caller graph for this function: