Skip to content

translation guide

Jan Poctavek edited this page Aug 20, 2020 · 2 revisions

Translating Danube Cloud interface into a new language is quite easy. We are using Django translations.

Steps to create new lang

  • generate translation files (example language: Italiano)
esdc-ce# cd gui
gui# ../bin/ctl.sh makemessages -l it
gui# ../bin/ctl.sh makemessages -e js -l it  -d djangojs
  • add translation to settings
gui# git diff ../core/settings.py
 LANGUAGES = (
     ('en', 'English'),
+    ('it', 'Italiano'),
  • edit translations in locale/it/LC_MESSAGES/django.po and locale/it/LC_MESSAGES/djangojs.po

  • compile translations

../bin/ctl.sh compilemessages
  • restart Danube Cloud

  • go to user profile settings and choose a new translation

  • done

Clone this wiki locally