adjust the way the header is saved in teaching language files
to match 5.3.6 and older versions

This is another problem introduced in 480afa4

closes PR 14089