src/gedlib/editmap.c
/*==============================================
 * load_new_tt -- Load translation table from file
 *  also update permanent record in database
 *  filepath:  [IN]  file whence to get new table
 *  ttnum:     [IN]  which translation table to load
 * Created: 2001/12/26, Perry Rapp
 *============================================*/
- Load translation table from file
also update permanent record in database
filepath:  [IN]  file whence to get new table
ttnum:     [IN]  which translation table to load
Created: 2001/12/26, Perry Rapp
- Load translation table from file also update permanent record in database filepath : [ IN ] file whence to get new table ttnum : [ IN ] which translation table to load Created : 2001 / 12 / 26 Perry Rapp
BOOLEAN
load_new_tt (CNSTRING filepath, INT trnum)
{
	TRANSLFNC transfnc = NULL; 
	TRANTABLE tt=0;
	CNSTRING mapname = transl_get_map_name(trnum);
	ZSTR zerr=zs_new();
	if (!init_map_from_file(filepath, mapname, &tt, zerr)) {
		llwprintf("%s", zs_str(zerr));
		zs_free(&zerr);
		if (tt)
			remove_trantable(tt);
		return FALSE;
	}
	zs_free(&zerr);
	transl_set_legacy_tt(trnum, tt);
	store_text_file_to_db(map_keys[trnum], filepath, transfnc);
	return TRUE;
}
BOOLEAN load_new_tt ( CNSTRING filepath , INT trnum ) { TRANSLFNC transfnc = NULL ; TRANTABLE tt = 0 ; CNSTRING mapname = transl_get_map_name ( trnum ) ; ZSTR zerr = zs_new ( ) ; if ( ! init_map_from_file ( filepath , mapname , & tt , zerr ) ) { llwprintf ( " " , zs_str ( zerr ) ) ; zs_free ( & zerr ) ; if ( tt ) remove_trantable ( tt ) ; return FALSE ; } zs_free ( & zerr ) ; transl_set_legacy_tt ( trnum , tt ) ; store_text_file_to_db ( map_keys [ trnum ] , filepath , transfnc ) ; return TRUE ; }
load_new_tt -- Load translation table from file
  also update permanent record in database
  filepath:  [IN]  file whence to get new table
  ttnum:     [IN]  which translation table to load
 Created: 2001/12/26, Perry Rapp
load_new_tt -- Load translation table from file also update permanent record in database filepath : [ IN ] file whence to get new table ttnum : [ IN ] which translation table to load Created : 2001 / 12 / 26 Perry Rapp
/* don't translate translation tables ! */ /* change from old one to new one */ /* store new one in permanent record in database */