On Mar 13, 2011, at 10:33 AM, Massimo Di Pierro wrote: > > How do you know there is no need for it? Did you look at what is being > re-written? It should only try to re-write if you have new text > needing translation.
José mentioned restricted permissions. If the write fails, might it keep trying? The only indication of a write failure is a log entry. > > Massimo > > On Mar 13, 10:56 am, José L. <jredr...@gmail.com> wrote: >> Hi, >> running web2py in a directory with restricted permissions I've checked that >> anytime a translation is used, web2py try to re-write the translation >> string: >> >> /var/lib/python-support/python2.5/gluon/languages.py(284)translate() >> -> write_dict(self.language_file, self.t) >> >>> /var/lib/python-support/python2.5/gluon/languages.py(95)write_dict() >> >> i.e.: >> As far as I can check, method translate, from class translator at >> gluon/languages.py , always call method write_dict, and it looks there's no >> need to do it. >> >> is it a bug ? >> >> Regards. >> José L.