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:
Tom Hacohen 2014-08-26 12:07:53 +01:00
parent a2be4ab2a4
commit e6df9b02d6
1 changed files with 3 additions and 11 deletions

View File

@ -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)
{