itom-project / itom

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

Handling operatingsystem language setting in additional places. #296

Closed twip-os closed 3 weeks ago

twip-os commented 3 weeks ago

Until now the new setting to retrieve the language from the operating system was only supported in the main applications. UiItems and AddIns were not translated then. I added the same code as in mainApplication.cpp to the other places where the language is retrieved.

It would probably be better to have a function to retrieve the language but I did not know where this could be implemented to be available for all files and to have access to the settings.

Cheers Thomas

magro11 commented 3 weeks ago

OK, this looks good. I agree that a common method would be better, however there is currently no good place for this. Due to the small amount of lines of code, I would let it like it is now.