Hello, I have a project that has a lot of dialogs.
In the constructor of the MainWindow I check a file in order to set the language. If, e.g. the language is Spanish the program turns to Spanish, if it is English it turns into English etc. The thing is that I have to do this in every single constructor of every dialog in order to check the language and do the appropriate changes in every dialog.
Is it possible to use a all-files-global variable ? I don't want to perform the same check several times.
(e.g.
//this will be at the constructor of the MainWindow (mainwindow.cpp)
if(the.file.says.the.program.to.be.english) english=1 //from here the other constructors of the other dialogs will check if english==1 and if so they'll do the changes
//this will be at the constructor of the MainWindow (mainwindow.cpp)
if(the.file.says.the.program.to.be.english) english=1 //from here the other constructors of the other dialogs will check if english==1 and if so they'll do the changes
To copy to clipboard, switch view to plain text mode
)
Thx in advance
Bookmarks