Skip to main content
17-Peridot
May 5, 2023
Solved

State definition localization in button bar

  • May 5, 2023
  • 1 reply
  • 1004 views

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

Best answer by nmutter

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

 

1 reply

nmutter16-PearlAnswer
16-Pearl
May 9, 2023

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

 

jensc17-PeridotAuthor
17-Peridot
May 10, 2023

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