add translate message function which has one argument