cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

State definition localization in button bar

jensc
17-Peridot

State definition localization in button bar

Hello Community,

 

I am in need of localizing a state definition used in a button bar in a 9.3.5 platform.

Currently it looks like this:

jensc_0-1683276948235.png

As you can see, it is now in English.

If I wanted to change this text to another language, how could I do that?

 

My first though was to just edit the State definition used in this widget like so;

from:                                                                         to:

jensc_1-1683277017112.png             jensc_2-1683277049208.png

But it seems like this doesn't work.

Is there any other way I could do this?

 

Any help with this would be highly appreciated!

 

Thanks,

Jens

1 ACCEPTED SOLUTION

Accepted Solutions
nmutter
14-Alexandrite
(To:jensc)

I only found the static solution to set a label in the widget (see bottom left):

nmutter_0-1683650502145.png

 

Inspecting the .js code of the widget it does not look there is another possibility: It checks if the widget "property" exists (we can set in builder), if not it takes the displayName:

nmutter_1-1683650931066.png

 

View solution in original post

2 REPLIES 2
nmutter
14-Alexandrite
(To:jensc)

I only found the static solution to set a label in the widget (see bottom left):

nmutter_0-1683650502145.png

 

Inspecting the .js code of the widget it does not look there is another possibility: It checks if the widget "property" exists (we can set in builder), if not it takes the displayName:

nmutter_1-1683650931066.png

 

jensc
17-Peridot
(To:nmutter)

Hello @nmutter,

 

Ah... I had completely missed the widget properties for the different state labels!

It is perhaps not exactly what I wanted to be able to do, as it will require us to manually change each mashup where the state is used.

But it is close enough to fix my issue.

 

Thanks!

Jens

Top Tags