Multi language Support - foldynl/QLog GitHub Wiki

QLog has a multi-language support. The language is set based on the OS environment setting.

Currently, following languages are implemented:

  • English
  • Czech
  • German

The language can also be set manually via OS's locales or input parameters. An example below shows, how the language can be changed manually via Linux OS environment setting:

LANG=cs_CZ.UTF-8 ./qlog (for Czech Language)

LANG=de_DE.UTF-8 ./qlog (for German Language)

For Windows platform, set the LANG environment variable for application or use:

set LANG=cs_CZ.UTF8
qlog.exe

The language can also be set via QLog's input parameters. QLog contains two input parameters to control the language:

-t, --translation <path/QM-filename>

-t is implemented mainly for translators who want to test their translations that are not part of QLog. Just enter the absolute or relative path and name of the QM file with the translation, and this translation file will then be used by QLog, e.g., -t /home/qloguser/qlog_cs.qm.

-l, --language <code>

The -l parameter can set a language. If the parameter is set, then the OS environment setting is ignored, e.g., -l cs or -l cs_CZ.

QLog includes built-in translation files. It is also possible to place the translation files outside of QLog. QLog searches the following directories for translation files.

OS Type Directories
Linux application folder/i18n
~/.local/share/hamradio/QLog/i18n
/usr/local/share/hamradio/QLog/i18n
/usr/share/hamradio/QLog/i18n
build-in QLog translation files
Linux (flatpak) effectively only ~/.var/app/io.github.foldynl.QLog/data/hamradio/QLog/i18n
Windows <APPDIR>/i18n
C:/Users/<USER>/AppData/Local/hamradio/QLog/i18n
C:/ProgramData/hamradio/QLog/i18n
<APPDIR>/data/i18n
<APPDIR>/data/hamradio/QLog/i18n
MacOS TODO - must be confirmed
<APPDIR>/i18n
~/Library/Application Support/hamradion/QLog/i18n
/Library/Application Support/hamradio/QLog/i18n
<APPDIR>/../Resources/i18n

The external translation files must be named in this format: qlog_<lang code>.qm, where <lang code> can be in short or long form, e.g., cs or cs_CZ.

QLog is a community project. Sharing your translations with the community helps us grow and improve together. Therefore, every GitHub pull request (PR) with translation files will be highly appreciated.

Not only language but also date and time format and distance unit are controlled by OS environment settings. If you wish to use a date and time format different from your language's default, please refer to the following examples:

Date in ISO format (YYYY-MM-DD):

LC_TIME=en_SE.UTF-8

The distance unit is controlled via LC_MEASUREMENT. All Non-metric units are in miles, and the metric unit is in km.

⚠️ **GitHub.com Fallback** ⚠️