Improvement validation funcition plugin-translation