Magento – Create your own translations or translate.csv

Often, one or the other Überstzung Magento does not exist or it is translated differently, as one would imagine. This can usually be helped relatively easy.

Should update their own safe-- Translations are created, must be in the folder / app / design / frontend /(base or default)/own sTemplate / locale / de_DE (for German translation) a file “translate.csv” be created. If the folders are missing, Simply create.
Between two “” is always the first to be translated part, then a comma followed by two “” and translation.

Example: “View All”,”All”

It is important to note the exact spelling.
The various translations should each be on one line and do not need from each other or similar with a comma. to be separated.

It is more difficult for variables.
If e.g.. “Pieces available: 100” to be translated, is the problem, that 100 a value from the database is. Variables can often %s be taken. So that would be an opportunity here:

“Pieces available: %s”,”Available: %s”

It may also be, Handle multiple that “” % s must come to the. E.G.:

“Pieces available: “%s””,”Available: “%s””

or

“Pieces available: “”%s”””,”Available: “”%s”””

It is important in addition to the spelling and spaces etc. to respect.
Can be translated parts of the code, e.g. the. in the source code with () and ” ” are marked. E.g.:

<h3><?php echo $this->__("Click on one of the following links")?></h3>

Here, then, would be the translation:

“Click on one of the following links”,”Please click on a link below”

What is important now more, that is set in the backend, that the translation file to be used. This system is in > Configuration > Design for “Translation” set. There simply choose your own template.

Used in Magento 1.4.1.1

Addendum dated 14.03.2013

A very comprehensive list of translations into German of the translate.csv there are also HERE. Further contributions to the translation of text to Magento HERE.

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.

6 comments on “Magento – Create your own translations or translate.csv”

  1. Hallo commercers,
    Thanks for the instructions. Actually, everything should be clear. For me, only the display is "Only 22 left "a problem child. This will not simply be translated. What I have tried so far in translate.csv:

    “Only “”%s”” left”,”Only “”%s”” Units in Stock”
    “Only “%s” left”,”Only “%s” Units in Stock”
    “Only %s left”,”Only %s Units in Stock”
    “Only “”%s”” left”,”Only “”%s”” Units in Stock”
    “Only “%s” left”,”Only “%s” Units in Stock”
    “Only %s left”,”Only% s piece in stock”

    Unfortunately not everything works out.
    Hier einBeispiel
    Does anyone have any idea, how can I translate the?

    1. Hei,
      apparently it has indeed worked yet.. How it worked? Have with Magento 1.7 the same problem and can not find a solution for it!

      1. Notice how I always give back: Ensure that the correct quotation marks. Are copying and pasting like changing times and then it works much not to all.

  2. Hi,
    just as a tip: If Magento is always the first line of the translate.csv vermutllich reads it to the set line breaks. This need for a Linux system “LF” read. On Windows, however, “CR” Magento set and gets in trouble.

    Regards,
    Rafael Kucha

Leave a Reply

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