Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor KNOWN_LANGUAGES into {DEV,PROD}_LANGUAGES
Remove KNOWN_LANGUAGES in favor of DEV_LANGUAGES and PROD_LANGUAGES which are lazily used in LANGUAGES_URL_MAP and LANGUAGES depending on the value of DEV. DEV_LANGUAGES are autogenerated from the contents of the locale/ directory in the root of the project. PROD_LANGUAGES should be maintained manually. In addition, the commit removes the RTL_LANGUAGES setting which wasn't used anywhere. Django's default value for LANGUAGES_BIDI is sufficient and used by django.utils.translation.get_language_bidi.
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,5 @@ MANAGERS = ADMINS | |
|
||
|
||
DEBUG = TEMPLATE_DEBUG = True | ||
|
||
DEV = True |