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

iellawindy - August 26, 2008 - 09:53
Title:Title not translated» label not translated

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

Rob Loach - August 26, 2008 - 15:29
Status:active» needs review

The correct way to fix it is to create patches ;-) .

AttachmentSize
226531.patch 952 bytes

#3

mh86 - August 28, 2008 - 09:30

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

dooug - June 16, 2009 - 11:31

This patch worked fine, but I agree with the mh86 that the t() function on the default value seems unusual.

 
 

Drupal is a registered trademark of Dries Buytaert.