Thread
:
How to call language label text?
View Single Post
#
2
12-11-2016, 09:57 PM
qualiteam
X-Guru
Join Date: Dec 2010
Posts: 6,373
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
qualiteam
View Public Profile
Send a private message to qualiteam
Find all posts by qualiteam