1 /* SPDX-License-Identifier: LGPL-2.1+ */
10 typedef enum LocaleVariable {
11 /* We don't list LC_ALL here on purpose. People should be
12 * using LANG instead. */
25 VARIABLE_LC_TELEPHONE,
26 VARIABLE_LC_MEASUREMENT,
27 VARIABLE_LC_IDENTIFICATION,
29 _VARIABLE_LC_INVALID = -1
32 int get_locales(char ***l);
33 bool locale_is_valid(const char *name);
35 #define _(String) gettext(String)
36 #define N_(String) String
37 void init_gettext(void);
39 bool is_locale_utf8(void);
54 const char *special_glyph(SpecialGlyph code) _const_;
56 const char* locale_variable_to_string(LocaleVariable i) _const_;
57 LocaleVariable locale_variable_from_string(const char *s) _pure_;
59 int get_keymaps(char ***l);
60 bool keymap_is_valid(const char *name);
62 static inline void freelocalep(locale_t *p) {
63 if (*p == (locale_t) 0)