Localization
OpenPanel is localization ready and can easily be translated into any language.
Available Locales
OpenPanel is shipped with the following locales:
- English (EN)
- French (FR)
- German (DE)
- Turkish (TR)
How to translate
To translate OpenPanel to another language, for example Serbian:
- Navigate to the OpenPanel directory using the "cd" command:
bash
cd /usr/local/panel
- Initialize a new translations directory for your locale:
bash
pybabel init -i messages.pot -d translations -l sr
- Enter the newly created locale directory and edit the messages.po file. For each
msgid
write the translation in themsgtr
tag, for example:
bash
#: templates/base.html:237
msgid "Websites"
msgstr "Sajtovi"
- After you are finished translating, you need to compile the edited
.po
file to.mo
in order to be used by the panel:
bash
cd /usr/local/panel && pybabel compile -d translations
Thats it, your new locale is added and ready to be used.
INFO
If you would like to share your translation with the OpenPanel community, please email the content of your locale folder /usr/local/panel/translations/<LOCALE-HERE>/LC_MESSAGES/
to support@openpanel.co