Translation

openCountdown features a basic translation system. We currently support two languages:

  • German

  • English

There is also another “language” with is called “proto-black”. It is a language made up of black blocks (). This is being used while adding new strings from the UI. This allows you to see untranslated easily.

Every language is defined by a “language” file in the JSON-Syntax. This file contains all translations as well as metadata. The metadata looks like this:

"_metadata": { "lang": "de", "version": "1.0.0", "authors": ["TheGreydiamond"], "comment": "" }

It contains four simple components:

lang: The short form of the language.
version: The current version of the language, this may increase over time.
authors: A list containing the name of everyone who as contributed.
comment: An optional comment with information about the language.

These need to be included in every language file.

How to create a new language

  1. Copy an already existing file (I recommend something like proto-black) in the lang folder

  2. Name the file and update metadata

  3. Update all translations