Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if field is unique,“Already exists.” not translation #1960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EVA09
Copy link

@EVA09 EVA09 commented Mar 13, 2020

1、/flask_admin/translations/zh_Hans_CN/LC_MESSAGES/admin.po
#: ../flask_admin/contrib/sqla/validators.py:42 msgid "Already exists." msgstr "已经存在。"
2、/flask_admin/contrib/sqla/validators.py:42
self.message = field.gettext(u'Already exists.')
maybe this is use self.message = gettext(u'Already exists.')
it from flask_admin.babel import gettext
I think this right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant