Skip to content

Translation and internationalization

jpmckinney edited this page Dec 15, 2012 · 14 revisions

Getting Started

Follow the installation instructions from the README

mkvirtualenv candideit
git clone https://github.com/ciudadanointeligente/candidator.git
cd candidator
pip install -r requirements.txt
python manage.py test elections
python manage.py syncdb

If you run python manage.py runserver and open http://127.0.0.1:8000/ you should see the Spanish version in your browser.

Create a local_settings.py file, and edit settings as appropriate:

cp local_settings.py.example local_settings.py

Creating a new translation

Change en to the ISO 639-1 code for your language:

django-admin.py makemessages -l en

This will either create or update the django.po in locale/en/LC_MESSAGES. You can edit the .po file by hand or with a variety of editors. You may prefer to use Transifex to translate the .po file.

Clone this wiki locally