|
NAMECutelyst4Qt6LangSelect - Configuration of the LangSelect Plugin for the Cutelyst Web Framework DESCRIPTIONThe LangSelect plugin can set the locale based on different definable input parameters like cookie or session values, URL query parameters and parts of the path or the domain. It will check if the language requested by the user agent is supported by the application. If the language is not supported, it will use a fallback language. As another fallback it will try to get the locale from the @a Accept-Language header. CONFIGURATIONThere are some options you can set in your application configuration file in the Cutelyst_LangSelect_Plugin section. cookie_expiration (integer or string value, default: 1 month) The expiration time of the cookie. Can be given as time
span where the following time units are understood:
If no time unit is specified, generally seconds are assumed. Examples for valid time span specifications: 2 h 2hours 48hr 1y 12month 55s500ms 300ms20s 5day cookie_domain (string value, default: empty) The domain to be used when setting the cookie. When
empty, the browser will set the current domain.
cookie_secure (boolean value, default: false) Whether to use a secure cookie. If this is set to
true, the cookie will be marked as secure, which means browsers may
ensure that the cookie is only sent with an HTTPS connection.
cookie_same_site (string value, default: lax) Defines the SameSite attribute of the cookie. Read the
MDN
article to learn more about SameSite cookies. Acceptable values are:
EXAMPLES[Cutelyst_LangSelect_Plugin]
cookie_secure=true
LOGGING CATEGORYcutelyst.plugin.langselect
|