|
Greenbone Security Assistant
8.0.0
|
I18n support for Greenbone Security Assistant. More...
#include "gsad_i18n.h"#include "gsad_base.h"#include <assert.h>#include <dirent.h>#include <errno.h>#include <glib.h>#include <libintl.h>#include <libxml/xpath.h>#include <libxml/xpathInternals.h>#include <locale.h>#include <math.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE |
| #define | G_LOG_DOMAIN "gsad i18n" |
| GLib log domain. More... | |
Functions | |
| gchar * | accept_language_to_env_fmt (const char *accept_language) |
| Convert an Accept-Language string to the LANGUAGE env variable form. More... | |
I18n support for Greenbone Security Assistant.
Definition in file gsad_i18n.c.
| #define _GNU_SOURCE |
Definition at line 25 of file gsad_i18n.c.
| #define G_LOG_DOMAIN "gsad i18n" |
GLib log domain.
Definition at line 47 of file gsad_i18n.c.
| gchar* accept_language_to_env_fmt | ( | const char * | accept_language | ) |
Convert an Accept-Language string to the LANGUAGE env variable form.
Converts the language preferences as defined in a HTTP Accept-Language header to a colon-separated list of language codes as used by gettext in the LANGUAGE environment variable.
| [in] | accept_language | HTTP Accept-Language header text. |
Definition at line 62 of file gsad_i18n.c.
References DEFAULT_GSAD_LANGUAGE.
Referenced by handle_gmp_post(), and handle_setup_credentials().
