| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
add language variable in a 2nd language | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||
|
|||||||
![]() 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!) |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#4
|
|||||||
|
|||||||
![]() ok
![]() ![]()
__________________
X-Cart Gold version 4.1.9 (plus built in X-Cart bugs!) |
|||||||
|
|||
X-Cart forums © 2001-2020
|