Django Book 翻译
菜单>:
TOC
返回
原文:
Its not possible to use template variables in ``{% trans %}`` only constant strings, in single or double quotes, are allowed. If your translations require variables (placeholders), use ``{% blocktrans %}`` , for example:
翻译:
在 ``{% trans %}`` 中不允许使用模板中的变量,只能使用单引号或双引号中的字符串。如果翻译时需要用到变量(占位符),可以使用 ``{% blocktrans %}`` ,比如:
备注:
译者: