API Adding chaining to i18nTextCollector::write()

Allowing chaining off of the i18nTextCollector::write() function so it's
inline with DataObject::write()
Merge pull request #2787 from dhensby/i18n-chaining

API Adding chaining to i18nTextCollector::write()