Zen Cart Logo
Forums / Contribution-Writing Guidelines / Side by side language files (array based vs. define based)

Side by side language files (array based vs. define based)

Views: 729

Results 1 to 2 of 2
18 Feb 2025, 12:13 AM
#1
retched avatar

retched

Totally Zenned

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

Side by side language files (array based vs. define based)

I know that ZenCart will be moving away from the original "define" based language files to the array based language files soon. But my question is, what happens when ZenCart (currently) finds both a define based file and an array based file in the same directory? Will this generate an error or is there an order of operations as to how language files are loaded?

18 Feb 2025, 12:28 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Side by side language files (array based vs. define based)

No errors. If both older and newer style files exist, the older files are ignored, including their overrides.

https://docs.zen-cart.com/dev/languages/158_order_language_files/