ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,738
- Points
- 823
Reputation:
If a phrase uses the same variable multiple times, only the first occurance gets replaced.
Lets' a asume we have a phrase
Using
Code:
in templates works as expected, eg.
But using
Code:
Read more
Continue reading...
Lets' a asume we have a phrase
hello_x_how_do_you_feel_today_x
with content Hello {userName}. How do you feel today {userName}?
Using
Code:
{{ phrase('hello_x_how_do_you_feel_today_x', {'userName': 'Kirby'}) }}
in templates works as expected, eg.
Hello Kirby. How do you feel today Kirby?
But using
Code:
XF.phrase('hello_x_how_do_you_feel_today_x', {'{userName}'...
Read more
Continue reading...