PDA

View Full Version : How to change Ok to OK for MessageBox button?



andreiastra
29 Apr 2010, 3:56 AM
Hi,

I have the requirement to change 'Ok' to 'OK' everywhere in UI. That's what it is :).

How can I do it with, say, the MessageBox 'Ok' button?

I suspect that the string "Ok" comes from the GWT code, not from the GXT code.

Does anyone have any idea how to approach that problem?

Can it be done via GWT internalization somehow?

sven
29 Apr 2010, 4:05 AM
box.getDialog().getButtonById(MessageBox.OK).setText("OK");

andreiastra
29 Apr 2010, 5:05 AM
Thank you, Sven for your prompt reply. Sure, that will do it.

I found a more general way to do it: Modify XMessages.properties in gxt.jar library.