LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

User Interface Localizer Bug in CVI 2012?

Hello,

 

since I'm using CVI2012 all text messages were not translated with the User Interface Localizer Tool.

If I try again to translate those words in the User Interface Localizer the program crashes (only with text messages).

 

Assert!

Programming error detected.

The error was detected on line 1361 of file 'uiobjecttree.c'.

Program aborting.

 

I guess it has to to do with the new functionality of tool tips.

When I disable the Control Tooltip in the UIR file for those message text items there is no more crash of the User Interface Localizer but still those words are not translated in the *.lwl files.

 

Any workaround for that?

 

 

Gunther

 

Using LW/CVI from 3.01 on.

 

0 Kudos
Message 1 of 6
(3,453 Views)

Hi Gunther,

do you mean that User Interface Localizer crashes when you load an uir with tooltips enabled?

Or do you mean it crashes when you save the lwl file?

 

Could you provide some files (uir, lwl and/or lwd) to reproduce the behavior?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 2 of 6
(3,439 Views)

Hi Vix,

 

please try to translate the default value of TEXTMSG in test.uir. As soon as you try to enter a character the program will crash. In my tests today it makes no difference if the tool tip is disabled or enabled the program crashes anyway.

 

Test.uir-translation-crash.jpg

 

So there is no chance with the current version of CVI to translate text messages?!

If you look in the lwd file you will see that there are already translations for every text message but the tool won't load them.

 

Hope this explains the problem in detail. If not don't hesitate to ask.

 

Gunther

0 Kudos
Message 3 of 6
(3,431 Views)

Hi Gunthill,

 

I could reproduce the behaviour you decribed with CVI 2012. I am going to investigate it some more and probably will need to forward it to the developers in the USA.

 

Thanks for bringing that up.

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 4 of 6
(3,413 Views)

By playing around I found a "workaround" that could help you whil this is not fixed:

 

* Open the UI Localization tool

* Load your uir

* Write at least one character (random) in the "Local language" box of the TEXTMSG

* Load your dictionary file

* The TEXTMSG are translated and you can write more text / correct the translation without CVI to crash

 

I hope this helps

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 5 of 6
(3,411 Views)

Hello,

 

thanks for your immediate help.

The "workaround" really helps.

Even better by loading the dictionary file the correct translation which already exists replaces the "dummy character" .

 

But I hope that the developers can fix this bug very soon. I have a lot of uir-files with text messages and every time I modified those uir-files I have to translate them. Then I have to look for TEXTMSG items to work around the bug before translating them. That's pretty time consuming.

 

Gunther 

0 Kudos
Message 6 of 6
(3,384 Views)