version 1.1.1.2, 2013/10/14 07:56:34
|
version 1.1.1.3, 2014/06/15 16:12:54
|
Line 38
|
Line 38
|
# include "compat/stdbool.h" |
# include "compat/stdbool.h" |
#endif /* HAVE_STDBOOL_H */ |
#endif /* HAVE_STDBOOL_H */ |
|
|
|
#define DEFAULT_TEXT_DOMAIN "sudoers" |
|
#include "gettext.h" /* must be included before missing.h */ |
|
|
#include "missing.h" |
#include "missing.h" |
#include "fatal.h" |
#include "fatal.h" |
#include "alloc.h" |
#include "alloc.h" |
#include "logging.h" |
#include "logging.h" |
#include "gettext.h" |
|
|
|
static int current_locale = SUDOERS_LOCALE_USER; |
static int current_locale = SUDOERS_LOCALE_USER; |
static char *user_locale; |
static char *user_locale; |
Line 108 sudoers_setlocale(int newlocale, int *prevlocale)
|
Line 110 sudoers_setlocale(int newlocale, int *prevlocale)
|
return res ? true : false; |
return res ? true : false; |
} |
} |
|
|
static int warning_locale; | #ifdef HAVE_LIBINTL_H |
| char * |
void | warning_gettext(const char *msgid) |
warning_set_locale(void) | |
{ |
{ |
sudoers_setlocale(SUDOERS_LOCALE_USER, &warning_locale); | int warning_locale; |
} | char *msg; |
|
|
void | sudoers_setlocale(SUDOERS_LOCALE_USER, &warning_locale); |
warning_restore_locale(void) | msg = gettext(msgid); |
{ | |
sudoers_setlocale(warning_locale, NULL); |
sudoers_setlocale(warning_locale, NULL); |
|
|
|
return msg; |
} |
} |
|
#endif /* HAVE_LIBINTL_H */ |