Edit me on GitHub

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
2
3
<localenegotiator
  negotiator="some.package.module.my_locale_negotiator"
  />

Alternatives

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

See Also

See also Activating Translation.

Table Of Contents

Previous topic

include

Next topic

notfound