1 #include "apachetools.h"
4 #define MODULE_NAME "mod_xmltools" /* our module name */
5 #define PARAM_LOCALE "locale" /* the URL param for the local directory */
6 #define LANG_DTD "lang.dtd" /* the DTD for the test entities */
10 /* ------------------------------------------------------------------------------ */
11 /* Apache config items. These are defaults which are only used if they are not
12 overriden by the Apache config or URL where appropriate */
13 /* ------------------------------------------------------------------------------ */
14 /* The default directory where the local files are stored */
15 #define DEFAULT_LOCALE_DIR "/openils/var/locale"
16 #define DEFAULT_LOCALE "en-US"
17 /* ------------------------------------------------------------------------------ */
21 module AP_MODULE_DECLARE_DATA mod_xmltools;
24 /* our config structure */
26 /* directory on disk where the locale directories live */
29 } mod_xmltools_config;
33 /* allocates a char* to hold the name of the DTD language file
34 Prints to stderr and returns NULL if there was an error loading the file
35 default_locale comes from the apache config and is used only if no
36 locale is provided via URL
37 locale_dir also comes from the apache config.
39 char* get_dtd_lang_file(string_array* params, char* default_locale, char* locale_dir);