Skip to content
This repository
Browse code

Added clarification of placeholder usage in gettext msgids.

  • Loading branch information...
commit e7109cc41007269560f78b985f10bf343e58ee3c 1 parent a05ab5e
301 Moved Permanently authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  doc/i18n.rst
2  doc/i18n.rst
Source Rendered
@@ -54,6 +54,8 @@ In a translatable string, you can embed variables:
54 54
         Hello {{ name }}!
55 55
     {% endtrans %}
56 56
 
  57
+During the gettext lookup these placeholders are converted. ``{{ name }}`` becomes ``%name%`` so the gettext ``msgid`` for this string would be ``Hello %name%!``.
  58
+
57 59
 .. note::
58 60
 
59 61
     ``{% trans "Hello {{ name }}!" %}`` is not a valid statement.

0 notes on commit e7109cc

Please sign in to comment.
Something went wrong with that request. Please try again.