path: root/src/lib/edje/edje_embryo.c
diff options
authorkatpavalli <>2015-05-13 18:08:04 +0200
committerCedric BAIL <>2015-05-14 18:41:47 +0200
commitdca95fb45af216068b5476f7110639cb3715b96b (patch)
tree49691183f3c708bebf663a3f8a34d00028ae6f5d /src/lib/edje/edje_embryo.c
parenta312e304bf181777aa8190f4281ebdac49a827a5 (diff)
edje: support translation on static strings in edc.
Summary: Internationalisation of the static text specified as part of the edc is implemented. Problem: Static text when specified in the edc, remains unchanged when the system language is changed. Solution: Language support is provided even for the static strings in the edc. Test Plan: Test code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc Compile the code with the below command edje_cc -md <dir path>/efl/src/examples/edje/ text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore` ./edje-text 1) change the language of the system using the command export LANGUAGE=hi ./edje.text Not the text Loading gets displayed in hindi language 2) change the language of the system using the command export LANGUAGE=ta ./edje.text Not the text Loading gets displayed in tamil language 3) change the language of the system using the command export LANGUAGE=en ./edje.text Not the text Loading gets displayed in english language As the number of .mo files in the /edje folder can be increased, those many languages can be supported Reviewers: cedric, shilpasingh Reviewed By: shilpasingh Subscribers: cedric, rajeshps, govi, poornima.srinivasan Differential Revision: Signed-off-by: Cedric BAIL <>
Diffstat (limited to 'src/lib/edje/edje_embryo.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index c4ddf4e372..b4207eafc9 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -1922,6 +1922,8 @@ _edje_embryo_fn_custom_state(Embryo_Program *ep, Embryo_Cell *params)
1922 text_desc->text.text_class = DUP(text_desc->text.text_class); 1922 text_desc->text.text_class = DUP(text_desc->text.text_class);
1923 text_desc->text.text.str = DUP(edje_string_get(&text_desc->text.text)); 1923 text_desc->text.text.str = DUP(edje_string_get(&text_desc->text.text));
1924 text_desc-> = 0; 1924 text_desc-> = 0;
1925 text_desc->text.text.translated = NULL;
1926 text_desc->text.domain = DUP(text_desc->text.domain);
1925 text_desc->text.font.str = DUP(edje_string_get(&text_desc->text.font)); 1927 text_desc->text.font.str = DUP(edje_string_get(&text_desc->text.font));
1926 text_desc-> = 0; 1928 text_desc-> = 0;
1927 text_desc-> = DUP(edje_string_get(&text_desc->; 1929 text_desc-> = DUP(edje_string_get(&text_desc->;