cancel
Showing results for 
Search instead for 
Did you mean: 

Design Studio - Localize Dialog Buttons

0 Kudos

SAP Design Studio has a nice feature to define buttons inside of the footer of a 'Dialog' component:

The 'Dialog' component is one of the standard 'Container Components'.

My question is if there is a way to localize the text of these buttons, i.e. apply strings defined inside of a TEXT_POOL to these buttons? I see we can define the button text in the 'Add/Edit Dialog Footer Buttons' popup (see the screenshot), but I do not see a way to reference these buttons and to set their text in a script.

I would think that the 'Button Key' value would allow me to reference the button inside of a script function, but the editor does not recognize a component whose name is the button-key.

I am using SAP Design Studio 1.6 SP02 Patch 2.

Any insight or assistance would be greatly appreciated.

Regards,

- Knoa Support

Accepted Solutions (0)

Answers (1)

Answers (1)

MustafaBensan
Active Contributor
0 Kudos

Hi Knoa,

The Dialog component does not have a script method to dynamically allow you to change the text of the buttons. However, if you simply wish to provide localized static text for the buttons, you do not need to specify strings in a TEXT_POOL component. If you use the Translation Management Tool, I expect you should be able to see the Dialog button texts as part of the application texts, where you can specify the translations for the required languages.

Regards,

Mustafa.

0 Kudos

Hello Mustafa,

Thank you, I see that the dialog button text is available for localization in the Translation Management Tool.

I was under the impression that only strings from the TEXT_POOL component could be localized.

Regards,

- Knoa Support

MustafaBensan
Active Contributor
0 Kudos

Hi Knoa,

The TEXT_POOL component only requires strings to be defined if you need to dynamically assign localised texts at run-time. Otherwise, you can simply create an empty TEXT_POOL component and perform static translations in the Translation Management Tool.

Regards,

Mustafa.