GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
glocale.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __attribute__(x)
 

Functions

void G_init_locale (void)
 
charG_gettext (const char *, const char *)
 Gets localized text.
 
charG_ngettext (const char *, const char *, const char *, unsigned long int)
 Gets localized text with correct plural forms.
 

Macro Definition Documentation

◆ __attribute__

#define __attribute__ (   x)

Definition at line 6 of file defs/glocale.h.

Function Documentation

◆ G_gettext()

char * G_gettext ( const char package,
const char msgid 
)
extern

Gets localized text.

Parameters
[in]package
[in]msgid
Return values
char* Pointer to string

Definition at line 65 of file locale.c.

References G_init_locale().

◆ G_init_locale()

void G_init_locale ( void  )
extern

Definition at line 29 of file locale.c.

References G_initialize_done(), G_is_initialized(), GPATH_MAX, and strcpy.

Referenced by G_gettext(), G_init_all(), and G_ngettext().

◆ G_ngettext()

char * G_ngettext ( const char package,
const char msgids,
const char msgidp,
unsigned long int  n 
)
extern

Gets localized text with correct plural forms.

Parameters
[in]package
[in]msgidsA singular version of string
[in]msgidpA plural version of string
[in]nThe number
Return values
char* Pointer to string

Definition at line 85 of file locale.c.

References G_init_locale().