rakhimov / scram

Probabilistic Risk Analysis Tool (fault tree analysis, event tree analysis, etc.)
https://scram-pra.org
GNU General Public License v3.0
131 stars 54 forks source link

GUI: Present interface languages in sorted order #242

Closed rakhimov closed 6 years ago

rakhimov commented 6 years ago

The current order of the interface languages is hard-coded and coupled with internal language indices. This makes addition of new languages a bit cumbersome:

rakhimov commented 6 years ago

The new language addition process is simplified to a single step: add the language ts file name into CMake script. The available translations are discovered at runtime by the GUI. This decouples translations from the GUI package so that they can be distributed/installed separately (no compile time hard coding).