Forums / Contribution-Writing Guidelines / Language Overrides and Templates

Language Overrides and Templates

Started by retched on 26 Mar 2011, 4:13 AM · Views: 2,253

Results 1 to 4 of 4
26 Mar 2011, 4:13 AM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Language Overrides and Templates

What exactly is the order that ZenCart loads language files?

The main question I want to ask is: "How do I override /includes/langauges/english.php?

26 Mar 2011, 4:16 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Language Overrides and Templates

The answer you need is: /includes/languages/NAME_OF_YOUR_TEMPLATE/english.php loads before /includes/languages/english.php

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Mar 2011, 4:21 AM
#3
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Language Overrides and Templates

DrByte:

The answer you need is: /includes/languages/NAME_OF_YOUR_TEMPLATE/english.php loads before /includes/languages/english.php

So would it be better if I copy and pasted the entire english.php file or just the portions that I'm changing?

26 Mar 2011, 4:44 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Language Overrides and Templates

Smart question!
The best thing is to just copy the parts you're changing. :wink:

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.