Zen Cart Logo
Forums / Bug Reports / [Not a bug] Language Overrides - english.php not working if I delete the original

[Not a bug] Language Overrides - english.php not working if I delete the original

Locked

Views: 2,164

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
27 Oct 2006, 10:13 PM
#1
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

[Not a bug] Language Overrides - english.php not working if I delete the original

Using with v1.3.5 Linux and as per this Tutorial:
https://www.zen-cart.com/tutorials/index.php?article=36

Modifying the default Language File - /includes/languages/english.php

Example: You need to modify the title, so that instead of reading Zen Cart!, it reads Your Store Name!

Make a directory with the same name as your template name in /includes/languages, so you now have /includes/languages/custom.

Copy english.php to this directory.

Then, you can make any needed modifications in your new:
/includes/languages/custom/english.php
The above does not seem to be correct. Following the instructions only gave errors.
Seems the 'english.php' must stay where it is.

Maybe not a bug but perhaps, information that was specific to previous versions?

27 Oct 2006, 10:32 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: [Not a bug] Language Overrides - english.php not working if I delete the original

Website Rob:

Using with v1.3.5 Linux and as per this Tutorial:
https://www.zen-cart.com/tutorials/index.php?article=36

The above does not seem to be correct. Following the instructions only gave errors.
Seems the 'english.php' must stay where it is.

Maybe not a bug but perhaps, information that was specific to previous versions?The instructions are correct for this and previous versions of Zen Cart. What is the name of your template directory? What is the full pathname of the directory into which you copied english.php? And what were the errors that you received?

27 Oct 2006, 10:38 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Not a bug] Language Overrides - english.php not working if I delete the original

Make sure you make a copy of english.php for your:
/includes/languages/your_template_dir

Do not remove the original file:
/includes/languages/english.php

Otherwise, there is nothing to override ... :eek:

27 Oct 2006, 10:55 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Not a bug] Language Overrides - english.php not working if I delete the original

My bad. You are correct Linda.

In trying to prevent my little brain from having ambiguity / duplication problems, I was deleting the original after copying over. I seem to recall I was able to copy/delete other files, that use overrides, but the 'english.php' one was the only one giving me problems.

27 Oct 2006, 11:05 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Not a bug] Language Overrides - english.php not working if I delete the original

You really do not want to delete the original files from their original locations ...

When a problem, you need them for trouble shooting and many will not run as an override without existing in the original location ...

They also help you see where upgrades have happened from one version to the next ...