Langauge Support - DeeEmm/DIY-Flow-Bench GitHub Wiki

A language file is used to translate the user messages and Web-UI fields. The active language file is selected in the configuration.h file prior to compile time.

#define LANGUAGE_FILE "language/EN_Language.h"

Currently we have support for the following languages

  • English (EN_Language.h)

Creating a language translation file

To provide support for additional languages, simply copy an existing language file and save with the international standard language code as a file name prefix. Additional languages should be saved to the language/ folder, for example

language/DE_Language.h

Translation how-to

The code uses constant strings that are defined within the language file, for example

#define LANG_WARNING                "Warning!"

The value within the quotes is the value that should be translated, for example (DE_Language.h)

#define LANG_WARNING                "Warnung!"

Submitting language files

If you have created a translation file, please create a pull request to have your changes merged into the main repo.

If you do not know how to do this, you can also create a discussion thread and use code tags to share your language file. We can then integrate it into the repo for you.