translate some directives.