summaryrefslogtreecommitdiff
path: root/src/examples/edje
diff options
context:
space:
mode:
authorkatpavalli <katpaga.a@samsung.com>2015-06-11 10:40:32 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-06-11 10:40:55 +0200
commit26b27319b42baa40acda3acbccdfedeed4dad838 (patch)
tree6d83262e84f54b0ecca93f504adf6b2c8b1cb21b /src/examples/edje
parented01a32c136aaba8fb23a12afaf334b4c47fc62e (diff)
edje: add po file support in edc translation.
Summary: Implementation to support .po files in edc for translation 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 edje_cc -md . text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore eo` ./edje-text 1) Click On the text "Click here" The language gets changed. Reviewers: shilpasingh, cedric Reviewed By: shilpasingh, cedric Subscribers: cedric, rajeshps, govi, poornima.srinivasan Differential Revision: https://phab.enlightenment.org/D2573 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/edje')
-rw-r--r--src/examples/edje/en_IN/domain_name.mobin201 -> 0 bytes
-rw-r--r--src/examples/edje/en_IN/domain_name.po11
-rw-r--r--src/examples/edje/hi_IN/domain_name.mobin260 -> 0 bytes
-rw-r--r--src/examples/edje/hi_IN/domain_name.po11
-rw-r--r--src/examples/edje/text.edc18
5 files changed, 31 insertions, 9 deletions
diff --git a/src/examples/edje/en_IN/domain_name.mo b/src/examples/edje/en_IN/domain_name.mo
deleted file mode 100644
index 0c1b2fcd16..0000000000
--- a/src/examples/edje/en_IN/domain_name.mo
+++ /dev/null
Binary files differ
diff --git a/src/examples/edje/en_IN/domain_name.po b/src/examples/edje/en_IN/domain_name.po
new file mode 100644
index 0000000000..f461123404
--- /dev/null
+++ b/src/examples/edje/en_IN/domain_name.po
@@ -0,0 +1,11 @@
1msgid "LOADING"
2msgstr "Loading..."
3
4msgid "LANG"
5msgstr "Language English"
6
7msgid "SYSTEM LANGUAGE"
8msgstr "System Language"
9
10msgid "CHANGED"
11msgstr "Changed"
diff --git a/src/examples/edje/hi_IN/domain_name.mo b/src/examples/edje/hi_IN/domain_name.mo
deleted file mode 100644
index 3901b8c2df..0000000000
--- a/src/examples/edje/hi_IN/domain_name.mo
+++ /dev/null
Binary files differ
diff --git a/src/examples/edje/hi_IN/domain_name.po b/src/examples/edje/hi_IN/domain_name.po
new file mode 100644
index 0000000000..809cf6f399
--- /dev/null
+++ b/src/examples/edje/hi_IN/domain_name.po
@@ -0,0 +1,11 @@
1msgid "LOADING"
2msgstr "लोड हो रहा है..."
3
4msgid "LANG"
5msgstr "भाषा हिन्दी"
6
7msgid "SYSTEM LANGUAGE"
8msgstr "सिस्टम भाषा"
9
10msgid "CHANGED"
11msgstr "बदल"
diff --git a/src/examples/edje/text.edc b/src/examples/edje/text.edc
index ed0548d037..75fcaed529 100644
--- a/src/examples/edje/text.edc
+++ b/src/examples/edje/text.edc
@@ -21,15 +21,15 @@ collections {
21 translation { 21 translation {
22 file { 22 file {
23 locale: en_IN; 23 locale: en_IN;
24 source: domain_name.mo; /* Can be either .po file or .mo file */ 24 source: domain_name.po; /* Can be either .po file or .mo file*/
25 } 25 }
26 file { 26 file {
27 locale: hi_IN; 27 locale: hi_IN;
28 source: domain_name.mo; 28 source: domain_name.po;
29 } 29 }
30 file { 30 file {
31 locale: ta_IN; 31 locale: ta_IN;
32 source: domain_name.mo; 32 source: domain_name.po;
33 } 33 }
34 } 34 }
35 styles { 35 styles {
@@ -144,11 +144,11 @@ collections {
144 translation { 144 translation {
145 file { 145 file {
146 locale: en_IN; 146 locale: en_IN;
147 source: domain_name.mo; 147 source: domain_name.po;
148 } 148 }
149 file { 149 file {
150 locale: hi_IN; 150 locale: hi_IN;
151 source: domain_name.mo; 151 source: domain_name.po;
152 } 152 }
153 file { 153 file {
154 locale: ta_IN; 154 locale: ta_IN;
@@ -267,11 +267,11 @@ collections {
267 translation { 267 translation {
268 file { 268 file {
269 locale: en_IN; 269 locale: en_IN;
270 source: domain_name.mo; 270 source: domain_name.po;
271 } 271 }
272 file { 272 file {
273 locale: hi_IN; 273 locale: hi_IN;
274 source: domain_name.mo; 274 source: domain_name.po;
275 } 275 }
276 file { 276 file {
277 locale: ta_IN; 277 locale: ta_IN;
@@ -390,11 +390,11 @@ collections {
390 translation { 390 translation {
391 file { 391 file {
392 locale: en_IN; 392 locale: en_IN;
393 source: domain_name.mo; 393 source: domain_name.po;
394 } 394 }
395 file { 395 file {
396 locale: hi_IN; 396 locale: hi_IN;
397 source: domain_name.mo; 397 source: domain_name.po;
398 } 398 }
399 file { 399 file {
400 locale: ta_IN; 400 locale: ta_IN;