LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview real-time switch between different languages

  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!

0 Kudos
Message 1 of 7
(1,889 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(1,863 Views)

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

kongmingpeng_0-1629636950224.png

 

 

0 Kudos
Message 3 of 7
(1,845 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,839 Views)

Hi  
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

0 Kudos
Message 5 of 7
(1,831 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(1,827 Views)

Thank you very much for your insight

I will try VIPM to find the relevant toolkit and see if it can be implemented

0 Kudos
Message 7 of 7
(1,819 Views)