| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to call language label text? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to call language label text?
Hi,
I added a new label (Translations > Edit labels > Add new label). How would I call the new label text on front pages? Would you please share the code? For Xcart 4, it used to be something like: Quote:
What code should I use for Xcart 5? Thanks for any help.
__________________
X-Cart 5.3.3.4 Multivendor X-Cart 5.3.3.4 Business (Testing) |
|||||||
#2
|
|||||||||
|
|||||||||
Re: How to call language label text?
In Twig templates you should use the t() function:
http://devs.x-cart.com/en/basics/twig_guide.html#t In PHP classes you can use the static::t() method. For an example, see this article: http://devs.x-cart.com/en/getting_started/step_4_-_working_with_settings/creating_custom_setting_class.html
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|