diff --git a/doc/i18n.rst b/doc/i18n.rst index 865dce3e..9b0227bf 100644 --- a/doc/i18n.rst +++ b/doc/i18n.rst @@ -54,6 +54,8 @@ In a translatable string, you can embed variables: Hello {{ name }}! {% endtrans %} +During the gettext lookup these placeholders are converted. ``{{ name }}`` becomes ``%name%`` so the gettext ``msgid`` for this string would be ``Hello %name%!``. + .. note:: ``{% trans "Hello {{ name }}!" %}`` is not a valid statement.