summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_part_helper.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-25 16:12:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-26 17:58:07 +0900
commitc9f51e450b33e3ba6d5c66434f9fb38081b0efb7 (patch)
tree29096af891ac88b8813d86c49a5e79702face783 /src/lib/elementary/elm_part_helper.h
parent5f96c6fb4b09e45b5de18d7c8cb6a28fca8a489a (diff)
widget: Fix translation of default text parts
Note: fileselector uses this translation API Ref T5363
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/elm_part_helper.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_part_helper.h b/src/lib/elementary/elm_part_helper.h
index 08612ff1df..bf84b5710a 100644
--- a/src/lib/elementary/elm_part_helper.h
+++ b/src/lib/elementary/elm_part_helper.h
@@ -150,6 +150,16 @@ EOLIAN static const char * \
150_ ## type ## _efl_text_text_get(Eo *obj, Type *pd EINA_UNUSED) \ 150_ ## type ## _efl_text_text_get(Eo *obj, Type *pd EINA_UNUSED) \
151{ \ 151{ \
152 return efl_text_get(efl_part(efl_super(obj, MY_CLASS), "elm.text")); \ 152 return efl_text_get(efl_part(efl_super(obj, MY_CLASS), "elm.text")); \
153} \
154EOLIAN static void \
155_ ## type ## _efl_ui_translatable_translatable_text_set(Eo *obj, Type *pd EINA_UNUSED, const char *label, const char *domain) \
156{ \
157 efl_ui_translatable_text_set(efl_part(efl_super(obj, MY_CLASS), "elm.text"), label, domain); \
158} \
159EOLIAN static const char * \
160_ ## type ## _efl_ui_translatable_translatable_text_get(Eo *obj, Type *pd EINA_UNUSED, const char **domain) \
161{ \
162 return efl_ui_translatable_text_get(efl_part(efl_super(obj, MY_CLASS), "elm.text"), domain); \
153} 163}
154 164
155#endif 165#endif