added check for correctness of provided translation