• Home
  • Raw
  • Download

Lines Matching full:language

31 static int  test_string(cups_lang_t *language, const char *msgid);
35 * 'main()' - Load the specified language and show the strings for yes and no.
44 cups_lang_t *language; /* Message catalog */ in main() local
60 language = cupsLangDefault(); in main()
65 language = cupsLangGet(argv[1]); in main()
74 if (language != language2) in main()
78 puts("**** ERROR: Language cache did not work! ****"); in main()
82 printf("Language = \"%s\"\n", language->language); in main()
83 printf("Encoding = \"%s\"\n", _cupsEncodingName(language->encoding)); in main()
85 errors += test_string(language, "No"); in main()
86 errors += test_string(language, "Yes"); in main()
88 if (language != language2) in main()
92 printf("Language = \"%s\"\n", language2->language); in main()
161 * Test all possible language IDs for compatibility with _cupsAppleLocale... in main()
168 language_id; /* Current language ID */ in main()
170 language_str[256], /* Language ID C string */ in main()
178 temp_id; /* Temporary language ID */ in main()
206 printf("%d %s: FAIL (unable to get language ID string)\n", (int)j + 1, locale_str); in main()
213 …printf("%d %s(%s): FAIL (unable to convert language ID string to POSIX locale)\n", (int)j + 1, loc… in main()
223 if ((language = cupsLangGet(buffer)) == NULL) in main()
230 if (strncasecmp(language->language, buffer, buflen)) in main()
232 …X locale \"%s\", got \"%s\")\n", (int)j + 1, locale_str, language_str, buffer, language->language); in main()
260 test_string(cups_lang_t *language, /* I - Language */ in test_string() argument
273 msgstr = _cupsLangString(language, msgid); in test_string()
274 if (strcmp(language->language, "C") && msgid == msgstr) in test_string()
279 else if (!strcmp(language->language, "C") && msgid != msgstr) in test_string()