Translate product's field label and Text fields label/data

Hi all. I have a multilanguage site. Traslations are based on "Field Translate".

In my Product variation types I have some Term Reference fields and some Text fields.

I have activated the translation and I have transleted the labels.

But when I see the product page (node/XXXX) I see this two things:

  • labels are not translated for term referenced field, but field's value is translated
  • for text fields labels and text is not translated

How can I display labels translated ?
And How can I enbled the translation for the text field value ?

In "Product display -> manage field" I have enabled the translation because I see
"Field translation
Users may translate all occurrences of this field: Produzione oraria in Product

See screenshot, right side.

"Tipologia Macchine" is the italian label. "Brand" is an italian label too.

PO 123 and PA ENG are my test, but they are not translated.


PS: sorry for my bad english.

Image icon schermata_11-2456604_alle_11.40.05.png264.08 KB
Posted: Nov 7, 2013


edu on November 7, 2013

You can search the string "Brand" at admin/config/regional/translate/translate ?
You should find the string in the text group "Fields" and then you can translate it

ziobudda on November 7, 2013

Hi, I have try but I have not find it.

My (commerce) first language (default) is italian, then English and French. Is it possibile that commerce think that "Marca" is in English ? If it uses "t()" I think that this is possible.

Thanks however for the reply.

edu on November 8, 2013

I had the same problem in a spanish site.. But just spanish, not multilingual. I solve it setting english as default for admin user (uid = 1) and then setting spanish as default for other users with a custom module.. this is the code for italian (it)

* Implements hook_language_negotiation_info_alter().
function custom_functions_language_negotiation_info_alter(&$providers) {
  $providers[LOCALE_LANGUAGE_NEGOTIATION_SESSION]['callbacks']['language'] = 'custom_functions_language_negotiation_session';
  $providers[LOCALE_LANGUAGE_NEGOTIATION_SESSION]['file'] = drupal_get_path('module', 'custom_functions') . '/custom_functions.module';

* Set language to "english" only for admin user.. all others are italian people
function custom_functions_language_negotiation_session($languages) {
  // Use the core URL language provider to get a valid language code.
  global $user;
  $param = variable_get('locale_language_negotiation_session_param', 'language');
  if ($user->uid == 1) {
    return 'en';
  } else {
    $_SESSION[$param] = 'it';
    return 'it';