Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
merged branch tacker/patch-1 (PR #44)
Browse files Browse the repository at this point in the history
Commits
-------

e7109cc Added clarification of placeholder usage in gettext msgids.

Discussion
----------

Added clarification of placeholder usage in gettext msgids.
  • Loading branch information
fabpot committed Jan 22, 2012
2 parents a05ab5e + e7109cc commit 1dfff8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/i18n.rst
Expand Up @@ -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.
Expand Down

0 comments on commit 1dfff8e

Please sign in to comment.