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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. 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

ACCEPTED SOLUTION

Accepted Solutions
nmutter
16-Pearl
(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
16-Pearl
(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

Announcements


Top Tags