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.
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.
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