*** language.c.old Sun Jul 31 18:03:50 1994 --- language.c Thu May 4 17:31:24 1995 *************** *** 312,317 **** --- 312,320 ---- char indexfile[MAX_PATH]; char subtitles_file[MAX_PATH]; FILE *indexf; + #ifdef PGP_SYSTEM_DIR + int use_system_wide_lang = 0; + #endif if (strcmp(language, "en") == 0) { subtitles_available = -1; *************** *** 320,327 **** buildfilename(subtitles_file, SUBTITLES_FILE); langf = fopen(subtitles_file, FOPRTXT); if (langf == NULL) { ! subtitles_available = -1; ! return; } init_crc(); strbuf = (char *) malloc(STRBUFSIZE); --- 323,339 ---- buildfilename(subtitles_file, SUBTITLES_FILE); langf = fopen(subtitles_file, FOPRTXT); if (langf == NULL) { ! #ifdef PGP_SYSTEM_DIR ! strcpy(subtitles_file, PGP_SYSTEM_DIR); ! strcat(subtitles_file, SUBTITLES_FILE); ! langf = fopen(subtitles_file, FOPRTXT); ! use_system_wide_lang = 1; ! if (langf == NULL) ! #endif ! { ! subtitles_available = -1; ! return; ! } } init_crc(); strbuf = (char *) malloc(STRBUFSIZE); *************** *** 331,336 **** --- 343,354 ---- subtitles_available = -1; return; } + #ifdef PGP_SYSTEM_DIR + if (use_system_wide_lang) { + strcpy(indexfile, PGP_SYSTEM_DIR); + strcat(indexfile, LANG_INDEXFILE); + } else + #endif buildfilename(indexfile, LANG_INDEXFILE); indexf = fopen(indexfile, FOPRBIN); if (indexf != NULL) {