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)
-   -   How do you execute code depending on a language? (https://forum.x-cart.com/showthread.php?t=13398)

aschouela 04-13-2005 07:17 AM

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.

aschouela 04-13-2005 08:23 AM

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.


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

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