Hello again!
For accessing the mapstore_language in the request you have to write MAPSTORE_LANGUAGE in UPPERCASE letters: ${request.ENV.
MAPSTORE_LANGUAGE }. With lowercase letters like in the request you get the error message above.
As I plan to have English (default) and German as second language I have now added the following part to my content.ftl-Files:
<#assign mapstore_language = "en">
<#attempt>
<#if request.ENV.MAPSTORE_LANGUAGE == "de" >
<#assign mapstore_language = "de">
</#if>
<#recover>
</#attempt>
So only if the mapstore_language parameter is available in the request and equals de I use the german translations
Perhaps that hint helps someone in the future ;-)
All the best,
Michael