-
Notifications
You must be signed in to change notification settings - Fork 10
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
(UPDATE) add explicit language codes validation in favor of keeping default languages ordering in project #52
base: master
Are you sure you want to change the base?
Conversation
…efault languages ordering in project
if len(available_languages) != len(set(available_languages)): | ||
raise ImproperlyConfigured( | ||
"Languages should not contains duplicates: {}".format(available_languages) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message should mention the setting a user should adjust in order to fix it (something like MODELTRANS_AVAILABLE_LANGUAGES or LANGUAGES should not contain duplicates
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jieter can you looks at this PR please?
8801d90
to
013fa26
Compare
013fa26
to
fef6923
Compare
fef6923
to
fce5f72
Compare
baa56d2
to
d8e03fc
Compare
No description provided.