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

Documentation of adding translations for new event classes.

(Redmine issue: #6127, #6222)
parent 09103478
No related branches found
No related tags found
No related merge requests found
......@@ -264,9 +264,18 @@ to following steps:
contains same data like in ``email.j2``. ``dafault_class`` contains name of default
class that is set as ``default_event_class`` directive in ``/etc/mentat/core/reporting.json.conf``.
``is_authenticated`` contains information about user log in status to system.
#. If you are using internationalization, execute locally on the server babel
command line utility to scan for new messages, provide translations and compile
message catalogs.
TODO: This step requires implementation of locally available makefile, coming
soon.
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.
#. 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``.
#. Run ``make cpybabel-compile``. Restart your hawat instance if you are adding
to installed system.
#. If you changed data for existing event class run ``make cpybabel-update``, update
your ``messages.po`` file and run ``make cpybabel-compile``.
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