Ticket #29175: 29174.diff

File 29174.diff, 823 bytes (added by Claude Paroz, 7 years ago)

Tentative doc patch

  • docs/topics/i18n/translation.txt

    diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
    index 090e7cc414..7d9577f073 100644
    a b instead of positional interpolation (e.g., ``%s`` or ``%d``) whenever you  
    138138have more than a single parameter. If you used positional interpolation,
    139139translations wouldn't be able to reorder placeholder text.
    140140
     141As string extraction is done through the `xgettext` command, only syntaxes
     142supported by ``gettext`` are supported by Django. This means that as of version
     1430.19.8 of ``gettext``, Python f-strings_ and JavaScript template strings are not
     144yet supported.
     145
     146.. _f-strings: https://docs.python.org/3/reference/lexical_analysis.html#f-strings
     147
    141148.. _translator-comments:
    142149
    143150Comments for translators
Back to Top