Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mentat Test 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Mentat Test 3
Commits
be930529
Commit
be930529
authored
4 years ago
by
Jan Zerdik
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/sphinx/_doclib/reporting.rst
+14
-5
14 additions, 5 deletions
doc/sphinx/_doclib/reporting.rst
with
14 additions
and
5 deletions
doc/sphinx/_doclib/reporting.rst
+
14
−
5
View file @
be930529
...
...
@@ -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``.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment