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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | i18n_fields_decimal_field_bug.patch | 648 bytes | albertk |
Comments
Comment #1
flyingchris commented... the translation of the labels and description did work when the node was displayed, but not when the node was added.
Comment #2
flyingchris commentedThe development version (2013-Jan-19 ) also did not work.
Comment #3
mibfire commentedSame
Comment #4
albertk commentedI had the same problem, I wrote this patch that resolved my problem in the 7.x-1.8 version.
Comment #5
mibfire commentedthx albertk, this is working well.
Comment #6
mh86 commentedNot 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()
Comment #7
bojanz commentedThe patch in #1904368: [7.x-1.8 regression] Field translation fails in numerous situations seems to be the most complete.