Advice on translating Auth related stuff

33 views
Skip to first unread message

Alan Etkin

unread,
Apr 4, 2026, 8:46:05 AM (9 days ago) Apr 4
to py4web
Hi

I checked issues #718 and #719 there are some workarounds to solve the problem with authentication forms, as they do not support auto-translation out of the box.

I want to translate any relevant login/register text in my app project. Can this be solved subclasing Auth at the model or is there something else to look at?

Thanks

Alan

Alan Etkin

unread,
Apr 5, 2026, 10:12:30 AM (8 days ago) Apr 5
to py4web
Found a way to "internationalize" Auth:

in common.py, after auth instantiation, overwrote auth.param.messages and passed to T any string value from the original dict at auth.py.

Perhaps it would be possible that py4web support T in core utils like Auth, Grid and Form, not sure about how, but I'd like to help with that.

Regards

Alan
Reply all
Reply to author
Forward
0 new messages