adjust translation-related code