path: root/src/lib/elementary/elm_dayselector.c
diff options
authorJean-Philippe Andre <>2017-09-22 15:13:16 +0900
committerJean-Philippe Andre <>2017-09-26 17:58:07 +0900
commit839c4ed395f4aa20c3d8089bad828f2ebdc95a4b (patch)
treee34298f4924fab9755e198b9f87ce2f5ca81f638 /src/lib/elementary/elm_dayselector.c
parent2b7f9b6dfd372af81fd691ac0a0a87b53f8cce34 (diff)
elm: Introduce interface Efl.Ui.Translatable
This will be used to replace the part translation API in Elm.Widget. It should work for both parts and non-parts (ie. the main text of a button, for instance). For now I'm taking the following approach: - All efl_text_set/get strings are untranslatable, i.e. get() returns the visible string, set replaces and can not be translated. - translatable_text_set/get needs to be used to enable automatic translation, which in turns calls efl_text_set to modify the visible string. Thus, translatable applications will have to use efl_ui_translatable_text_set a lot more than efl_text_set, unless they translate strings application-side. Note that some other frameworks take a simpler approach equivalent to calling efl_text_set() with an already translated text. This prevents runtime language changes of the application, unless the application handles them specifically.
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index 3f20da3..7274b84 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -56,7 +56,7 @@ _dayselector_resize(void *data,
56} 56}
57 57
58EOLIAN static void 58EOLIAN static void
59_elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data *sd) 59_elm_dayselector_efl_ui_translatable_translation_update(Eo *obj EINA_UNUSED, Elm_Dayselector_Data *sd)
60{ 60{
61 time_t t; 61 time_t t;
62 Eina_List *l; 62 Eina_List *l;
@@ -76,7 +76,7 @@ _elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data
76 elm_object_text_set(VIEW(it), buf); 76 elm_object_text_set(VIEW(it), buf);
77 } 77 }
78 78
79 elm_obj_widget_translate(efl_super(obj, MY_CLASS)); 79 efl_ui_translatable_translation_update(efl_super(obj, MY_CLASS));
80} 80}
81 81
82static void 82static void