django-dbgettext / docs / settings.rst

Settings

The following settings can be overridden in your project's settings.py:

  • DBGETTEXT_PATH: path (absolute or relative to project root) where :doc:`dbgettext_export <dbgettext_export>` should store its output. Defaults to locale.
  • DBGETTEXT_ROOT: name of directory within DBGETTEXT_PATH (redundancy to provide protection from auto-purging upon export). Defaults to dbgettext.
  • DBGETTEXT_PROJECT_OPTIONS: dotted path to python module containing project-level registration code (e.g. my_project.dbgettext_options if you have a dbgettext_options.py file in your my_project directory).
  • DBGETTEXT_INLINE_HTML_TAGS: tuple of tag names allowed to appear inline within strings parsed with dbgettext.lexicons.html. Defaults to ('b','i','u','em','strong',).
  • DBGETTEXT_SPLIT_SENTENCES: split chunks of text into separate sentences for translation where appropriate. Defaults to True.
  • DBGETTEXT_SENTENCE_RE: compiled regular expression for splitting sentences. Defaults to re.compile(r'^(.*?\S[\!\?\.])(\s+)(\S+.*)$', re.DOTALL).
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.