forked from enlightenment/efl
Revert "elementary/config - commented out the translation availabilty check."
This completely breaks automatic UI mirroring. The code there was correct. Please, before removing code, contact the original author and make sure you don't break things down. Especially if your reason for removing is "this doesn't make sense to me" instead of "this breaks X Y." This reverts commit 24983fed239a3b37c05cc3c65ed9c56953a7176b.
This commit is contained in:
parent
a2be4ab2a4
commit
e6df9b02d6
|
@ -3200,15 +3200,9 @@ static void
|
|||
_translation_init()
|
||||
{
|
||||
#ifdef ENABLE_NLS
|
||||
|
||||
/* How does it decide translation with current domain??
|
||||
Application could use their own text domain.
|
||||
This is insane to me.
|
||||
|
||||
const char *cur_dom = textdomain(NULL);
|
||||
const char *trans_comment = gettext("");
|
||||
const char *msg_locale = setlocale(LC_MESSAGES, NULL);
|
||||
*/
|
||||
|
||||
/* Same concept as what glib does:
|
||||
* We shouldn't translate if there are no translations for the
|
||||
|
@ -3216,11 +3210,9 @@ _translation_init()
|
|||
* en_/C where translating only parts of the interface make some
|
||||
* sense).
|
||||
*/
|
||||
/*
|
||||
_elm_config->translate = !(strcmp (cur_dom, "messages") &&
|
||||
!*trans_comment && strncmp (msg_locale, "en_", 3) &&
|
||||
strcmp (msg_locale, "C"));
|
||||
*/
|
||||
_elm_config->translate = !(strcmp (cur_dom, "messages") &&
|
||||
!*trans_comment && strncmp (msg_locale, "en_", 3) &&
|
||||
strcmp (msg_locale, "C"));
|
||||
/* Get RTL orientation from system */
|
||||
if (_elm_config->translate)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue