Localize dialog button names

Localize dialog button names

I want to use the UI dialog but I need to localize the button names I use.

Is there a way to do this? Another option would be to use icons instead of labels.