Skip to main content

Application that provides EDItEUR Thema categories, and translations for the headers.

Project description

A Django application that provides EDItEUR Thema categories. It supplies translation to all languages EDItEUR supports, so if you are using Django’s internationalization in your project, you will also get translation.


This application requires:

  • django

  • mock

  • polib

  • xlrd


Install the application from Pypi:

$ pip install django-thema

Add the application to your Django project:


Migrate the application

$ ./ migrate thema

You should populate the model with the data in EDItEUR database, for this use the command populate_thema_categories

$ ./ populate_thema_categories

Also, please make sure the tests passed smoothly

$ ./ test thema

If any test fails, then you could end up with missing data in your database or malfunction of the application.

How it works

django-thema offers a model ThemaCategory, each instance is a Thema category.

>>> from thema.models import ThemaCategory
>>> thema_aba = ThemaCategory.objects.get(code='ABA')
>>> thema_aba.header
'Theory of art'

Getting translation:

>>> from django.utils.translation import activate
>>> activate('es')
>>> thema_aba.local_header
'Teoría del arte'
>>> activate('da')
>>> thema_aba.local_header

Note: the translation will work only if you have enabled Django’s internationalization in your project.

Getting the parent category:

>>> thema_aba.parent
<ThemaCategory: AB>

Supported languages

The application supports the languages covered by EDItEUR:

  • Arabic

  • Danish

  • English

  • Spanish

  • French

  • German

  • Hungarian

  • Italian

  • Japanese

  • Lithuanian

  • Norwegian

  • Polish

  • Portuguese

  • Swedish

  • Turkish

We don’t do any translation, we just use the data provided by EDItEUR, so if you find a missing translation or a translation error, please contact EDItEUR directly.


  • Dannier Trinchet Almaguer

  • Mikkel Munch Mortensen

  • Vladir Antonio Parrado

  • Søren Howe Gersager

  • Tobias Ley


To submit bugs, feature requests, submit patches, please use the official repository.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-thema-1.2.8.tar.gz (20.8 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page