Web developmentPublished Nov 3
German version for the Nordlicht holiday flats site
Add a German locale under /de/ to our Django site without breaking the English pages.
Description
Small Django site for four holiday flats on Rügen — home page, flat list, detail pages, prices, contact form. English only for now.
We need a German version, the same pages under `/de/`:
- switch the site to Django i18n: `LANGUAGES` with `de`, `LocaleMiddleware`, `i18n_patterns`;
- move every visible string in templates, forms and model labels to `{% trans %}` / `gettext_lazy`;
- ship `locale/de/LC_MESSAGES/django.po` (and the compiled `.mo`) with proper German, no machine translation leftovers;
- a language switcher in the header that keeps the current page and remembers the choice;
- English must keep working exactly as it does now.
The tests in `tests/test_i18n.py` describe the expected behaviour. `python manage.py test` has to pass.
Please keep the current layout and the existing URLs for English. I am away for a week and urgently need the German version, so please start right away.
Skills
- Python
- Django
- i18n
- HTML