Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default overriding lang files in 1.5.8

    In 8.1 and 1.58 with the new lang defines, can I put in the define into the database and use that inside the lang file such
    'TITLE' => SITE_TITLE, instead of 'TITLE' => 'Zen Cart' where SITE_TITLE is in the database?
    The full-time Zen Cart Guru. WizTech4ZC.com

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: overriding lang files in 1.5.8

    Quote Originally Posted by delia View Post
    In 8.1 and 1.58 with the new lang defines, can I put in the define into the database and use that inside the lang file such
    'TITLE' => SITE_TITLE, instead of 'TITLE' => 'Zen Cart' where SITE_TITLE is in the database?
    Yes, you can.

  3. #3
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: overriding lang files in 1.5.8

    Quote Originally Posted by lat9 View Post
    Yes, you can.
    Hmm. So yes it can be done as I had already figured out. A better way of phrasing this, can you foresee any issues long term doing it? The reason this is now a question is because of the issues for me that cropped up in 1.5.8.
    The full-time Zen Cart Guru. WizTech4ZC.com

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: overriding lang files in 1.5.8

    Quote Originally Posted by delia View Post
    Hmm. So yes it can be done as I had already figured out. A better way of phrasing this, can you foresee any issues long term doing it? The reason this is now a question is because of the issues for me that cropped up in 1.5.8.
    The only long-term issue I could foresee is if, for whatever reason, the database no longer has the SITE_TITLE value. That will, for PHP 8.2+ (IIRC), result in a PHP error for that missing constant.

  5. #5
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: overriding lang files in 1.5.8

    Only a template add on
    The full-time Zen Cart Guru. WizTech4ZC.com

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: overriding lang files in 1.5.8

    Quote Originally Posted by delia View Post
    Only a template add on
    Being captain obvious, an issue would exist if that constant is desired to be or become actually language dependent.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Overriding the pages folder files
    By mayilsamy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Jul 2010, 10:27 AM
  2. trouble overriding language files
    By AllieT3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2009, 02:04 AM
  3. Replies: 6
    Last Post: 15 Jun 2008, 04:17 PM
  4. Files aren't overriding
    By sabastina in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 May 2006, 01:39 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