NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

SequenceView Column Caption Localization

Hello,

I am trying to localize (i.e. change the language text) of the names of the columns in my SequenceView control. I am able to localize all of the other controls on my UI except for the SequenceView control. I am using TestStand 3.0 and my UI is developed in LabWindows/CVI 7.1. I have come across a function, TSUI_SequenceViewLocalize, that appears to do what I need, however I cannot get it to work. I think my problem is that I do not know how to define the string tags in my .ini file. Here's a quick snapshot of what I have done:

1) In my LabWindows/CVI .c file I am calling the TSUI_SequenceViewLocalize function:

TSUI_SequenceViewLocalize(gMainWindow.SeqView, NULL, "JK_SEQVIEW");

2) In my .uir file, my sequence view control has the following columns: Name, Low Limit, High Limit, Measurement, and Status.

3) In my .ini file, which is properly placed in the language directory (i.e. I know this file is working as it localizes the other controls on my UI), I have created the following section for the sequence view control. I am only showing the string tag I am trying to use to change the caption (i.e. title) of the first column from "Name" to "Nombre":

[JK_SEQVIEW]
COLUMN_NAME_CAPTION = "Nombre"

So my question is, what am I doing wrong? I suspect it is probably the way I am defining the string tag. I have not seen any clear examples of string tags for the sequence view control. I did look at the UIControls.ini file but it is not clear to me how to differentiate between column names. Of course, I may also be way off on my approach of how to do this.

Thank you in advance for your time and help.

Thank you,
Jim
0 Kudos
Message 1 of 4
(3,349 Views)
Hello Jim,

You are on the right track using the TSUI_SequenceViewLocalize function. It sounds like the only trouble you are running into is with the tags.

The UIControlOperatorInterfaceStrings.ini file in \Components\NI\Language\English\ has the following tag names and strings that determine the column names in the SequenceView control of the built-in operator interfaces:

STEP_NAME = "Step"
STEP_DESCRIPTION = "Description"
STEP_EXECUTION = "Execution Flow"
STEP_STATUS = "Status"

For your other columns, this same syntax for the tag names may also work. Otherwise, I recommend using the Find capabilities of a text editor to search TestStandStrings.ini, UIControlStrings.ini, or the above mentioned INI for possible tag names.

I hope this helps.

Regards,

Eric M.
0 Kudos
Message 2 of 4
(3,322 Views)
Eric,

Thank you very much for your reply. That was my problem, the naming of the string tags. Once I saw your response, it pin pointed my problem right out. THanks again for your help!

Best Regards,
Jim
0 Kudos
Message 3 of 4
(3,315 Views)
Jim,

You are welcome! I am glad those tag names did the trick for you.

Regards,

Eric
0 Kudos
Message 4 of 4
(3,304 Views)