GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
GIS Library - Functions to handle locale. More...
#include <grass/config.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <grass/glocale.h>
#include <grass/gis.h>
Go to the source code of this file.
Macros | |
#define | NO_NLS_UNUSED |
Functions | |
void | G_init_locale (void) |
char * | G_gettext (const char *package NO_NLS_UNUSED, const char *msgid) |
Gets localized text. More... | |
char * | G_ngettext (const char *package NO_NLS_UNUSED, const char *msgids, const char *msgidp, unsigned long int n) |
Gets localized text with correct plural forms. More... | |
GIS Library - Functions to handle locale.
(C) 2001-2014 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file locale.c.
char* G_gettext | ( | const char *package | NO_NLS_UNUSED, |
const char * | msgid | ||
) |
Gets localized text.
[in] | package | |
[in] | msgid |
char | * Pointer to string |
Definition at line 66 of file locale.c.
References G_init_locale().
void G_init_locale | ( | void | ) |
Definition at line 29 of file locale.c.
Referenced by G_gettext(), G_init_all(), and G_ngettext().
char* G_ngettext | ( | const char *package | NO_NLS_UNUSED, |
const char * | msgids, | ||
const char * | msgidp, | ||
unsigned long int | n | ||
) |
Gets localized text with correct plural forms.
[in] | package | |
[in] | msgids | A singular version of string |
[in] | msgidp | A plural version of string |
[in] | n | The number |
char | * Pointer to string |
Definition at line 87 of file locale.c.
References G_init_locale().