CmsLanguageDetector View code

An abstract class that is used to determine a suitable language for display This may be used by CMSMS on frontend requests to detect a suitable language.

modules may supply a language detector to read from preferences etc.

see
author

Robert Campbell

package

CMS

license

GPL

since 1.11

Methods

find_language() : string

Abstract function to determine a language.

abstract

This method may use cookies, session data, user preferences, values from the url or from the browser to determine a language. The returned language must exist within the CMSMS Install.

Response

string

language name