Datepicker change day and month

Datepicker change day and month

The use of " Datepicker " I would like to change the wording of days and months . I have some experience but not much , then insert the code as example in API Documentation ( " Datepicker widget " ) but did not work so there is something wrong .
Insert in <script>
$ ("selector.") datepicker ({dayNames: ["Domingo", "Segunda", "Terca", "Quarta", "Quinta", "Sexta", "Sabado"]).;

dayNames var = $ ("selector.") datepicker ("option", "dayNames.");

$ ("selector.") datepicker ("option", "dayNames" ["Domingo", "Segunda", "Terca", "Quarta", "Quinta", "Sexta", "Sabado"]).;

$ ("selector.") datepicker ({dayNamesMin: ["Do", "Se", "Te", "Qu", "Qu", "If", "Sa"]});.

dayNamesMin var = $ ("selector.") datepicker ("option", "dayNamesMin.");

$ ("Selector.") Datepicker ("option", "dayNamesMin" ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"]).;
</ script>
Do not know what it enter the parameter. "selector". Tried field name in form and did not work.