Issue #9 new

i18n form zh_cn BUG

kai wang
created an issue

my code {{{

!python

import formencode formencode.api.set_stdtranslation(domain="FormEncode", languages=["zh_CN"])

class SimpleFESchema(Schema):

name = validators.NotEmpty()

from pyramid_simpleform import Form request = testing.DummyRequest()

request.method = "POST"
request.POST['name'] = ''
form = Form(request, SimpleFESchema)
form.validate()
print form.errors,not(form.validate()),form.is_validated,'title' in form.errors

}}}

but it seems like still be English language

result is u'Missing value', 'name':

Comments (0)

  1. Log in to comment