@Paolo in apps welcome in models/db.py add T.force('ru')
go admin db ../welcome/appadmin/select/db?query=db.auth_user.id>0 oops Internal errorTicket issued: welcome/178.176.112.38.2018-03-11.19-36-21.63a51c38-0dec-4c13-aa02-3bf882b632e5 <https://url2bot.tk/admin/default/ticket/welcome/178.176.112.38.2018-03-11.19-36-21.63a51c38-0dec-4c13-aa02-3bf882b632e5> If the browser language is English, everything works fine воскресенье, 11 марта 2018 г., 13:47:04 UTC+3 пользователь Paolo написал: > > @nbush, could you post a code snippet to reproduce the error? Which web2py > version have you tested? > > On Wednesday, March 7, 2018 at 11:31:14 PM UTC+1, Nbush wrote: >> >> Pluralizaiton error. (test on python 2.7.13) >> >> <type 'exceptions.UnicodeDecodeError'> 'ascii' codec can't decode byte >> 0xd0 in position 0: ordinal not in range(128) >> Function argument list >> >> (self=<gluon.languages.translator object>, >> message='%{!\xd0\xb2\xd1\x8b\xd0\xb1\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb0[0]} 1 >> %{\xd0\xb7\xd0\xb0\xd0\xbf\xd0\xb8\xd1\x81\xd1\x8c[0]}', symbols=(1,)) >> Code listing >> >> 929. >> 930. >> 931. >> 932. >> 933. >> 934. >> >> 935. >> 936. >> 937. >> 938. >> >> part = regex_plural_dict.sub(sub_dict, s) >> if part == s: >> return m.group(0) >> return part >> message = message % symbols >> message = regex_plural.sub(sub_plural, message) >> >> return message >> >> def translate(self, message, symbols): >> """ >> >> Variables >> message '%{!\xd0\xb2\xd1\x8b\xd0\xb1\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb0[0]} >> 1 %{\xd0\xb7\xd0\xb0\xd0\xbf\xd0\xb8\xd1\x81\xd1\x8c[0]}' >> global regex_plural <_sre.SRE_Pattern object> >> regex_plural.sub <built-in method sub of _sre.SRE_Pattern object> >> sub_plural <function sub_plural> >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.