Implemented tr8n function for maxOptionsText

See #705
Finished tr8n functions. Fixes #705