Permalink
Browse files

Added clarification of placeholder usage in gettext msgids.

  • Loading branch information...
1 parent a05ab5e commit e7109cc41007269560f78b985f10bf343e58ee3c @tacker tacker committed Jan 13, 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 e7109cc

Please sign in to comment.