Evas: Add API to reinit the language and use it in elementary. 27/65727/2
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 8 Apr 2016 10:17:51 +0000 (11:17 +0100)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 14 Apr 2016 04:55:00 +0000 (21:55 -0700)
commitfcb6b68b91aa4b0c9f75424ef80a9cdca4b0acef
treeba5f3be982d47d30720fe59e80e236d1368be38c
parent519187ea92a1da7f7effccde33c06919706ea76e
Evas: Add API to reinit the language and use it in elementary.

Summary:
evas_common_language_from_locale_* functions kept static pointers
inside of its functions. Once these function was called, it was never reset.
It made big problems for harfbuzz and hyphenation. Also, Elementary
provides elm_language_set() API. Then we need to support it fully.
@fix

Test Plan: Test case for hyphenation is included in Evas test suite.

Reviewers: raster, tasn, herdsman, woohyun, z-wony, Blackmole, minudf

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3864

Conflicts:
src/lib/elementary/elm_main.c

The change for elementary will be applied at elementary git.

Change-Id: I747fc027973538c2d04180c23dce4c19c307419d
src/lib/evas/Evas_Common.h
src/lib/evas/canvas/evas_main.c
src/lib/evas/common/language/evas_language_utils.c
src/lib/evas/common/language/evas_language_utils.h
src/tests/evas/evas_test_textblock.c