summaryrefslogtreecommitdiff
path: root/src/examples/edje/Makefile.am
diff options
context:
space:
mode:
authorkatpavalli <katpaga.a@samsung.com>2015-05-13 18:08:04 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:41:47 +0200
commitdca95fb45af216068b5476f7110639cb3715b96b (patch)
tree49691183f3c708bebf663a3f8a34d00028ae6f5d /src/examples/edje/Makefile.am
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: https://phab.enlightenment.org/D2336 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/edje/Makefile.am')
-rw-r--r--src/examples/edje/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 3755a4d636..a311c5b93f 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -9,6 +9,8 @@ if ENABLE_MULTISENSE
9SND_DIR = -sd $(srcdir) 9SND_DIR = -sd $(srcdir)
10endif 10endif
11 11
12MO_DIR = -md $(srcdir)
13
12#put here all EDCs one needs to the examples 14#put here all EDCs one needs to the examples
13EDCS = \ 15EDCS = \
14edje-group.edc \ 16edje-group.edc \
@@ -67,7 +69,7 @@ endif
67DIST_EDCS += $(PHYSICS_EDCS) 69DIST_EDCS += $(PHYSICS_EDCS)
68 70
69.edc.edj: 71.edc.edj:
70 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $< $(builddir)/$(@F) 72 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< $(builddir)/$(@F)
71 73
72 74
73EDJS = $(EDCS:%.edc=%.edj) 75EDJS = $(EDCS:%.edc=%.edj)