Lines Matching refs:locale

43 #include <locale.h>
88 find_catalog_using_nlspath_locale(char *name, char *locale, char *nlspath,
101 * Extract language, territory, and codeset codes from a locale
106 if (locale) {
107 l = s = libc_strdup(locale);
148 s = replace_nls_option(s, name, path, locale, l, t, c,
171 find_catalog_from_system_default_location(char *pathname, char *locale,
176 len_locale = strlen(locale);
181 (void) memcpy(saved, locale, len_locale);
197 * the current locale name will not yield a catalog file, it will also try to
198 * obtain alternative locales names, i.e., obsoleted Solaris locale names and
199 * canonical locale name for the current locale name, if any, and then
200 * search again the catalog file with the alternative locale names.
208 char *locale;
220 * locale=language_territory.codeset
228 locale = setlocale(LC_MESSAGES, NULL);
230 locale = getenv("LANG");
237 p = find_catalog_using_nlspath_locale(name, locale, nlspath,
245 * We use /usr/lib/locale/<locale>/LC_MESSAGES/%N.
246 * If C locale, do not translate message.
248 if (locale == NULL) {
250 } else if (locale[0] == 'C' && locale[1] == '\0') {
269 p = find_catalog_from_system_default_location(pathname, locale, name,
275 * As the last resort, search again with obsoleted Solaris locale
276 * names and possibly also the canonical locale name for the current
277 * locale name as specified in PSARC/2009/594.
279 alternative_locales(locale, &canonical, &start, &end, 1);
322 replace_nls_option(char *s, char *name, char *path, char *locale,
336 * %l : The language element from the current locale.
346 if (locale) {
347 u = locale;