2001-01-25 10:37:55 +01:00
|
|
|
/* vi: set ts=2:
|
|
|
|
*
|
2001-04-14 13:39:14 +02:00
|
|
|
*
|
2001-01-25 10:37:55 +01:00
|
|
|
* Eressea PB(E)M host Copyright (C) 1998-2000
|
|
|
|
* Christian Schlittchen (corwin@amber.kn-bremen.de)
|
|
|
|
* Katja Zedel (katze@felidae.kn-bremen.de)
|
|
|
|
* Henning Peters (faroul@beyond.kn-bremen.de)
|
|
|
|
* Enno Rehling (enno@eressea-pbem.de)
|
|
|
|
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
|
|
|
|
*
|
|
|
|
* This program may not be used, modified or distributed without
|
|
|
|
* prior permission by the authors of Eressea.
|
|
|
|
*/
|
|
|
|
#ifndef MY_LOCALE_H
|
|
|
|
#define MY_LOCALE_H
|
|
|
|
|
|
|
|
typedef struct locale locale;
|
|
|
|
|
|
|
|
/** managing multiple locales: **/
|
|
|
|
extern locale * find_locale(const char * name);
|
|
|
|
extern locale * make_locale(const char * key);
|
|
|
|
|
|
|
|
/** operations on locales: **/
|
2001-04-16 16:34:19 +02:00
|
|
|
extern void locale_setstring(struct locale * lang, const char * key, const char * value);
|
|
|
|
extern const char * locale_getstring(const struct locale * lang, const char * key);
|
|
|
|
extern const char * locale_string(const struct locale * lang, const char * key); /* does fallback */
|
|
|
|
extern unsigned int locale_hashkey(const struct locale * lang);
|
|
|
|
extern const char * locale_name(const struct locale * lang);
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2001-04-16 16:34:19 +02:00
|
|
|
extern const char * reverse_lookup(const struct locale * lang, const char * str);
|
2002-05-01 21:08:32 +02:00
|
|
|
extern const char * mkname(const char * namespc, const char * key);
|
2001-04-16 16:34:19 +02:00
|
|
|
|
|
|
|
extern void debug_language(const char * log);
|
2001-04-22 07:36:50 +02:00
|
|
|
|
2001-12-10 01:13:39 +01:00
|
|
|
#define LOC(lang, s) locale_string(lang, s)
|
2001-04-22 07:36:50 +02:00
|
|
|
|
2001-05-20 10:41:11 +02:00
|
|
|
extern locale * default_locale;
|
|
|
|
|
2001-01-25 10:37:55 +01:00
|
|
|
#endif
|