path: root/src/lib/elementary/elm_ctxpopup.eo
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_ctxpopup.eo
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_ctxpopup.eo')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_ctxpopup.eo b/src/lib/elementary/elm_ctxpopup.eo
index 4829b74..d46b054 100644
--- a/src/lib/elementary/elm_ctxpopup.eo
+++ b/src/lib/elementary/elm_ctxpopup.eo
@@ -208,7 +208,7 @@ class Elm.Ctxpopup (Efl.Ui.Layout, Elm.Interface.Atspi_Widget_Action,
208 Elm.Widget.focus_next; 208 Elm.Widget.focus_next;
209 Elm.Widget.on_disabled_update; 209 Elm.Widget.on_disabled_update;
210 Elm.Widget.widget_sub_object_add; 210 Elm.Widget.widget_sub_object_add;
211 Elm.Widget.translate; 211 Efl.Ui.Translatable.translation_update;
212 Elm.Widget.theme_apply; 212 Elm.Widget.theme_apply;
213 Elm.Widget.widget_event; 213 Elm.Widget.widget_event;
214 Efl.Ui.Menu.selected_item { get; } 214 Efl.Ui.Menu.selected_item { get; }