summaryrefslogtreecommitdiff
path: root/src/bin/e_intl.h
diff options
context:
space:
mode:
authorKibum Kim <kb0929.kim@samsung.com>2012-01-07 00:44:45 +0900
committerKibum Kim <kb0929.kim@samsung.com>2012-01-07 00:44:45 +0900
commitbafc5398580eb00b0d31c8af54c4c8970c288b71 (patch)
tree14ad9d0bbbcfea722f790b46a4618d8c06781fb6 /src/bin/e_intl.h
parent3a25a1f342f79f5e6b8c83ca009462a8804a7c45 (diff)
downloade17-bafc5398580eb00b0d31c8af54c4c8970c288b71.tar.gz
e17-bafc5398580eb00b0d31c8af54c4c8970c288b71.tar.bz2
e17-bafc5398580eb00b0d31c8af54c4c8970c288b71.zip
Git init
Diffstat (limited to 'src/bin/e_intl.h')
-rw-r--r--src/bin/e_intl.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/bin/e_intl.h b/src/bin/e_intl.h
new file mode 100644
index 0000000..ee67f10
--- /dev/null
+++ b/src/bin/e_intl.h
@@ -0,0 +1,63 @@
+#ifdef E_INTERNAL
+#if E_INTERNAL
+
+#ifdef E_TYPEDEFS
+#ifdef HAVE_GETTEXT
+#define _(str) gettext(str)
+#define d_(str, dom) dgettext(PACKAGE dom, str)
+#else
+#define _(str) (str)
+#define d_(str, dom) (str)
+#endif
+/* 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)
+
+typedef struct _E_Locale_Parts E_Locale_Parts;
+
+#else
+#ifndef E_INTL_H
+#define E_INTL_H
+
+#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
+
+struct _E_Locale_Parts
+{
+ int mask;
+ const char *lang;
+ const char *region;
+ const char *codeset;
+ const char *modifier;
+};
+
+EINTERN int e_intl_init(void);
+EINTERN int e_intl_shutdown(void);
+EINTERN int e_intl_post_init(void);
+EINTERN int e_intl_post_shutdown(void);
+/* Setting & Getting Language */
+EAPI void e_intl_language_set(const char *lang);
+EAPI const char *e_intl_language_get(void);
+EAPI const char *e_intl_language_alias_get(void);
+EAPI Eina_List *e_intl_language_list(void);
+/* Setting & Getting Input Method */
+EAPI void e_intl_input_method_set(const char *method);
+EAPI const char *e_intl_input_method_get(void);
+EAPI Eina_List *e_intl_input_method_list(void);
+EAPI const char *e_intl_imc_personal_path_get(void);
+EAPI const char *e_intl_imc_system_path_get(void);
+
+/* Getting locale */
+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);
+EAPI char *e_intl_locale_charset_canonic_get(const char *charset);
+
+#endif
+#endif
+
+#endif
+#endif