Skip to content

Creating a Lynis translation

Michael Boelen edited this page Sep 17, 2017 · 5 revisions

Translating Lynis

Introduction

Translating Lynis is a matter of creating a new language file and translate commonly used text strings.

Your current language

Detect which language and locale you are using:

echo $LANG

echo $LANGUAGE

Now determine what Lynis detected or is configured for: lynis show language

The two-letter string determines the language and can also be configured in your custom.prf (language=XY). By manually forcing the language to your new language, you can test if the translation is working.

Translation steps

  • Step 1. To start the translation, fork the GitHub project (click on Fork, at the top).
  • Step 2. Go to db/languages
  • Step 3. Copy the "en" file and give the new file the short two-letter name of your language
  • Step 4. Translate the text strings (just the text between the quotes)
  • Step 5. Remove any '#' at the beginning of the line for translated strings
  • Step 6. Create a pull request - https://help.github.com/articles/creating-a-pull-request/
Clone this wiki locally