08-22-2021 02:12 AM
I append AppLanguage=English to the executable file of the application and restart the software to find that the built-in language has changed to English, but I would prefer not to have to restart the software to do this.(Labview2018)
I want to append AppLanguage=English to the executable so that the software can immediately switch the language instead of restarting the software, so that I can dynamically change the file and dynamically switch the language of the software
Any help would be appreciated!
08-22-2021 05:01 AM
Hi kongmingpeng,
@kongmingpeng wrote:
I append AppLanguage=English to the executable file of the application and restart the software to find that the built-in language has changed to English, but I would prefer not to have to restart the software to do this.(Labview2018)
Which "executable file" of which "application" do you (try to) edit by "appending" some text?
Which "software" do you need to restart to take some new settings?
Mind to provide more information on your problem?
08-22-2021 07:57 AM
Hi GerdW
Thanks for your reply.
I used Labview2018 to generate an application. There is an executeFile in the application directory. I append AppLanguage=English to this file and restart the software. The language in the software has changed to English. But every time I modify executeFile I have to restart the program to make the language change and I was wondering if I could do that without restarting the program.
08-22-2021 08:13 AM
Hi kongmingpeng,
@kongmingpeng wrote:
I used Labview2018 to generate an application.
But every time I modify executeFile I have to restart the program to make the language change and I was wondering if I could do that without restarting the program.
It's your own application and you made your own executable from that app.
So its also your job to implement the desired behaviour…
Either provide an option to read this config file on user action or even provide a runtime menu with an option to choose the UI language!
08-22-2021 08:24 AM
Hi GerdW
Thank you for your advice.
I understand what you mean, but my executable has a menu option to select the language. But every time I choose a different language I'm going to change the executefile and the language of the software hasn't changed. How do you use the AppLanguage for executeFile when you read it back? What I see now is that the AppLanguage seems to be an NI internal automatic setting
08-22-2021 08:34 AM
Hi kongmingpeng,
@kongmingpeng wrote:
What I see now is that the AppLanguage seems to be an NI internal automatic setting
Thanks for that comment, I never used that ini key before…
As long as you rely on this ini key you need to restart your application!
When you want to change language in your app without restarting you need to implement this on your own! There are toolkits available in VIPM to assist you in this task…
08-22-2021 08:54 AM
Thank you very much for your insight
I will try VIPM to find the relevant toolkit and see if it can be implemented