From 0766f5e20023ad03f20abf76ff021aa96386b7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Athena=20Wolfsk=C3=A4mpf?= Date: Tue, 10 Dec 2024 10:51:35 +0100 Subject: [PATCH] Fixed #35993 -- Replaced outdated information on gettext f-string support. --- docs/topics/i18n/translation.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 04dad034cc..d5d949f357 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -130,7 +130,8 @@ 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. In particular, Python -:py:ref:`f-strings ` are not yet supported by ``xgettext``, and +:py:ref:`f-strings ` need ``xgettext`` 0.23+ and do not support +expressions in embedded variables, such as accessing a slice of a list. JavaScript template strings need ``gettext`` 0.21+. .. _translator-comments: