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

Enable Django i18n of first-party strings. #1386

Merged
merged 3 commits into from
May 6, 2020
Merged

Enable Django i18n of first-party strings. #1386

merged 3 commits into from
May 6, 2020

Conversation

toolness
Copy link
Collaborator

@toolness toolness commented May 6, 2020

This enables internationalization of Django strings and ensures that compilemessages is called prior to deployment.

Unrelatedly, it also requires first and last name to be filled out in the NoRent.org onboarding flow (until now they were optional).

Comment on lines +23 to +26
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['first_name'].required = True
self.fields['last_name'].required = True
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, this is unrelated to internationalization but I realized that we're not actually requiring this information in our form!

@toolness toolness changed the title Enable Django internationalization. Enable Django custom message catalog i18n. May 6, 2020
@toolness toolness changed the title Enable Django custom message catalog i18n. Enable Django i18n of first-party strings. May 6, 2020
@toolness toolness merged commit 8b95335 into master May 6, 2020
@toolness toolness deleted the django-i18n branch May 6, 2020 12:37
@toolness toolness mentioned this pull request May 6, 2020
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant