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)
-   -   Language Term and Condition (https://forum.x-cart.com/showthread.php?t=2748)

tpfair 05-17-2003 02:02 PM

Language Term and Condition
 
Hello



Is there a way to have 2 (French & English) Term - Conditions page ? And how to do that.

Sorry for all my questions but im new to this cart.


Stefan

shan 05-18-2003 01:20 PM

You could create an entry in admin/languages that holds the content of the conditions page. You could do the same thing but for the french version.

on the conditions.tpl just add the variable to bring up the code form the languages table

tpfair 05-19-2003 01:32 PM

Condition
 
Hello,


Great but how do i add that in a .pl file. i.e language calls ? English - French



Thanks


Stefan

shan 05-19-2003 03:12 PM

If you were to add a lable type called title for instance then you would include it on your tpl file as follows

{$lng.lbl_title}

follow the same method for adding a text type

tpfair 05-19-2003 05:03 PM

Great but...
 
Is there a way to call a different file language specific ? Like for english load page A and for french load B ?


Same thing with images...

Stefan

shan 05-20-2003 04:22 AM

Thats the whole point of using the language variables.

If the site is running in English it shows the english variable and if its in French it shows the frech version etc

tpfair 05-20-2003 09:47 AM

Terms
 
Thanks but how do we call a different page (.pl) equivant to a language ?


Stefan

shan 05-20-2003 10:01 AM

In your admin / languages ... add a record for each language you need.

add the variable to your tpl file ....

The store will display

Quote:

.................................................. ..................
Language = ENGLISH

Variable = lbl_about_our_site
Description = About our site
Value = About our site

.................................................. ...................
Language = GERMAN

Variable = lbl_about_our_site
Description = About our site
Value = ц°ber unserer Stelle


SO you would need to do something like this....

Quote:

.................................................. ..................
Language = ENGLISH

Variable = lbl_terms
Description = your terms
Value = ADD YOUR ENGLISH TERMS HERE

.................................................. ...................
Language = GERMAN

Variable = lbl_terms
Description = your terms
Value = ADD YOUR GERMAN TERMS HERE

Xcart automaticaly display the correct language depending on which language is chosen.

I suggest you experiment with the languages section in your admin area. take a look at www.smarty.net, check the FAQ here and in the members area, search for "languages" here in the forum and it will all become clear

tpfair 05-20-2003 03:48 PM

Terms
 
Hello,


I inderstand exactly how to call a different language text or label but how do i call a DIFFERENT .PL file according to the language. Same thing for calling image in different language.



i.e. i have termsFR.pl and termsUS.pl.


Stefan

Romain 06-18-2003 10:33 AM

one idea
 
... would be to modify the template of your main page by adding :
{include "page".$Current_lng.".tpl")
the idea is to use the current language as a variable in the name of the file you wan to call : this way, it will not call the same .tpl if the lng is FR or ENG...

Romain.


All times are GMT -8. The time now is 01:26 PM.

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