Translation with hierarchy

alternative attempt at fixing #275