-
Notifications
You must be signed in to change notification settings - Fork 663
Localization for html templates
Jean Michault edited this page Mar 14, 2022
·
1 revision
motioneye use jinja templates to generate html pages.
- pass your text as an argument to _() function in a jinja block, actually your text must be in esperanto. Use google translate to translate from english to esperanto if you don't know esperanto.
- example :
<span class="settings-item-label">{{ _("Pasvorto") }}</span>
- you can see more examples in templates/main.html
- example :
- run
make
in motioneye directory - edit the po files for languages you are able to translate, they are named locale/xx/LC_MESSAGES/motioneye.po . You can edit them with a text editor, or better with dedicated software like poedit or virtaal.
- rerun
make
to take your translation changes into account
home | installation | faq