Skip to content
Snippets Groups Projects
Commit 0d1d5aa5 authored by Jan Zerdik's avatar Jan Zerdik
Browse files

Slight changes in documentation according to suggestions.

(Redmine issue: #6127)
parent 729f223b
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ to following steps:
#. Tag event with new class using the :ref:`mentat-inspector.py <section-bin-mentat-inspector>`
module. This means, that in default installation you have to edit configuration
file ``/etc/mentat/mentat-inspector.py.conf`` and append new rule into the list
of existing ``inspection_rules``.
of existing ``inspection_rules``. Restart inspector.
#. Create subdirectory in ``/etc/mentat/event_classes/`` with same name as rule
and in it create files ``info.json``, ``email.j2``, ``hawat.j2``.
#. To ``info.json`` paste json object with ``label`` key that contains short description
......@@ -268,10 +268,12 @@ to following steps:
Following steps are required if you are using internationalization and are
also required if you are adding new language:
#. If you are adding classes in git repository, change working directory to its root,
or if you are adding in installed instance, change directory to folder with
your hawat installation. If you changed default installation paths, you also
need to change them in Makefile.
#. If you are adding classes in git repository, change working directory to its root.
If you are adding in installed instance, activate venv by running
``. /var/mentat/venv/bin/activate`` and change directory to folder with your hawat
installation. You can locate it by running ``python3 -c "import hawat; import os.path;
print(os.path.dirname(hawat.__file__))"``. If you changed default installation paths,
you also need to change them in Makefile.
#. Run ``make cpybabel-init INIT_LOCALE=lc`` where lc is code of your locales.
#. Add translations to ``<git_root>/conf/event_classes/<class_name>/translations/<lc>/LC_MESSAGES/messages.po``
or ``/etc/mentat/event_classes/<class_name>/translations/<lc>/LC_MESSAGES/messages.po``.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment