Magento – Translation by First Name , Last name and prefix does not work

In order to Magento 1.6. the first name on the registration forms, to translate the last name and the prefix, translate.csv must on the one side in the (more info HERE)the corresponding changes are made in addition to the AND

app / frontend /[base or default]/[IhrTemplate]/template/customer/widget/name.phtml

Sleeps ca. in line 67 the line:

<label for=”<?php echo $this->getFieldId(‘firstname’)?>” class =”required”><in>*</in><?php echo $this->getStoreLabel(‘firstname’) ?></label>

search and replace by this one:

<label for=”<?php echo $this->getFieldId(‘firstname’)?>” class =”required”><in>*</in><?php echo $this->__($this->getStoreLabel(‘firstname’)) ?></label>

This was the first name. Now on the surname. As. in line 81 the line

<label for=”<?php echo $this->getFieldId(‘lastname’)?>” class =”required”><in>*</in><?php echo $this->getStoreLabel(‘lastname’) ?></label>

to

<label for=”<?php echo $this->getFieldId(‘lastname’)?>” class =”required”><in>*</in><?php echo $this->__($this->getStoreLabel(‘lastname’)); ?></label>

change.

And for the last line of the prefix

<?php echo $this->getStoreLabel(‘prefix’) ?></label>

to

<?php echo $this->__($this->getStoreLabel(‘prefix’)) ?></label>

change.

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.

7 comments on “Magento – Translation by First Name , Last name and prefix does not work”

  1. Hallo Covos,

    Thanks for your post FOR THE OPERATIONS. “Translation by First Name , Last name and prefix does not work” .

    Could you describe briefly, what changes in the file “translate.csv” must be made and where to find this file in the Magento folder.

    Thank you for your help !

    Greeting

    Markus

      1. Hallo Covos,

        Thanks for the quick reply. I look more closely at the time now and hope, that I hinkriege as Magento newbie 😉

        Thank you for your help !!!

        LG

        Markus

  2. Hi Covos,

    I did not make it, get it just 🙁

    In the registration form, where normally “First Name” and “Last Name” are seen, after the change are empty then, but in each case with a black asterisk (*).

    The file “name.phtml”, I could not see the one you specify directory: app / frontend /[base or default]/[IhrTemplate]/template/customer/widget/name.phtml

    Instead, I have, however, the file “name.phtml” found in the following directory: /html/magento/app/design/frontend/base/default/template/customer/widget/name.phtml. In this folder I have the file “name.phtml” replaced.

    I have the file “name.phtml” only “First Name” and “Last Name” edited, Prefix I so calmly. Does it have an impact?

    I use a theme loaded down and this was the theme folder “f001” created. I have the file “tanslate.csv” therefore applied in the following folder: /html/magento/app/design/frontend/default/f001/locale/de_DE.
    Under the folder “local” However, there is also a sub- “en_US” with a file translate.csv. Should the folder “en_US” delete? Obviously, if the file “name.phtml” also be somewhere in the folder f001?

    The following looks at me like this Translate.csv:
    “First Name”,”First name”
    “Last Name”,Last name”

    This notation is as accurate?

    In the backend I have under System / Configuration / design / Themes / Translations entered the following: f001
    Other fields such as e.g.. Templates, Skin and layout I've entered f001 up to standard, there is nothing in it.

    You know maybe, what I did wrong? I am using Magento Version 1.6.0.0

    I'd be really grateful, if you could help me. Thank you !!!

    Wish you a nice weekend.

    Greeting
    Markus

  3. Sorry, in the above comment, I see, that I am a ” I forgot the spelling. My file looks like Translate.csv:

    “First Name”,”First name”
    “Last Name”,”Last name”

    Thank you !!!

Leave a Reply

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