ensure restart always occurs after language change

SVN revision: 79947
This commit is contained in:
Mike Blumenkrantz 2012-11-30 20:12:46 +00:00
parent 21c5355c18
commit 43be5378b6
1 changed files with 5 additions and 1 deletions

View File

@ -941,7 +941,11 @@ _lc_check(void)
if (getenv("LC_MESSAGES")) strcat(buf2, "<br>LC_MESSAGES");
if (getenv("LC_ALL")) strcat(buf2, "<br>LC_ALL");
if (!buf2[0]) return;
if (!buf2[0])
{
_lc_check_del(NULL);
return;
}
snprintf(buf, sizeof(buf), _("You have some extra locale environment<br>"
"variables set that may interfere with<br>"