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

locale: Only try to load locales that exist #2971

Merged

Conversation

bdarnell
Copy link
Member

@bdarnell bdarnell commented Jan 9, 2021

Prevents errors logged at startup when the translation directory is shared with other projects.

Updates #2956 to fix formatting for CI.

Fixes #2954
Closes #2956

spaceone and others added 2 commits November 19, 2020 20:11
…g translation files

Every not existing translation file for the existing locales logged an error message:
Cannot load translation for 'ps': [Errno 2] No such file or directory: '/usr/share/locale/ps/LC_MESSAGES/foo.mo'
@bdarnell bdarnell merged commit 591f247 into tornadoweb:master Jan 9, 2021
@bdarnell bdarnell deleted the only-initialize-existing-locales branch January 9, 2021 20:06
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.

"Cannot load translation for ..." error messages
2 participants