Skip to Content

Design Studio - Localize Dialog Buttons

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 28, 2016 at 04:06 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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.