X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   add language variable in a 2nd language (https://forum.x-cart.com/showthread.php?t=45979)

vasilis 03-03-2009 12:53 PM

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 ?

Asiaplay 03-03-2009 08:50 PM

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

vasilis 03-05-2009 10:06 AM

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 :-)

Asiaplay 03-05-2009 03:41 PM

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


All times are GMT -8. The time now is 10:08 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.