mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
b84a170be1
commit
4abe6be526
@ -195,7 +195,7 @@ which might vary depending on the used language.
|
|||||||
|
|
||||||
:::php
|
:::php
|
||||||
// in SS-template ($Name must be available in the current template-scope)
|
// 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
|
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
|
for your substitutions. In contrast to `sprintf()`, our API has a more translator friendly
|
||||||
|
Loading…
Reference in New Issue
Block a user