Kaydet (Commit) 8b4798c8 authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) Carlton Gibson

[1.11.x] Fixed #29174, #29175 -- Doc'd that f-strings and JavaScript template…

[1.11.x] Fixed #29174, #29175 -- Doc'd that f-strings and JavaScript template strings can't be translated.

Backport of c3437f73 from master
üst 800778f7
......@@ -137,6 +137,13 @@ instead of positional interpolation (e.g., ``%s`` or ``%d``) whenever you
have more than a single parameter. If you used positional interpolation,
translations wouldn't be able to reorder placeholder text.
Since string extraction is done by the ``xgettext`` command, only syntaxes
supported by ``gettext`` are supported by Django. Python f-strings_ and
`JavaScript template strings`_ are not yet supported by ``xgettext``.
.. _f-strings: https://docs.python.org/3/reference/lexical_analysis.html#f-strings
.. _JavaScript template strings: https://savannah.gnu.org/bugs/?50920
.. _translator-comments:
Comments for translators
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment