p->language // default = DEFAULT_LANGUAGE
p->convert_units // default = 0
You can now change p->language and overwrite the text in defineMask()
if(p->language == SPANISH)
{
// overwrite text in spanish
}
Simply finish your mask as normal.
Then copy pvSetText() and pvPrintf() from generated_defineMask() and translate.