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

add language variable in a 2nd language

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-03-2009, 12:53 PM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default add language variable in a 2nd language

I have installed a template from a commercial vendor and I want to change some links on the footer section to their translated versions of the 2nd language (Greek) of my bi-lingual site. These links are "Home", "Shopping Cart", "Contact Us" (the rest of the menu links are translated ok in both languages). These links remain in English even though I switch the language of the site to Greek. Let's take one of those links, ie "Contact Us". As I searched through the language variables with selected topic "Labels" and Filter "Contact Us" I got one result which referred to the 'lbl_contact_us' language variable name. So, I added through the 'Edit Languages' admin command a new label, having selected Greek language for editing and for the interface, named 'lbl_contact_us', with the Greek translation. Nothing happened though... The same English 'Contact Us' appears in the Greek page of the site. Does this variable relate to another label irrelevant of the one I thought ? How could I go about it ?
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
  #2  
Old 03-03-2009, 08:50 PM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Re: add language variable in a 2nd language

Your method is correct i.e. search english for the text you want to change and get the language variable name... then open alternative language and find that language variable (and edit / translate the text to your new language and hit the update button) and if it does not exist them add it.
Just one thing - they may not have used lbl... it might be txt_ etc. - so search using "all" (i.e. do not just search labels).

Otherwise.... it might be that the person who did the code for the commercial template - didn't use language variables for the footer text (i.e. hard coded them as text) or that they forget to put lng.lbl_contact_us i.e. forgot to use lng at the front of the variable).

I would check the code for the footer to make sure they have correctly used language variables (e.g. use webmaster mode to identify the file for the footer - open it and check the code... see if it is hard coded... if it is - then change the hard coded text to use language variables.

Cheers - Asiaplay
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
Reply With Quote
  #3  
Old 03-05-2009, 10:06 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default Re: add language variable in a 2nd language

Actually, the above mentioned links are speed bar links. I had missed that chapter in the manual. So, I just followed the instructions for updating their titles and solved the problem. Thanks
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
  #4  
Old 03-05-2009, 03:41 PM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Re: add language variable in a 2nd language

ok - I couldn't tell that from your post - good to hear you have solved it - cheers, Asiaplay
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
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 08:07 AM.

   

 
X-Cart forums © 2001-2020