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

Fixed #26046 -- Fixed a crash with translations and Django-unknown language code #5940

Merged
merged 1 commit into from Jan 6, 2016

Conversation

claudep
Copy link
Member

@claudep claudep commented Jan 6, 2016

Thanks Jens Lundstrom for the report.

@@ -117,6 +117,9 @@ def __init__(self, language):
# default lang should have at least one translation file available.
raise IOError("No translation files found for default language %s." % settings.LANGUAGE_CODE)
self._add_fallback()
if self._catalog is None:
# No catalogs found for this language, set an empty catalog
Copy link
Member

Choose a reason for hiding this comment

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

add period?

…nguage code

Thanks Jens Lundstrom for the report and Tim Graham for the review.
@claudep claudep merged commit 632a9f2 into django:master Jan 6, 2016
@claudep claudep deleted the 26046 branch January 6, 2016 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants