Forums / General Questions / Emails not using my language files

Emails not using my language files

Views: 770

Results 1 to 6 of 6
25 May 2011, 3:31 PM
#1
davx avatar

davx

New Zenner

Join Date:
Nov 2009
Posts:
80
Plugin Contributions:
0

Emails not using my language files

Hi Guys

I changed the admin configuration from not using MIME HTML to use it.

Then noticed that emails were going out with the correct text.

EMAIL_SPAM_DISCLAIMER, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT, etc

I have checked and there are language files in /includes/languages/english/email_extras.php which relate to this but don't seem to be working.

Any ideas?

25 May 2011, 3:39 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Emails not using my language files

Report back any error logs in this folder:

root directory/ cache

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

25 May 2011, 3:53 PM
#3
davx avatar

davx

New Zenner

Join Date:
Nov 2009
Posts:
80
Plugin Contributions:
0

Re: Emails not using my language files

Adding the defines to the default english.php fixes this, however it adds another 50 lines to the file so idealy I would still like to fix or find out why it wont use the email_extras.php. :S

25 May 2011, 4:00 PM
#4
davx avatar

davx

New Zenner

Join Date:
Nov 2009
Posts:
80
Plugin Contributions:
0

Re: Emails not using my language files

Haredo

Thanks for the reply, the only error I could find in there was this.

[25-May-2011 09:11:02] PHP Warning: file_get_contents(/home/rvsco/public_html/includes/languages/english/rvs/email_extras.php) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /home/rvsco/public_html/admin/email_welcome.php on line 208

[25-May-2011 09:11:02] PHP Warning: copy(/home/rvsco/public_html/includes/languages/english/rvs/email_extras.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in /home/rvsco/public_html/admin/email_welcome.php on line 210

the file /includes/languages/english/rvs/email_extras.php does exist. :S

However I havent received this error again and it was still sending without translating the defines.

25 May 2011, 4:59 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Emails not using my language files

There are TWO files of the same name, but different locations. Evidently your admin file is missing.

  • /includes/languages/english/email_extras.php (and the custom override folder version of that file)
  • /renamed-admin/includes/languages/english/email_extras.php (no overrides for this file)

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

26 May 2011, 12:33 PM
#6
davx avatar

davx

New Zenner

Join Date:
Nov 2009
Posts:
80
Plugin Contributions:
0

Re: Emails not using my language files

DrByte, Thankyou, problem solved.