Add a gettext translation directory to the current configuration for use in localization of text.
1 2 3 4 5 | <!-- relative to configure.zcml file -->
<translationdir
dir="locale"
/>
|
1 2 3 4 5 | <!-- relative to another package -->
<translationdir
dir="another.package:locale"
/>
|
1 2 3 4 5 | <!-- an absolute directory name -->
<translationdir
dir="/usr/share/locale"
/>
|
Use pyramid.config.Configurator.add_translation_dirs() method instance during initial application setup.
See also activating_translation.