Forums / Templates, Stylesheets, Page Layout / english.php override

english.php override

Locked

Views: 2,232

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Aug 2008, 6:32 AM
#1
tippy2 avatar

tippy2

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

english.php override

I have copied english.php to
includes/languages/cool_1/english.php

but the changes I make to that file are not shown on my site. However, if I make changes to
includes/languages/english.php
the changes DO appear on my site.

In Admin, under Template Selection, I added a "new language" thinking that may work, but it didn't help. My template selector now looks like this:

Default(All) - cool_1 - cool_1
English - cool_1 - cool_1

Do I need to remove the Default(All) to make my override english.php be seen by Zen?

17 Aug 2008, 11:39 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: english.php override

which version zc are you using?

are any other mods installed?

is "cool_1" the name of your template?

if so, are all other changes you may have made in files under this template showing up?

Frank

https://www.frnt.org/zencart

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Aug 2008, 4:08 AM
#3
tippy2 avatar

tippy2

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Re: english.php override

I'm using version 1.3.8a with no mods.

cool-1 is indeed the name of my template.

All the other overrides appear to be working as expected - it is only english.php that is causing me grief.

I have double checked the directory name too many times to count. I'm thinking I should do a fresh install and start over - I must have unknowingly altered something I shouldn't have.

18 Aug 2008, 5:07 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: english.php override

tippy2:

I have copied english.php to
includes/languages/cool_1/english.php

but the changes I make to that file are not shown on my site.
I'd be checking to verify that the file has actually uploaded correctly, and that it's not 0 bytes in size (which would suggest an FTP failure on upload).

If the file doesn't exist, or exists but is blank, or exists without any define statements in it to override, then the master defines will be loaded from the main english.php.

Thus, if your changes are not appearing, it suggests that the file is damaged, incomplete, missing, or has the wrong filename ... all on the server side, regardless of what's on your PC where you're doing your editing.

.
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.

19 Aug 2008, 6:00 AM
#5
tippy2 avatar

tippy2

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

Re: english.php override

Thank you very much for your assistance!! It was indeed a corrupted file. I uploaded again and it works perfectly. Sorry for not checking this before posting my query.