From c9f51e450b33e3ba6d5c66434f9fb38081b0efb7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 25 Sep 2017 16:12:28 +0900 Subject: widget: Fix translation of default text parts Note: fileselector uses this translation API Ref T5363 --- src/lib/elementary/elm_part_helper.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/elementary/elm_part_helper.h') 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 * \ _ ## type ## _efl_text_text_get(Eo *obj, Type *pd EINA_UNUSED) \ { \ return efl_text_get(efl_part(efl_super(obj, MY_CLASS), "elm.text")); \ +} \ +EOLIAN static void \ +_ ## type ## _efl_ui_translatable_translatable_text_set(Eo *obj, Type *pd EINA_UNUSED, const char *label, const char *domain) \ +{ \ + efl_ui_translatable_text_set(efl_part(efl_super(obj, MY_CLASS), "elm.text"), label, domain); \ +} \ +EOLIAN static const char * \ +_ ## type ## _efl_ui_translatable_translatable_text_get(Eo *obj, Type *pd EINA_UNUSED, const char **domain) \ +{ \ + return efl_ui_translatable_text_get(efl_part(efl_super(obj, MY_CLASS), "elm.text"), domain); \ } #endif -- cgit v1.2.1