It odes not work that way. It will translate the string before the substitution:
> python web2py.py -S welcome -M -N >>> T.force('it') >>> import os >>> print os.path.getsize('applications/welcome/languages/it.py') 4833 >>> T('%(test)s') % dict(test=1) '1' >>> print os.path.getsize('applications/welcome/languages/it.py') 4857 >>> T('%(test)s') % dict(test=2) '2' >>> print os.path.getsize('applications/welcome/languages/it.py') 4857 >>> T('%(test)s') % dict(test=3) '3' >>> print os.path.getsize('applications/welcome/languages/it.py') 4857 as you can see the file size only grows the first time then it does not grow any more. On Dec 4, 6:43 pm, Pepe Araya <pepea...@gmail.com> wrote: > Thanks! > > Massimo, I noticed that this line of *gluon/sqlhtml.py* > > 1754: message = error or T('%(nrows)s records found') % dict(nrows=nrows) > > add a new entry in the language file for every different search result. ("1 > records found", "2 records found" .... ) > > I think that %(nrows)s should be outside the T() helper. > > regards! > > pepe.