Skip to content

Commit

Permalink
[3.0.x] Fixed #31341 -- Doc'd minimal gettext version with ES6 templa…
Browse files Browse the repository at this point in the history
…te strings support.

Backport of 2f53d32 from master
  • Loading branch information
claudep authored and felixxm committed Mar 5, 2020
1 parent 8e30512 commit e3069f6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/topics/i18n/translation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,9 @@ 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 :py:ref:`f-strings
<f-strings>` and `JavaScript template strings`_ are not yet supported by
``xgettext``.

.. _JavaScript template strings: https://savannah.gnu.org/bugs/?50920
supported by ``gettext`` are supported by Django. In particular, Python
:py:ref:`f-strings <f-strings>` are not yet supported by ``xgettext``, and
JavaScript template strings need ``gettext`` 0.21+.

.. _translator-comments:

Expand Down

0 comments on commit e3069f6

Please sign in to comment.