Check the doc on Database Abstraction Level for the full signature of
Field. The Field argument to db.define_table includes the label argument,
and yes, you can do something like this:
db.define_table('mytable',
Field(myfield, label=T('mylabel'),
)
On Tuesday, October 16, 2012 8:41:07 AM UTC+8, Don_X wrote:
>
> Hello web2py users,
>
> This is a basic enquiry :
>
> but not insignificant !
>
> Is it possible to wrap a label name -
>
> one example among many similar situations that I am encountering :
>
> within a table define, a label is set for a field as follows : ......
> label =T('Re-enter email') .....
>
> when the T function kicks in to translate the argument in another
> language, the translation result happens to be too long for the space
> initially defined for that same label
>
> so .. is it possible to nicely wrap that label argument ... right there
> in field declaration of the table define ... so it does not distort the
> form or table it ( the label ) is destined to appear or be viewed ???
>
> thank you !
>
> Don
>
--