1

How can I translate my transaction E-Mails. At my Template, I have this

{{layout handle="sales_email_order_items" order=$order}}

And on my german shop the 'Sku' should be 'Artikelnummer' or 'Object' -> 'Artikel' I tried to add the words in my translate.csv like this

"Mage_Sales:Item","Artikel"
"Mage_Sales:Sku","Artikelnr."

But it doesn't work. Anyone an idea? Thanks.

user2310852
  • 501
  • 6
  • 12
  • 20

3 Answers3

4

Try like this (double '::' between the module and the text):

"Mage_Sales::Item","Artikel"
"Mage_Sales::Sku","Artikelnr."

Also you can place this inside Mage_Sales.csv

"Item","Artikel"
"Sku","Artikelnr."
Marius
  • 197,939
  • 53
  • 422
  • 830
  • I want to change it in my own theme, because of magento core updates. all of my translations are in "app/design/frontend/mytheme/locale/translate.csv" – user2310852 Sep 18 '13 at 15:23
  • The Magento core does not include the de_DE locale folder, so you can safely modify any files in there. – Marius Sep 18 '13 at 15:41
  • Ok, I made the Translation at app/locale/de_DE/Mage_Sales.csv. Thank you, I'll test it. – user2310852 Sep 18 '13 at 15:59
0

Did you add the translations in app/locale/de_DE/Mage_Sales.csv?

Sander Mangel
  • 37,528
  • 5
  • 80
  • 148
  • No I have ONE file in app/design/frontend/mytheme/locale/translate.csv There are all of my own translations, like "Mage_Customer::Login or Create an Account", "Anmeldung" "Mage_Customer::New Customers", "Nein" "Mage_Customer::Registered Customers", "Ja" – user2310852 Sep 18 '13 at 15:16
-1

I run across a similar problem when trying to send localized transactional emails from within a cronjob - the localization stuff wasn't initialized. For me calling Mage::app()->getTranslator()->init('frontend', true); before sendTransactional() helped.