Lines Matching refs:locale
44 #include <locale.h>
92 char *nlspath, *lang, *territory, *codeset, *locale;
97 * locale=language_territory.codeset
106 locale = current_locale(loc, LC_MESSAGES);
108 locale = getenv("LANG");
117 * extract lang, territory and codeset from locale name
119 if (locale) {
120 lang = s = libc_strdup(locale);
138 } /* if (locale) */
158 s = replace_nls_option(s, name, pathname, locale,
178 * We use /usr/lib/locale/<locale>/LC_MESSAGES/%N.
179 * If C locale, do not translate message.
181 if (locale == NULL) {
183 } else if (locale[0] == 'C' && locale[1] == '\0') {
200 s = locale;
219 replace_nls_option(char *s, char *name, char *pathname, char *locale,
230 * %l : The language element from the current locale.
240 if (locale) {
241 u = locale;