module documentation

Undocumented

Constant TRANSLATOR​_COMMENT​_MARK Undocumented
Variable block​_re Undocumented
Variable constant​_re Undocumented
Variable context​_re Undocumented
Variable dot​_re Undocumented
Variable endblock​_re Undocumented
Variable inline​_re Undocumented
Variable plural​_re Undocumented
Function blankout Change every non-whitespace character to the given char. Used in the templatize function.
Function templatize Turn a Django template into something that is understood by xgettext. It does so by translating the Django translation tags into standard gettext function invocations.
TRANSLATOR_COMMENT_MARK: str =

Undocumented

Value
'Translators'
block_re =

Undocumented

constant_re =

Undocumented

context_re =

Undocumented

dot_re =

Undocumented

endblock_re =

Undocumented

inline_re =

Undocumented

plural_re =

Undocumented

def blankout(src, char):
Change every non-whitespace character to the given char. Used in the templatize function.
def templatize(src, origin=None):
Turn a Django template into something that is understood by xgettext. It does so by translating the Django translation tags into standard gettext function invocations.