2005-04-11 13:25:52 -07:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
2008-01-09 23:43:01 -08:00
|
|
|
#if E_INTERNAL
|
2005-04-11 13:25:52 -07:00
|
|
|
#define _(str) gettext(str)
|
|
|
|
#define d_(str, dom) dgettext(PACKAGE dom, str)
|
2008-01-09 23:43:01 -08:00
|
|
|
#endif
|
2005-04-11 13:25:52 -07:00
|
|
|
|
2006-05-31 15:51:24 -07:00
|
|
|
/* This macro is used to just mark string for translation, this is useful
|
|
|
|
* for string lists which are not dynamically allocated
|
|
|
|
*/
|
|
|
|
#define N_(str) (str)
|
|
|
|
|
2006-11-16 06:25:22 -08:00
|
|
|
typedef struct _E_Locale_Parts E_Locale_Parts;
|
2005-10-15 03:49:54 -07:00
|
|
|
|
2005-04-11 13:25:52 -07:00
|
|
|
#else
|
|
|
|
#ifndef E_INTL_H
|
|
|
|
#define E_INTL_H
|
|
|
|
|
2006-03-09 06:50:12 -08:00
|
|
|
#define E_INTL_LOC_CODESET 1 << 0
|
|
|
|
#define E_INTL_LOC_REGION 1 << 1
|
|
|
|
#define E_INTL_LOC_MODIFIER 1 << 2
|
|
|
|
#define E_INTL_LOC_LANG 1 << 3
|
|
|
|
|
2006-11-16 06:25:22 -08:00
|
|
|
struct _E_Locale_Parts
|
|
|
|
{
|
|
|
|
int mask;
|
|
|
|
const char *lang;
|
|
|
|
const char *region;
|
|
|
|
const char *codeset;
|
|
|
|
const char *modifier;
|
|
|
|
};
|
|
|
|
|
2005-10-15 03:49:54 -07:00
|
|
|
EAPI int e_intl_init(void);
|
|
|
|
EAPI int e_intl_shutdown(void);
|
2005-10-22 21:56:51 -07:00
|
|
|
EAPI int e_intl_post_init(void);
|
|
|
|
EAPI int e_intl_post_shutdown(void);
|
2005-10-15 03:49:54 -07:00
|
|
|
/* Setting & Getting Language */
|
|
|
|
EAPI void e_intl_language_set(const char *lang);
|
|
|
|
EAPI const char *e_intl_language_get(void);
|
2006-03-13 05:51:22 -08:00
|
|
|
EAPI const char *e_intl_language_alias_get(void);
|
2008-10-22 04:49:33 -07:00
|
|
|
EAPI Eina_List *e_intl_language_list(void);
|
2005-10-15 03:49:54 -07:00
|
|
|
/* Setting & Getting Input Method */
|
|
|
|
EAPI void e_intl_input_method_set(const char *method);
|
|
|
|
EAPI const char *e_intl_input_method_get(void);
|
2008-10-22 04:49:33 -07:00
|
|
|
EAPI Eina_List *e_intl_input_method_list(void);
|
2006-12-17 03:24:59 -08:00
|
|
|
EAPI const char *e_intl_imc_personal_path_get(void);
|
|
|
|
EAPI const char *e_intl_imc_system_path_get(void);
|
|
|
|
|
2006-03-09 06:50:12 -08:00
|
|
|
/* Getting locale */
|
2006-11-16 06:25:22 -08:00
|
|
|
EAPI E_Locale_Parts *e_intl_locale_parts_get(const char *locale);
|
|
|
|
EAPI void e_intl_locale_parts_free(E_Locale_Parts *locale_parts);
|
|
|
|
EAPI char *e_intl_locale_parts_combine(E_Locale_Parts *locale_parts, int mask);
|
2006-11-04 21:09:55 -08:00
|
|
|
EAPI char *e_intl_locale_charset_canonic_get(const char *charset);
|
2005-04-11 13:25:52 -07:00
|
|
|
#endif
|
|
|
|
#endif
|