Translations:Help:Extension:Translate/File format support/12/en

Write the messages to a string variable that has the same format as the file. This is where the careful construction of the resulting messages file is supposed to happen.