Lines Matching defs:locale

71 #include <locale.h>
693 _scf_sanitize_locale(char *locale)
695 for (; *locale != '\0'; locale++)
696 if (!isalnum(*locale) && *locale != '_')
697 *locale = '_';
705 * Name isn't short enough to add the locale to.
708 _add_locale_to_name(const char *name, const char *locale)
714 if (locale == NULL)
715 locale = setlocale(LC_MESSAGES, NULL);
716 loc = strdup(locale);
2932 * name and locale are too long to make a property name
2943 const char *locale)
2948 str = _add_locale_to_name(name, locale);
2980 * locale is too long to make a valid property name
2990 scf_tmpl_pg_common_name(const scf_pg_tmpl_t *t, const char *locale, char **out)
2994 SCF_PROPERTY_TM_COMMON_NAME_PREFIX, locale)) == NULL)
3010 * locale is too long to make a valid property name
3020 scf_tmpl_pg_description(const scf_pg_tmpl_t *t, const char *locale, char **out)
3024 SCF_PROPERTY_TM_DESCRIPTION_PREFIX, locale)) == NULL)
3297 * locale is too long to make a property name
3303 scf_tmpl_prop_common_name(const scf_prop_tmpl_t *t, const char *locale,
3308 SCF_PROPERTY_TM_COMMON_NAME_PREFIX, locale)) == NULL)
3327 * locale is too long to make a property name
3333 scf_tmpl_prop_description(const scf_prop_tmpl_t *t, const char *locale,
3338 SCF_PROPERTY_TM_DESCRIPTION_PREFIX, locale)) == NULL)
3357 * locale is too long to make a property name
3363 scf_tmpl_prop_units(const scf_prop_tmpl_t *t, const char *locale, char **out)
3367 SCF_PROPERTY_TM_UNITS_PREFIX, locale)) == NULL)
4234 * name and locale are too long to make a property name
4245 scf_tmpl_value_common_name(const scf_prop_tmpl_t *t, const char *locale,
4254 *out = _read_localized_astring_from_pg(t->prt_pg, value_name, locale);
4280 * name and locale are too long to make a property name
4291 scf_tmpl_value_description(const scf_prop_tmpl_t *t, const char *locale,
4301 *out = _read_localized_astring_from_pg(t->prt_pg, value_name, locale);