Fixed a regexp of maxTranslations.
might change the method of generating the XML.