Forums / Addon Language Packs / Translating Sub-Total for emails

Translating Sub-Total for emails

Locked

Started by ellivir on 31 Aug 2006, 8:54 AM · Views: 15,967

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
31 Aug 2006, 8:54 AM
#1
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Translating Sub-Total for emails

Hi,

I am trying to translate "Sub-Total" and "Total" for ZC emails in a way that it would work properly in my language. I need to use for example letter "ä" (a with two dots) in it but if I make it like it should be for the emails written with coding "‰" it appears badly on the Checkout Success page. If I write it with html "ä" it appears in html code in email but then it is ok in the web shop part.

So, the problem is that these things hasn't been separated for email translation and for the website like it normally has been done in ZC. How could I fix this BUG by myself or is there a fix already available?

HERE ARE THE FILES THAT THIS THING APPEARS:

.../shop/admin/includes/languages/finnish/invoice.php
Line #37 : define('ENTRY_SUB_TOTAL', 'Sub-Total:');

.../shop/admin/includes/languages/finnish/orders.php
Line #63 : define('ENTRY_SUB_TOTAL', 'Sub-Total:');

.../shop/includes/languages/finnish/modules/order_total/ot_subtotal.php
Line #22 : define('MODULE_ORDER_TOTAL_SUBTOTAL_TITLE', 'Sub-Total');
Line #23 : define('MODULE_ORDER_TOTAL_SUBTOTAL_DESCRIPTION', 'Order Sub-Total');

Thanking before hand already!

Elli

I may be blond but at least I found Zen.

31 Aug 2006, 9:01 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Translating Sub-Total for emails

You might be able to trick this converter into working for you:

Admin->Configuration->Email Options:
"Convert currencies for Text emails"

The default setting is: £,£:€,€
You could try adding to that like this:

£,£:€,€:ä,ä

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

31 Aug 2006, 2:19 PM
#3
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Translating Sub-Total for emails

DrByte:

You might be able to trick this converter into working for you:

Admin->Configuration->Email Options:
"Convert currencies for Text emails"

The default setting is: £,£:€,€
You could try adding to that like this:

£,£:€,€:ä,ä


It looks like it works! :) I didn't realise from admin by myself that this could help...
I will add ö as well in the list...

£,£:€,€:ä,ä:ö,ö

I may be blond but at least I found Zen.

6 Nov 2006, 8:27 AM
#4
pasi avatar

pasi

Zen Follower

Join Date:
Mar 2004
Location:
Finland
Posts:
435
Plugin Contributions:
1

Re: Translating Sub-Total for emails

For some reason I have not come across this (and I've been using zencart since 1.1.4) ...

Ä,ä,Ö and ö work fine both on the screen and on emails ... you might want to check the character encoding... when I save zencart pages in UTF-8 it might show the characters wrong...

Working with Zen Cart since 2003 :: www.prr.fi
Author of the original Finnish language pack for Zen Cart since 2004