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

Creating a new language variable

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-22-2008, 06:22 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default Creating a new language variable

Hi,

I've created a new button and now i want to add a label to it. i followed the trail of other buttons and i just arrive at exotically named php files which, frankly, frighten me. i thought i'd be able to create a new lng.lbl_my_new_button file and point my button at it.

Can anybpdy help?

Thanks.
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #2  
Old 11-23-2008, 08:09 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Creating a new language variable

In admin, click "languages" then in the drop down box choose your language and wait for the page to refresh. You will see a listing of all of your language variables. Change the dropdown next to "Select topic:" to "labels" and then enter "lbl_my_new_button" in the "apply filter" box (just to make sure it doesn't already exist).

At the bottom of the page there is a section where you can define your language variable. It is marked "Add new entry". Put bl_my_new_button in the "Variable:" box and enter what you want displayed in the "Value:" box (note; the Select topic: should be set to labels) Click "add" when you are finished.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 11-23-2008, 08:51 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default Re: Creating a new language variable

That worked great, thanks!
__________________
Linux
X-Cart 4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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:20 PM.

   

 
X-Cart forums © 2001-2020