TranslationProject: Fixed a NameError in commit_file()