label not translated
fantasma - February 25, 2008 - 15:59
| Project: | Email Field |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
The title of the email field is not translated in a multilingual system. There is a t() missing on line 194. I fixed it like this:
'#title' => t($field['widget']['label']),
Could you please fix this and make an official release.
Kind regards

#1
Label of the email field is not translated in a multilingual system. There is a t() missing on line 154. I fixed it like this:
'#default_value' => isset($node_field[$delta]['email']) ? $node_field[$delta]['email'] : t($default_value),
Could you please fix this and make an official release.
Thanks
#2
The correct way to fix it is to create patches ;-) .
#3
The translation of the label is missing, so we should add this.
But concerning the default value, I'm not sure if this is common.. translation of email addresses??
#4
This patch worked fine, but I agree with the mh86 that the t() function on the default value seems unusual.