elementary/config - commented out the translation availabilty check.
authorChunEon Park <hermet@hermet.pe.kr>
Wed, 18 Dec 2013 12:55:12 +0000 (21:55 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Wed, 18 Dec 2013 12:56:21 +0000 (21:56 +0900)
It's insane to me app sholud have only "messages" text domain?!

src/lib/elm_config.c

index e77b52f..5fd31f5 100644 (file)
@@ -2415,15 +2415,21 @@ _translation_init()
    const char *trans_comment = gettext("");
    const char *msg_locale = setlocale(LC_MESSAGES, NULL);
 
+   /* How does it decide translation with current domain??
+      Application could use their own text domain.
+      This is insane to me. */
+
    /* Same concept as what glib does:
     * We shouldn't translate if there are no translations for the
     * application in the current locale + domain. (Unless locale is
     * 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)
      {