Greenbone Security Assistant  7.0.0
xslt_i18n.h
Go to the documentation of this file.
1 /* Greenbone Security Assistant
2  * $Id$
3  * Description: Translation libxslt extension of Greenbone Security Assistant.
4  *
5  * Authors:
6  * Timo Pollmeier <timo.pollmeier@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2015 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef _XSLT_I18N_H
27 #define _XSLT_I18N_H
28 
29 #include <libxslt/extensions.h>
30 #include <glib.h>
31 
35 #define DEFAULT_GSAD_LANGUAGE "en"
36 
38 
40 
41 void set_ext_gettext_enabled (int);
42 
43 int init_language_lists ();
44 
45 void buffer_languages_xml (GString *);
46 
47 gchar* accept_language_to_env_fmt (const char*);
48 
49 #endif /* not _XSLT_I18N_H */
void register_i18n_ext_module()
Register the i18n XSLT extension module.
Definition: xslt_i18n.c:533
void buffer_languages_xml(GString *)
Write the list of installed languages to a buffer as XML.
Definition: xslt_i18n.c:718
int init_language_lists()
Initialize the list of available languages.
Definition: xslt_i18n.c:580
gchar * accept_language_to_env_fmt(const char *)
Convert an Accept-Language string to the LANGUAGE env variable form.
Definition: xslt_i18n.c:769
int get_ext_gettext_enabled()
Get whether gettext functions for extensions are enabled.
Definition: xslt_i18n.c:558
void set_ext_gettext_enabled(int)
Enable or disable gettext functions for extensions.
Definition: xslt_i18n.c:569