The good news is that you can do it, the bad news is that it's not easy :) As "User" is actually the name of your Model Class there is no easy way to translate it.
The easiest way I can think of is to use the template patches feature ( https://github.com/TurboGears/tgext.pluggable#patching-templates ) and replace content of .crud_edit > h2 (for /edit, each template will probably require a different selector) with a template that has ${_(model)} then you can add "User" in your .po file and translate it. On Sun, Dec 6, 2015 at 2:47 AM, Jean-Denis Girard <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi list, > > I'm trying to use tgext.admin for the fist time. I was able to achieve > more or less what I wanted by reading the docs or code, and I like this > facility. > > One thing I could not do is to change the text of the tables, on the > admin_* pages. For example, the "User" class is displayed as User in the > index or list new / edit forms. I would like to display French > "Utilisateur", or even better customize text on links and page titles. > Is it doable? > > Also I have seen that the widget generated by tgext.admin are i18n ready > (eg delete confirmation is l_('Are you sure?')): what is the proper way > to translate these strings, as they are not included with "python > setup.py extract_messages"? > > > Thanks, > - -- > Jean-Denis Girard > > SysNux Systèmes Linux en Polynésie française > http://www.sysnux.pf/ Tél: +689 40.50.10.40 / GSM: +689 87.79.75.27 > > > -----BEGIN PGP SIGNATURE----- > > iEYEARECAAYFAlZjk7cACgkQuu7Rv+oOo/i6gwCfQgplVsu66mEh56XXEhuTVmwa > ucQAn37a4mEaiOTDNiA/R7hvRaKm4eLJ > =W/ER > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

