Modify Django's translation library, such that the gettext family of
functions return an empty string when attempting to translate a
falsey value. This overrides the default behavior [0]:
> It is convention with GNU gettext to include meta-data as the
> translation for the empty string.
This patch provides a holistic solution to replace the current piecemeal
approach [1][2].
Affected Methods:
- gettext
- ugettext
[0] https://docs.python.org/2.7/library/gettext.html#the-gnutranslations-class
[1] bad803e4
[2] https://github.com/edx/edx-platform/pull/4653
| Name |
Last commit
|
Last update |
|---|---|---|
| .tx | Loading commit data... | |
| cms | Loading commit data... | |
| common | Loading commit data... | |
| conf/locale | Loading commit data... | |
| docs | Loading commit data... | |
| lms | Loading commit data... | |
| pavelib | Loading commit data... | |
| requirements | Loading commit data... | |
| scripts | Loading commit data... | |
| test_root | Loading commit data... | |
| vendor_extra/tinymce | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .jshintrc | Loading commit data... | |
| .ruby-gemset | Loading commit data... | |
| .ruby-version | Loading commit data... | |
| AUTHORS | Loading commit data... | |
| Brewfile | Loading commit data... | |
| CHANGELOG.rst | Loading commit data... | |
| CONTRIBUTING.rst | Loading commit data... | |
| Gemfile | Loading commit data... | |
| Gemfile.lock | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.md | Loading commit data... | |
| manage.py | Loading commit data... | |
| mongo_indexes.md | Loading commit data... | |
| package.json | Loading commit data... | |
| pavement.py | Loading commit data... | |
| pylintrc | Loading commit data... | |
| setup.cfg | Loading commit data... | |
| setup.py | Loading commit data... |