void print_formatting_conventions() { BFormattingConventions conventions; BLocale::Default()->GetFormattingConventions(&conventions); if (conventions.CountryCode() != NULL) { printf("%s_%s.UTF-8\n", conventions.LanguageCode(), conventions.CountryCode()); } else { printf("%s.UTF-8\n", conventions.LanguageCode()); } }
void print_time_conventions() { BFormattingConventions conventions; BLocale::Default()->GetFormattingConventions(&conventions); if (conventions.CountryCode() != NULL) { printf("%s_%s.UTF-8%s\n", conventions.LanguageCode(), conventions.CountryCode(), conventions.UseStringsFromPreferredLanguage() ? "@strings=messages" : ""); } else { printf("%s.UTF-8%s\n", conventions.LanguageCode(), conventions.UseStringsFromPreferredLanguage() ? "@strings=messages" : ""); } }