Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,668
    Plugin Contributions
    11

    Default language loading question....

    i do not want to dig into the autoloader (yet again...).

    but i am curious if this is, in fact, the intended behavior.

    if i got the home page of mySite, i am seeing that both of these files are getting loaded:

    /var/www/mySite/includes/languages/english/MyTemplate/index.php
    /var/www/mySite/includes/languages/english/index.php

    now, i thought the whole point of adding a page specific file in the template directory was to override the values in the default script. which it does as the template file gets loaded first.

    but why load the default one if you have already modified that one?
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,398
    Plugin Contributions
    87

    Default Re: language loading question....

    IIRC, that's to capture any 'base' language constants that didn't make it into the template-override version.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,620
    Plugin Contributions
    123

    Default Re: language loading question....

    As an example, if the template language files are old but installed on top of a new Zen Cart, this will catch new defines that aren't in the old language files.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

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

    Default Re: language loading question....

    And put another way, not everyone either first copies the core version to the override version nor does everyone compare override template files to the core version.

    Either or both of those actions should be done when working with template override files.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. problem loading language pack!!
    By scanham in forum Addon Language Packs
    Replies: 2
    Last Post: 11 Jan 2012, 12:24 PM
  2. tools > send email > loading loading loading
    By keylesslocks in forum General Questions
    Replies: 6
    Last Post: 29 Aug 2008, 12:10 PM
  3. Question about a ZenCart Site loading speed
    By bigbadbob in forum General Questions
    Replies: 0
    Last Post: 10 Jun 2008, 09:35 PM
  4. Language File Not Loading, Fails to Translate Defines
    By jacdesigner in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 29 May 2008, 02:43 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR