localenegotiator

Set the locale negotiator for the current configurator to support localization of text.

Attributes

negotiator

The dotted Python name to a locale negotiator implementation. This attribute is required. If it begins with a dot (.), the name will be considered relative to the directory in which the ZCML file which contains this directive lives.

Example

1<localenegotiator
2  negotiator="some.package.module.my_locale_negotiator"
3  />

Alternatives

Use pyramid.config.Configurator.set_locale_negotiator() method instance during initial application setup.

See Also

See also Activating Translation.