You need to include all of the code, not just the top portion. Since the top portion is calling the TranslateName udf, it must be included. Or you will get an error message.