forked from enlightenment/efl
edje: Fix to support translation for textblock part
Summary: Text translation in edc for textblock is missing. Added to support it. @fix Reviewers: cedric, zmike Reviewed By: cedric, zmike Subscribers: shilpasingh, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6164
This commit is contained in:
parent
ba31824a86
commit
b8c691ebd2
|
@ -2551,6 +2551,7 @@ void _edje_signal_callback_reset(Edje_Signal_Callback_Flags *flags, unsigned int
|
|||
|
||||
void _edje_signal_callback_free(const Edje_Signal_Callback_Group *gp);
|
||||
|
||||
const char * _set_translated_string(Edje *ed, Edje_Real_Part *ep);
|
||||
void _edje_text_init(void);
|
||||
void _edje_text_part_on_add(Edje *ed, Edje_Real_Part *ep);
|
||||
void _edje_text_part_on_del(Edje *ed, Edje_Part *ep);
|
||||
|
|
|
@ -438,7 +438,15 @@ _edje_part_recalc_single_textblock(FLOAT_T sc,
|
|||
else
|
||||
{
|
||||
ep->typedata.text->text_source = NULL;
|
||||
text = edje_string_get(&chosen_desc->text.text);
|
||||
if (chosen_desc->text.domain)
|
||||
{
|
||||
if (!chosen_desc->text.text.translated)
|
||||
chosen_desc->text.text.translated = _set_translated_string(ed, ep);
|
||||
if (chosen_desc->text.text.translated)
|
||||
text = chosen_desc->text.text.translated;
|
||||
}
|
||||
if (!text)
|
||||
text = edje_string_get(&chosen_desc->text.text);
|
||||
if (ep->typedata.text->text) text = ep->typedata.text->text;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue