I had a multilingual site runing on my local system applying
drupal 7.18
i18n 7.x-1.7
entity translation 7.x-1.0-beta2
Geofield 7.x-1.1
and other modules

The sites containes fields of strings (lists), decimals and coordinates. I used entity translation to translate field labels and descriptions.

In a second step I rebuilt this site online applying
drupal 7.21
i18n 7.x-1.8
entity translation 7.x-1.0-beta2
Geofield 7.x-1.1

On this site the labels and descriptions where not translated for fields which did not consist of strings. Hence it did not work for decimal fields and the coordinate fields. First I thought the newer drupal version would cause this. But this was not true, downgrading to 7.18 did not help. Finally I realized that for the online site I used a newer version of i18n.

-> Using the older version i18n 7x-1.7 solved the problem.
I don't know why, but it would be nice if someone would find out and fix it for the future versions.

CommentFileSizeAuthor
#4 i18n_fields_decimal_field_bug.patch648 bytesalbertk

Comments

flyingchris’s picture

... the translation of the labels and description did work when the node was displayed, but not when the node was added.

flyingchris’s picture

Version: 7.x-1.8 » 7.x-1.x-dev

The development version (2013-Jan-19 ) also did not work.

mibfire’s picture

Same

albertk’s picture

StatusFileSize
new648 bytes

I had the same problem, I wrote this patch that resolved my problem in the 7.x-1.8 version.

mibfire’s picture

thx albertk, this is working well.

mh86’s picture

Title: translation of decimal fields worked with i18n 7.x1.7, but not with 7.x1.8 (Entity translation and i18n used) » translation of decimal and email fields worked with i18n 7.x1.7, but not with 7.x1.8 (Entity translation and i18n used)

Not only the translation of labels for decimal fields does not work any more, also for email fields.
While the patch from #4 helps for decimal fields, it does not for email fields.

Seems like this problem was introduced by #1875282: Improve field translation by implementing hook_field_widget_form_alter()

bojanz’s picture

Status: Active » Closed (duplicate)