Persian translation

35 views
Skip to first unread message

Mohammad Rostami

unread,
Mar 30, 2021, 2:47:23 PM3/30/21
to web2py-users
Hello friends. I had a few questions, thank you for your help.

1. Is web2py still supported?
2. 2- Is web2py more used recently or Django? Because I feel this framework is very strange.
3- How do I add a Persian translation to this framework?I used the T function according to the instructions, but unfortunately it did not work.

黄祥

unread,
Mar 30, 2021, 7:15:17 PM3/30/21
to web2py-users
3- How do I add a Persian translation to this framework?I used the T function according to the instructions, but unfortunately it did not work.

- take a look at languages folders, then copy en.py, paste and rename it with  persian langcode
- you can start to translate what inside that file
- then you can put in controllers or models 
e.g.
T.force('en') # change en with persian langcode

best regards,
stifan

Mohammad Rostami

unread,
Apr 1, 2021, 5:25:20 AM4/1/21
to web2py-users
Thanks Stifan.
Reply all
Reply to author
Forward
0 new messages