itom-project / itom

itom core repository
https://itom-project.github.io/
Other
13 stars 5 forks source link

itom can now also set its language based on the operating system settings #287

Closed magro11 closed 1 month ago

magro11 commented 2 months ago

Usually, the itom language must be explicitely set in the itom property dialog, while english is the default. Now, one can also select operating system as language. Then the current language of the operating system is read and an appropriate translation file for itom is searched. If not found, the fallback is the default language english.

For instance, itom also comes with a German translation with the generic code qitom_de. This file will then be found if the operating system language is German with all sub-specifications, like a Swiss or Austrian dialect, e.g. de, de_DE, de_AT, de_CH. For more information see the Qt documentation of QTranslator::load.

This PR is related to point 2 of the issue #285

twip-os commented 2 months ago

Perfect, this is exactly what we needed. Thank you very much.