View Single Post
  #2  
Old 12-11-2016, 09:57 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
Reply With Quote