This must work. Can you please post your model and view?
On Aug 19, 5:51 am, Kenneth Lundström <[email protected]> wrote: > Intresting, it doesn t work. > > If I use just label=T('Add seller') it doesn t even translate (doesn t > appear in my language file) > when I tried with label=str(T('Add seller')) the string is translate but > not shown. > > Kenneth > > > Try label=str(T('Add seller')) > > > On Aug 19, 6:33 am, Kenneth Lundstr m<[email protected]> > > wrote: > > >> Of course, thats a very much easier way of doing. But it doesn t work > >> either. It doesn t get translated. > > >> Kenneth > > >>> Hi Kenneth, > > >>> if you don't need the custom form then you can just use the label > >>> parameter on the Field, > >>> Field('new_seller', ..., label=T('Add seller')) > > >>> Denes. > > >>> On Aug 19, 12:28 am, Kenneth<[email protected]> wrote: > > >>>> I create my form with > > >>>> args = {} > >>>> args['submit_button'] = T('Insert person') > >>>> form = SQLFORM.factory(Field('new_seller', 'integer', > >>>> requires=IS_IN_DB(.........), **args) > > >>>> in my view I show it with > >>>> {{=form}} > > >>>> and it looks like > >>>> New Seller: a dropdown list > > >>>> it works nicely, but then I would like to translate the 'New Seller' > >>>> text and per online book it should work like: > >>>> {{=form.custom.begin}} > >>>> {{=T('Add seller')}}:<div>{{=form.custom.widget.add_seller}}</div> > >>>> {{=form.custom.end}} > > >>>> The text is translated, but instead of the dropdown list I get the > >>>> text 'None', no dropdown. > > >>>> Kenneth

