fix a bug in add_translation.py