-
Notifications
You must be signed in to change notification settings - Fork 683
Localization for python code
Jean Michault edited this page Mar 14, 2022
·
1 revision
To localize a text in a python file :
- verify that the file include a line
from .meyectl import lingvo
- pass your text as an argument to _() function, actually your text must be in esperanto. Use google translate to translate from english to esperanto if you don't know esperanto.
- example : logging.fatal(_('servilo haltis'))
- 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
Installation (deprecated)
- Install On Debian (deprecated)
- Install on Debian 11 (Bullseye) (deprecated)
- Install On Ubuntu (20.04 ‐ 21.10) (deprecated)
- Install On Raspbian Buster (deprecated)
- Install on Raspbian Bullseye (deprecated)
- Install On Fedora (deprecated)
- Install On Arch (deprecated)
- Install On Other Distros (deprecated)
- Install In Docker (deprecated)
- Manual Installation (deprecated)