Permalink
Browse files

merged branch tacker/patch-1 (PR #44)

Commits
-------

e7109cc Added clarification of placeholder usage in gettext msgids.

Discussion
----------

Added clarification of placeholder usage in gettext msgids.
  • Loading branch information...
2 parents a05ab5e + e7109cc commit 1dfff8e793f50f651c4f74f796c2c68a4aee3147 @fabpot fabpot committed Jan 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 doc/i18n.rst
View
@@ -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.

0 comments on commit 1dfff8e

Please sign in to comment.