src/gedlib/locales.c
/*==========================================
 * llsetlocale -- wrapper for setlocale
 * Handle MS-Windows annoying lack of LC_MESSAGES
 * TODO: clean up other translat.c functions by calling this
 *========================================*/
- wrapper for setlocale
Handle MS-Windows annoying lack of LC_MESSAGES
TODO: clean up other translat.c functions by calling this
- wrapper for setlocale Handle MS - Windows annoying lack of LC_MESSAGES TODO : clean up other translat . c functions by calling this
char *
llsetlocale (int category, char * locale)
{
	char * rtn = "C";
#ifdef HAVE_SETLOCALE
	rtn = setlocale(category, locale);
	if (!rtn && locale)
		rtn = win32_setlocale(category, locale);
#endif 
#ifdef ENABLE_NLS
	if (rtn && is_msgcategory(category)) {
		setmsgs(locale);
	}
#endif 
	return rtn;
}
char * llsetlocale ( int category , char * locale ) { char * rtn = " " ; #ifdef HAVE_SETLOCALE rtn = setlocale ( category , locale ) ; if ( ! rtn && locale ) rtn = win32_setlocale ( category , locale ) ; #endif #ifdef ENABLE_NLS if ( rtn && is_msgcategory ( category ) ) { setmsgs ( locale ) ; } #endif return rtn ; }
llsetlocale -- wrapper for setlocale
 Handle MS-Windows annoying lack of LC_MESSAGES
 TODO: clean up other translat.c functions by calling this
llsetlocale -- wrapper for setlocale Handle MS - Windows annoying lack of LC_MESSAGES TODO : clean up other translat . c functions by calling this
/* HAVE_SETLOCALE */ /* ENABLE_NLS */