automatic language detection, translate common words in template