summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-20 16:33:38 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:22 +0100
commit373ad4e9f60cf11b4bcfb2fb3a33b54954a813cc (patch)
treec19a890c629c9692c0d9c1a8cf64f13dcc1d18c2 /src/lib/elua
parent8bd25cc966e2f2ab179d562c1f7845b744e475fd (diff)
downloadefl-373ad4e9f60cf11b4bcfb2fb3a33b54954a813cc.tar.gz
elua lib: docs for elua_state_i18n_setup
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/Elua.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 4d3e1c9255..23ec100b1a 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -306,6 +306,19 @@ EAPI Eina_Bool elua_state_appload_ref_push(Elua_State *es);
*/
EAPI lua_State *elua_state_lua_state_get(const Elua_State *es);
+/**
+ * @brief Set up internationalization support for an Elua state.
+ *
+ * This function sets up correct i18n for an Elua state. That means loading
+ * the gettext bindings and making Lua aware of them. This also works when
+ * i18n support is disabled at compilation time, so you can just call it
+ * unconditionally.
+ *
+ * @param[in] es The Elua state.
+ * @return EINA_TRUE on success, EINA_FALSE on failure.
+ *
+ * @ingroup Elua
+ */
EAPI Eina_Bool elua_state_i18n_setup(const Elua_State *es);
EAPI Eina_Bool elua_state_modules_setup(const Elua_State *es);
EAPI Eina_Bool elua_state_io_setup(const Elua_State *es);