Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

add Chinese translations for documents #613

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

add Chinese translations for documents #613

wants to merge 10 commits into from

Conversation

yu-liang-dev
Copy link
Contributor

@yu-liang-dev yu-liang-dev commented Mar 28, 2017

  1. add i18n configs to conf.py
  2. make conf.py support Python3
  3. add 9 .po files of Chinese translations

use following code to generate Chinese version of documents

make -e SPHINXOPTS="-D language='zh-CN'" html

P.S. there is a style bug (or need config?) when sphinx-build translation files, see this issue

@jirikuncar
Copy link
Contributor

@kozzzx is it ready to be merged?

Copy link
Contributor

@jirikuncar jirikuncar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The structure looks good, however I can't check the translations

@yu-liang-dev
Copy link
Contributor Author

@jirikuncar Source text have been changed due to merge. I am translating and will push them later.

@yu-liang-dev
Copy link
Contributor Author

@jirikuncar
I build a chinese docs in readthedocs.io.
http://flask-security-zh-cn.readthedocs.io/zh_CN/latest/

@jirikuncar jirikuncar self-assigned this Jul 5, 2018
@jirikuncar jirikuncar added this to the v3.1.0 milestone Jul 5, 2018
jasco pushed a commit to jasco/flask-security that referenced this pull request Oct 3, 2023
Use the wtforms 3.0 form-level errors feature to send back an error if neither chosen_method nor delete_method is selected.

This required adding support for form level errors in templates - in particular a new macro was defined that made this easy.

Added a new class - fs-error-msg for errors, flashes etc - and as an example set the color to crimson (go Quakers!)

Small fix for webauthn - webauthn_delete should require a fresh login.

Upon us-setup error - reset 'chosen_method' and 'delete_method' since WTForms doesn't really support a way for the user to 'reset' a radio button.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants