New Zenner
- Join Date:
- Feb 2012
- Location:
- Sherbrooke QC Canada
- Posts:
- 8
- Plugin Contributions:
- 0
Using CUSTOM language file but defaulting some from ORIGINAL language file
Hello. I have set up and running 2 Zen Cart stores and ran into a strange problem.
I used "@setlocale(LC_TIME, 'fr_CA.utf8');" in my CUSTOM french.php file located under "languages/custom" folder. My month names that had accents would appear with accents replaced with a black "?" symbol (ie: f?vrier instead of février).
After many hours of debugging, it turned out that Zen Cart seamed to pull @setlocale(LC_TIME,'fr_FR.ISO_8859-1'); from my ORIGINAL french.php located in languages folder. :huh: But the rest of my configuration from my custom folder.
Simply setting "@setlocale(LC_TIME, 'fr_CA.utf8');" in my ORIGINAL file in languages folder corrected the problem.
We are not supposed to modifying a core file like that from what I read. Anyone know why Zen Cart is pulling only that setting from the original core file instead of from my custom file?
Thanks!