The documentation about internationalization in templates in topics/i18n.md did not match how the parser works. Related to ticket #7706.

This commit is contained in:
jakr 2012-07-29 19:57:57 +02:00
parent b84a170be1
commit 4abe6be526

View File

@ -195,7 +195,7 @@ which might vary depending on the used language.
:::php
// in SS-template ($Name must be available in the current template-scope)
<%t MYPROJECT.INJECTIONS "Hello {name} {greeting}" name="$Name" greeting="good to see you" %>
<%t MYPROJECT.INJECTIONS "Hello {name} {greeting}" name=$Name greeting="good to see you" %>
Note that you can still use `sprintf()` wrapped around a `_t()` call
for your substitutions. In contrast to `sprintf()`, our API has a more translator friendly