Put text generation code into a localizable file