امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I'm trying to display a phrase via javascript (that takes a parameter), but I don't see the substituted value:
my_phrase has the following in my phrases.xml file:
Unfortunately, I only see my_phrase rendered on the page.
If I add this to my template, then everything works, but is it necessary to redefine the phrase in the template as well?
HTML:
Read more
my_phrase has the following in my phrases.xml file:
'{myParam} man'XF.phrase("my_phrase",{"{myParam}":'weeee'})Unfortunately, I only see my_phrase rendered on the page.
If I add this to my template, then everything works, but is it necessary to redefine the phrase in the template as well?
HTML:
کد:
<xf:js>
XF.extendObject(XF.phrases,
{
myParam...
Read more
