Bullet-proof translate function