You will find all the Pootle-specific settings in this document.
If you have upgraded, you might want to compare your previous copy to the one distributed with the Pootle version for any new settings you might be interested in.
When starting Pootle with the pootle runner script, by default it will try to load custom settings from the ~/.pootle/pootle.conf file. These settings will override the defaults set by Pootle.
An alternative location for the settings file can be specified by setting the -c </path/to/settings.conf/> flag when executing the runner. You can also set the POOTLE_SETTINGS environment variable to specify the path to the custom configuration file. The environment variable will take precedence over the command-line flag.
If instead of an installation you deployed Pootle straight from the git repository, you can either set the POOTLE_SETTINGS environment variable or put a file under the pootle/settings/ directory. Note that the files in this directory are read in alphabetical order, and creating a 90-local.conf file is recommended (files ending in -local.conf will be ignored by git).
This is a list of Pootle-specific settings grouped by the file they’re contained and ordered alphabetically.
This file contains base configuration settings.
Backend and caching settings.
Default: 2500000
Time in seconds the Pootle’s statistics cache will last.
Site-specific settings.
Default: True
Controls whether users will be able to use the contact form. The address to receive messages is controlled by CONTACT_EMAIL.
Default: True
Controls whether user registrations are allowed or not. If set to False, administrators will still be able to create new user accounts.
Default: info@YOUR_DOMAIN.com
Address to receive messages sent through the contact form. This will only have effect if CAN_CONTACT is set to True.
Configuration settings for applications used by Pootle.
Default: {}
New in version 2.5.
Custom template context dictionary. The values will be available in the templates as {{ custom.<key> }}.
Default: False
By default Pootle sends only text emails. If your organization would prefer to send mixed HTML/TEXT emails, set this to True, and update activation_email.txt and activation_email.html in the templates/registration/ directory.
Note
Password reset emails will still be sent in plain text. This is a limitation of the underlying system.
Default: 70
New in version 2.5.
Maximum character length to consider when doing fuzzy matching. The default might not be enough for long texts. Please note this affects all fuzzy matching operations, so bear in mind this might affect performance.
Default: 75
New in version 2.5.
Minimum similarity to consider when doing fuzzy matching. Please note this affects all fuzzy matching operations, so bear in mind this might affect performance.
Default: 60
When building the terminology, the minimum number of terms that will be automatically extracted.
Default: (None, {})
New in version 2.5.
Two-tuple defining the markup filter to apply in certain textareas.
Examples:
MARKUP_FILTER = (None, {})
MARKUP_FILTER = ('markdown', {'safe_mode': 'escape'})
MARKUP_FILTER = ('restructuredtext', {'settings_overrides': {
'report_level': 'quiet',
}
})
Default: 600
When building the terminology, the maximum number of terms that will be automatically extracted.
Default: 5
The number of rows displayed in the top contributors table.
Default: True
Enable spam prevention through a captcha.
Optional LDAP configuration settings. To enable the LDAP authentication backend, you’ll need to append 'pootle.auth.ldap_backend.LdapBackend' to the list of AUTHENTICATION_BACKENDS.
Default: ''
Anonymous credentials: Distinguished Name.
Default: ''
Anonymous credentials: password.
Default: ''
Base DN to search
Default: {'dn': 'dn'}
A mapping of Pootle field names to LDAP fields. The key is Pootle’s name, the value should be your LDAP field name. If you don’t use the field or don’t want to automatically retrieve these fields from LDAP comment them out. The only required field is dn.
Default: ''
What are we filtering on? %s will be the username, for example 'sn=%s', or 'uid=%s'.
Default: ''
The LDAP server. Format: protocol://hostname:port
Translation environment configuration settings.
Default: http://amagama.locamotion.org/tmserver/
URL to an amaGama Translation Memory server. The default service should work fine, but if you have a custom server set it here.
This URL must point to the public API URL which returns JSON. Don’t forget the trailing slash.
Default: False
Set this to True if you want translation files to be updated immediatly.
Note
This negatively affects performance and should be avoided unless another application needs direct access to the files.
Warning
This feature is not maintained anymore, use it at your own risk.
Default: 0755
On POSIX systems, exported directories will be assigned this permission. Use 0755 for publically-readable directories or 0700 if you want only the Pootle user to be able to read them.
Default: 0644
On POSIX systems, exported files will be assigned this permission. Use 0644 for publically-readable files or 0600 if you want only the Pootle user to be able to read them.
Default: False
Live translation means that the project called Pootle is used to provide the localized versions of Pootle. Set this to True to enable live translation of Pootle’s UI. This is a good way to learn how to use Pootle, but it has high impact on performance.
Default: ['wikipedia'] (Wikipedia enabled)
Enables backends for web-based lookups.
Available options: wikipedia.
Default: [] (empty list)
This setting enables translation suggestions through several online services.
The elements for the list are two-element tuples containing the name of the service and an optional API key.
Available options are:
Default: 4
When the pool fills up, 1/PARSE_POOL_CULL_FREQUENCY number of files will be removed from the pool.
Default: 40
To avoid rereading and reparsing translation files from disk on every request, Pootle keeps a pool of already parsed files in memory.
Larger pools will offer better performance, but higher memory usage (per server process).
Default: working_path('po')
The directory where the translation files are kept.
Default: working_path('repos')
New in version 2.5.
The directory where version control clones/checkouts are kept.
Defaut: True
Deprecated since version 2.5: Alternate source languages are now on by default. This ensures that translators have access to as much useful information as possible when translating.
Display alternate source languages in the translation interface.