mirror of
https://github.com/django/django.git
synced 2025-01-03 15:06:09 +00:00
Refs #32986 -- Moved TRANSLATOR_COMMENT_MARK to django.utils.translation.template.
This commit is contained in:
parent
e79ae5c317
commit
4fe3774c72
@ -78,7 +78,6 @@ VARIABLE_TAG_START = '{{'
|
|||||||
VARIABLE_TAG_END = '}}'
|
VARIABLE_TAG_END = '}}'
|
||||||
COMMENT_TAG_START = '{#'
|
COMMENT_TAG_START = '{#'
|
||||||
COMMENT_TAG_END = '#}'
|
COMMENT_TAG_END = '#}'
|
||||||
TRANSLATOR_COMMENT_MARK = 'Translators'
|
|
||||||
SINGLE_BRACE_START = '{'
|
SINGLE_BRACE_START = '{'
|
||||||
SINGLE_BRACE_END = '}'
|
SINGLE_BRACE_END = '}'
|
||||||
|
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
import warnings
|
import warnings
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
from django.template.base import TRANSLATOR_COMMENT_MARK, Lexer, TokenType
|
from django.template.base import Lexer, TokenType
|
||||||
from django.utils.regex_helper import _lazy_re_compile
|
from django.utils.regex_helper import _lazy_re_compile
|
||||||
|
|
||||||
from . import TranslatorCommentWarning, trim_whitespace
|
from . import TranslatorCommentWarning, trim_whitespace
|
||||||
|
|
||||||
|
TRANSLATOR_COMMENT_MARK = 'Translators'
|
||||||
|
|
||||||
dot_re = _lazy_re_compile(r'\S')
|
dot_re = _lazy_re_compile(r'\S')
|
||||||
|
|
||||||
|
|
||||||
|
@ -536,6 +536,9 @@ Miscellaneous
|
|||||||
and ``response.csrf_cookie_set`` to track whether the CSRF cookie should be
|
and ``response.csrf_cookie_set`` to track whether the CSRF cookie should be
|
||||||
sent. This is an undocumented, private API.
|
sent. This is an undocumented, private API.
|
||||||
|
|
||||||
|
* The undocumented ``TRANSLATOR_COMMENT_MARK`` constant is moved from
|
||||||
|
``django.template.base`` to ``django.utils.translation.template``.
|
||||||
|
|
||||||
.. _deprecated-features-4.0:
|
.. _deprecated-features-4.0:
|
||||||
|
|
||||||
Features deprecated in 4.0
|
Features deprecated in 4.0
|
||||||
|
Loading…
Reference in New Issue
Block a user