Jump to content

How Change Caption Buttons TUnimDatePicker


sernet

Recommended Posts

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

 

unigui_tunimdatepicker.jpeg

unigui_TUniFileUpload.PNG

Link to comment
Share on other sites

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!");
    }
     
}

 

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...