Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.68 KB

translating-report-messages.rst

File metadata and controls

42 lines (28 loc) · 1.68 KB

Translating the report messages

This section describes how to translate the Artemis report messages described in generating-reports.

The translations reside in:

  • artemis/reporting/modules/nuclei/translations/nuclei_messages/{language}.py - this file contains Nuclei message translations,
  • .po files in respective modules in artemis/reporting/modules/ - these files contain translations of all other messages.

    If the original messages changed, update the .po files by running:

    ./scripts/update_translation_files

    and then put the translations in the respective .po files. The compilation will happen automatically when building the report messages.

Adding a new language

If you want to support a new language:

The following file need to be created manually when adding support for a new language: artemis/reporting/modules/nuclei/translations/nuclei_messages/{language}.py - this file contains Nuclei message translations.

If you want to add or modify all other translation messages, first update the translation files by using:

./scripts/update_translation_files

and then put the translations in the respective .po files. The compilation will happen automatically when building the report messages.

You don't have to translate everything - pull requests with partial translations are also welcome!