E conf_intl: Update checking for bad LC_* check.
authorTom Hacohen <tom@stosb.com>
Sun, 21 Aug 2011 08:29:15 +0000 (08:29 +0000)
committerTom Hacohen <tom@stosb.com>
Sun, 21 Aug 2011 08:29:15 +0000 (08:29 +0000)
It now also checks for LC_ALL.
Also, I changed the order to be like the output of "locale".

SVN revision: 62651

src/modules/conf_intl/e_int_config_intl.c

index 9f3db5d..89fc64b 100644 (file)
@@ -863,12 +863,13 @@ _lc_check(void)
    
    buf[0] = 0;
    
-   if (getenv("LC_COLLATE"))  strcat(buf, "LC_COLLATE<br>");
    if (getenv("LC_CTYPE"))    strcat(buf, "LC_CTYPE<br>");
-   if (getenv("LC_MESSAGES")) strcat(buf, "LC_MESSAGES<br>");
-   if (getenv("LC_MONETARY")) strcat(buf, "LC_MONETARY<br>");
    if (getenv("LC_NUMERIC"))  strcat(buf, "LC_NUMERIC<br>");
    if (getenv("LC_TIME"))     strcat(buf, "LC_TIME<br>");
+   if (getenv("LC_COLLATE"))  strcat(buf, "LC_COLLATE<br>");
+   if (getenv("LC_MONETARY")) strcat(buf, "LC_MONETARY<br>");
+   if (getenv("LC_MESSAGES")) strcat(buf, "LC_MESSAGES<br>");
+   if (getenv("LC_ALL"))      strcat(buf, "LC_ALL<br>");
    
    if (buf[0] != 0)
       e_util_dialog_show(_("Possible Locale problems"),