/* Get the default locale code */
printf("| Default locale code | %s\n", default_locale);
+ /* Get the display country name of the selected locale. */
+ i18n_uchar country[BUF_SIZE];
+
+ i18n_ulocale_get_display_country(default_locale, default_locale, country, BUF_SIZE);
+ char country_ch[BUF_SIZE +1];
+ i18n_ustring_copy_au_n(country_ch, country, BUF_SIZE);
+ printf("| Country display name | %s\n", country_ch);
+
/* Get the display name of the selected locale. */
i18n_uchar name[BUF_SIZE];
int name_len;
- int ret =
- i18n_ulocale_get_display_name(default_locale, default_locale, name, BUF_SIZE, &name_len);
+ int ret = i18n_ulocale_get_display_name(default_locale, default_locale, name, BUF_SIZE, &name_len);
CHECK_ERROR("i18n_ulocale_get_display_name", ret);
char name_ch[BUF_SIZE +1];
i18n_ustring_copy_au_n(name_ch, name, BUF_SIZE);
printf("| Language display name | %s\n", name_ch);
-
/* Get the language related to the selected locale. */
i18n_ulocale_get_display_language(default_locale, default_locale, lang, BUF_SIZE);