1. simplecodes
  2. Untitled project
  3. wtforms
  4. Pull requests

Pull requests

#53 Merged
Repository
ronhuang
Branch
default
Repository
simplecodes
Branch
default

Add translations for Traditional Chinese (zh_TW)

Author
  1. Ron Huang
Reviewers
Description

I have followed the Translation Submission Guidelines and created translations for Traditional Chinese (zh_TW). I have lightly tested my patch with Flask to make sure that validators output Traditional Chinese characters instead of English ones. The following is the sample form that I used:

from wtforms import BooleanField, TextField, validators
from wtforms.ext.i18n.form import Form

class RegistrationForm(Form):
    LANGUAGES = ['zh_TW', 'en']
    username = TextField('Username', [validators.Length(min=4, max=25)])
    email = TextField('Email Address', [validators.Length(min=6, max=35)])
    accept_rules = BooleanField('I accept the site rules', [validators.Required()])

Thanks.

  • Learn about pull requests

Comments (0)