Magento – Meine Änderung aus der Sprachdatei translate.csv wird von Magento nicht übernommen

Wie bereits in vorherigen Beiträgen mitgeteilt (Example HERE, HERE or in general HERE), you can take the translate.csv define your own translations for its Template, die dann im Frontend angezeigt werden. Ab und zu funktionieren Übersetzungen in der translate.csv aber nicht obwohl alles korrekt hinterlegt ist. Der vorige Eintrag in der translate wird beispielsweise korrekt übernommen, der aktuelle aber nicht.

"Price as configured","Price per package"
"Qty:","Volume packages"

Both parts are standard parts of Magento and translate each of the German language pack in the folder app / locale / en_US.

Where is the difference? I do not know 🙂 It seems to be so, that Magento times the translate.csv and times of the respective app / locale /[file].csv gives priority. Damage, dass hier keine Konsequenz wie auch bei vielen anderen Teilen besteht.

Um nun aber den Vorrang bei der zweiten Übersetzung zu ermöglichen, wird vor den ersten Teil aber innerhalb der Anführungszeichen der Name der Übersetzungsdatei (ohne .csv) mit zwei Doppelpunkten integriert. In meinem Fall sähen die beiden Zeilen dann so aus:

"Price as configured","Price per package"
"Mage_Catalog::Qty:","Volume packages"

Hiermit funktioniert es dann einwandfrei und die Übersetzung meines Templates wird angezeigt.

Used in Magento Version 1.7 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *