Zen Cart Logo
Forums / General Questions / switch between languages on main page?

switch between languages on main page?

Views: 646

Results 1 to 6 of 6
12 Nov 2014, 9:56 PM
#1
wenez avatar

wenez

New Zenner

Join Date:
Nov 2014
Location:
australia, nsw
Posts:
15
Plugin Contributions:
0

switch between languages on main page?

hi,
i would like to know how to have a language switch on the main page. is there anything like that in zen cart?

15 Nov 2014, 6:55 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: switch between languages on main page?

wenez:

hi,
i would like to know how to have a language switch on the main page. is there anything like that in zen cart?

Yes, there basically is. Usually easiest to implement by turning on the languages sidebox... For each installed language an indicator is loaded/shown to the customer if such is part of the template. A user could then click on the indicator of choice and files overridden for the template and/or language would be displayed basically.

15 Nov 2014, 9:19 PM
#3
wenez avatar

wenez

New Zenner

Join Date:
Nov 2014
Location:
australia, nsw
Posts:
15
Plugin Contributions:
0

Re: switch between languages on main page?

thank you so much mc,
that was easy. i first turned off most of the side boxes to have the screen not so cluttered, that is why i did not see this box. just wondering how important it is to use the override system in the case of another language? because the other languages are not upgraded anyway? so - do i have to create my own template folders for any other language that i put in?

15 Nov 2014, 9:40 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: switch between languages on main page?

wenez:

thank you so much mc,
that was easy. i first turned off most of the side boxes to have the screen not so cluttered, that is why i did not see this box. just wondering how important it is to use the override system in the case of another language? because the other languages are not upgraded anyway? so - do i have to create my own template folders for any other language that i put in?

The override system offers several things... First of all, by not modifying the "core" code (defaults, and things that can not be overridden) when an upgrade comes along, the file replacement is a snap. The plugins just have to be verified to continue functioning. Whereas any change made to the default template? Well, there is no fallback and in an upgrade situation have to ensure that the previous changes get carried over. Btw, there is supposed to be a 1.5.4 coming soon, so don't think that won't ever upgrade. The next thing is that when using a template (even a copy of the default template or classic) by having a default/unchanged template, it is possible to test situations out to see if it is template related or "core" depending on what the issue is.

Lastly, the alternate language system is itself a template/override system. What is not found in the alternate language is displayed in "english" or the default language as the language can be switched around, but the way the files have previously been written is to look in the english folder(s) when unable to find something in the desired language.

Also, the language options don't have to be in the sideboxes only, there is also the ability to place/show them in the header/footer, depending on settings and templates.

So hope that helps in your future planning of your site and that you continue on using the override/template system. It really is in your best interest to do so even though none of us can stop you from doing whatever you choose to do.

15 Nov 2014, 9:54 PM
#5
wenez avatar

wenez

New Zenner

Join Date:
Nov 2014
Location:
australia, nsw
Posts:
15
Plugin Contributions:
0

Re: switch between languages on main page?

just thinking that the language packs will be upgraded from time to time too, so i will use the override system. thank you for your help.

15 Nov 2014, 9:59 PM
#6
wenez avatar

wenez

New Zenner

Join Date:
Nov 2014
Location:
australia, nsw
Posts:
15
Plugin Contributions:
0

Re: switch between languages on main page?

thanks mc, for your detailed explanations. it made things more clear for me.