Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

html in language files

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-30-2016, 01:43 AM
 
fusiongraphicdesign fusiongraphicdesign is offline
 

Newbie
  
Join Date: May 2016
Posts: 2
 

Default html in language files

hi, if i try to put <br> or <br /> into a language file, it is just printing <br> onto the page, instead of putting in a line break which i want it to - i am using xcart5 ?
__________________
fusiongraphicdesign
Reply With Quote
  #2  
Old 05-30-2016, 08:30 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: html in language files

Please could you clarify what language file you mean?

Also, please check this forum thread:
https://forum.x-cart.com/showthread.php?t=73694
__________________
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
  #3  
Old 05-30-2016, 10:35 PM
 
fusiongraphicdesign fusiongraphicdesign is offline
 

Newbie
  
Join Date: May 2016
Posts: 2
 

Default Re: html in language files

i've worked it out, i changed the template from:

{t(#Store Location#)}

to

{t(#Store Location#):h}

then re-deloyed the store and now the html is rendered as html and not just printed literally to the screen.
__________________
fusiongraphicdesign
Reply With Quote
  #4  
Old 05-31-2016, 08:57 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: html in language files

Just remember that you should wrap the changes into a custom module.

If you edit core files or files of other modules, you will loose the modifications on the next upgrade.
__________________
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
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:08 AM.

   

 
X-Cart forums © 2001-2020