Django Book 翻译
菜单>:
TOC
返回
原文:
For this reason, you should use named-string interpolation (e.g., ``%(name)s`` ) instead of positional interpolation (e.g., ``%s`` or ``%d`` ). If you use positional interpolation, translations wont be able to reorder placeholder text.
翻译:
正因为如此,您应该使用字典型对象的格式化字符串(比如, ``%(name)s`` ),而不是针对位置的格式化字符串(比如, ``%s`` 或 ``%d`` )。如果您使用针对位置的格式化字符串,翻译机制将无法重新安排包含占位符的文本。
备注:
译者: