Support for using the CLDR core territories data in Django
Python Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
locale
.gitignore
LICENSE
README
__init__.py
cldr_territories_en_to_py.py
cldr_territories_to_po.py
data.py
fields.py
for_django.sh
initialize.sh
models.py

README

- Download newest core.zip from http://unicode.org/Public/cldr/
- Unzip in cldr_countries directory
- Run the following commands to initialize the cldr_countries application:

./cldr_territories_en_to_py.py > data.py

- Run the following commands to create a swiss german translation:

mkdir locale
django-admin.py makemessages -l de
./cldr_territories_to_po.py de de_CH > locale/de/LC_MESSAGES/django.po
django-admin.py compilemessages