added optional $key parameter to AbstractController#getLanguage