summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_naviframe.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-22 15:13:16 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-26 17:58:07 +0900
commit839c4ed395f4aa20c3d8089bad828f2ebdc95a4b (patch)
treee34298f4924fab9755e198b9f87ce2f5ca81f638 /src/lib/elementary/elc_naviframe.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/elc_naviframe.c')
-rw-r--r--src/lib/elementary/elc_naviframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c
index e9a39e4..6975a70 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -105,14 +105,14 @@ _prev_page_focus_recover(Elm_Naviframe_Item_Data *it)
105} 105}
106 106
107EOLIAN static void 107EOLIAN static void
108_elm_naviframe_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Naviframe_Data *sd) 108_elm_naviframe_efl_ui_translatable_translation_update(Eo *obj EINA_UNUSED, Elm_Naviframe_Data *sd)
109{ 109{
110 Elm_Naviframe_Item_Data *it; 110 Elm_Naviframe_Item_Data *it;
111 111
112 EINA_INLIST_FOREACH(sd->stack, it) 112 EINA_INLIST_FOREACH(sd->stack, it)
113 elm_wdg_item_translate(EO_OBJ(it)); 113 elm_wdg_item_translate(EO_OBJ(it));
114 114
115 elm_obj_widget_translate(efl_super(obj, MY_CLASS)); 115 efl_ui_translatable_translation_update(efl_super(obj, MY_CLASS));
116} 116}
117 117
118static void 118static void