You should be able to do db.unit.label=Τ('physics units')
On Dec 2, 4:18 am, Kostas M <kmo...@hotmail.com> wrote: > Ok, I understand that, but I am trying to implement a generic > controller (e.g. 'mylist') which takes as argument a table name (e.g. > 'units') and returns its records. This is fine done, but I would like > to have also a header of the returned table, which is kind of a > 'label' of the table, and it is different (and due to i18n) from the > name of the table. > > I think it would be nice and coherent if it was possible to set an > additonal attribute to a table with its 'label'. Something like: > db.units.label > > So I propose maybe something like: > db.define_table('unit',label=Τ('physics units'), > Field(..),.. ) > > On Dec 2, 9:11 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > There is no "label" for thetablebecause the name of thetabledoes > > not show up in any generated forms except, as you say, in appadmin. > > But appadmin is not quite the same of Django admin. It is designed for > > the administrator, not for the users. > > > Massimo > > > On Dec 2, 12:48 am, Kostas M <kmo...@hotmail.com> wrote: > >