How are ancient languages translated?

by Tom-tron

If an inscription was found in a temple, for example, and it was an ancient language, how do historians translate that inscription with any degree of certainty?

silverappleyard