#53 Merged
Repository
ronhuang ronhuang
Branch
default
Repository
simplecodes simplecodes
Branch
default

Add translations for Traditional Chinese (zh_TW)

Author
  1. Ron Huang avatarRon 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.

Comments (0)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.