sernet Posted April 9, 2019 Share Posted April 9, 2019 Hi, I need translate caption of buttons (Cancel, Done) of component TUnimDatePicker. The component TUniFileUpload, I need translate caption of button (Browse...). How proceed ? ExtLocale = pr_BR UniGuiVersion = 1.70.0.1486 thanks in advance. Sergio Lopes de Aguiar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 9, 2019 Share Posted April 9, 2019 21 minutes ago, sernet said: I need translate caption of buttons (Cancel, Done) of component TUnimDatePicker. Hi, One possible solution: function afterCreate(sender) { var me=sender.getPicker(); if (me && !Ext.isWindows) { me.getDoneButton().setText("Done!"); me.getCancelButton().setText("Cancel!"); } } Quote Link to comment Share on other sites More sharing options...
sernet Posted April 10, 2019 Author Share Posted April 10, 2019 Hi Sherzod, TUnimDatePicker worked, Thank you. About TUnimSelect, I need translate the buttons (Cancel, Done) too. I Try search in the source code like TUnimDatePicker, but ist diferent. You could help me with TUnimSelect ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 10, 2019 Share Posted April 10, 2019 6 hours ago, sernet said: You could help me with TUnimSelect ? Hello, On 4/9/2019 at 5:51 PM, Sherzod said: function afterCreate(sender) { var me=sender.getPicker(); if (me && !Ext.isWindows) { me.getDoneButton().setText("Done!"); me.getCancelButton().setText("Cancel!"); } } This code should work. Are you sure you are using the right event for this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.