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

How do you execute code depending on a language?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-13-2005, 07:17 AM
 
aschouela aschouela is offline
 

Member
  
Join Date: Mar 2005
Posts: 15
 

Default How do you execute code depending on a language?

I am trying to execute code according to the language the user is viewing the store.

Does anyone know the variable name for language and the values for the languages French and English?

I basically want the code to look like:

{if $language eq "French"}

######line of code here######

{else}

######line fo code here######

{/if}

I am just not sure on the first line.
__________________
Adam
x-cart-4.0.12gold
Unix OS
Reply With Quote
  #2  
Old 04-13-2005, 08:23 AM
 
aschouela aschouela is offline
 

Member
  
Join Date: Mar 2005
Posts: 15
 

Default

I figured it out. Just in case someone else out there is haveing the same question the variable name for the language of the store is $store_language and the values for the languages English and French are US and FR respectively.
__________________
Adam
x-cart-4.0.12gold
Unix OS
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 06:55 PM.

   

 
X-Cart forums © 2001-2020