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: 752

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:
949
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,729
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/

That Software Guy. My Store: Zen Cart Support
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.