diff options
author | albert <albert> | 2009-11-22 08:14:03 (GMT) |
---|---|---|
committer | albert <albert> | 2009-11-22 08:14:03 (GMT) |
commit | e8d98aa0fe0137f5e87cfa1019e901d09ba0b782 (patch) | |
tree | 482b3da6ce60ef486dfdc3465b6de57beb0fde02 /src/i18n.c | |
parent | ee6c717ca33f7e2bb413156b7f5d315f5676fb21 (diff) |
code was moved to a function; should remove original
Diffstat (limited to 'src/i18n.c')
-rw-r--r-- | src/i18n.c | 38 |
1 files changed, 1 insertions, 37 deletions
@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - $Id: i18n.c,v 1.66 2009/11/22 08:07:41 albert Exp $ + $Id: i18n.c,v 1.67 2009/11/22 08:14:03 albert Exp $ June 14, 2002 - November 21, 2009 */ @@ -636,42 +636,6 @@ static int set_current_language(void) loc = getenv("LANG"); #endif - //debug(loc); - - if (loc) - { - char *baseloc = strdup(loc); - - char *dot = strchr(baseloc, '.'); - if(dot) - *dot = '\0'; - - /* Which, if any, of the locales is it? */ - - int found = 0; - - for (i = 0; i < NUM_LANGS && found == 0; i++) - { - // Case-insensitive (both "pt_BR" and "pt_br" work, etc.) - if (strlen(baseloc) == strlen(lang_prefixes[i]) && - strncasecmp(baseloc, lang_prefixes[i], strlen(lang_prefixes[i])) == 0) - { - langint = i; - found = 1; - } - } - - for (i = 0; i < NUM_LANGS && found == 0; i++) - { - // Case-insensitive (both "pt_BR" and "pt_br" work, etc.) - if (strncasecmp(loc, lang_prefixes[i], strlen(lang_prefixes[i])) == 0) - { - langint = i; - found = 1; - } - } - } - set_langint_from_locale_string(loc); lang_prefix = lang_prefixes[langint]; |