Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2014
    Location
    australia, nsw
    Posts
    15
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: switch between languages on main page?

    Quote Originally Posted by wenez View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2014
    Location
    australia, nsw
    Posts
    15
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: switch between languages on main page?

    Quote Originally Posted by wenez View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Nov 2014
    Location
    australia, nsw
    Posts
    15
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Nov 2014
    Location
    australia, nsw
    Posts
    15
    Plugin Contributions
    0

    Default Re: switch between languages on main page?

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

 

 

Similar Threads

  1. I have two languages, but information box dont switch language
    By stefanl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Feb 2011, 07:16 PM
  2. Easy switch between product type
    By jfconrow in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 29 Oct 2009, 02:53 AM
  3. How do I change banner images when I switch languages?
    By chay in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Oct 2009, 09:59 PM
  4. Switch order of Specials and Featured on Main Page (Issue)
    By psychicpet in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jan 2008, 08:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg