Search and Top Navigation
#6102 closed enhancement (fixed)
Opened September 23, 2010 03:42PM UTC
Closed September 24, 2010 12:59PM UTC
Last modified October 20, 2012 12:00AM UTC
Datepicker: Add Portuguese localization
Reported by: | cim | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.6 |
Component: | ui.datepicker | Version: | 1.8.5 |
Keywords: | Portuguese initialisation | Cc: | |
Blocked by: | Blocking: |
Description
There doesn't seem to be a Portuguese (as opposed to Portuguese-Brazilian) initialisation for datepicker. I would like to contribute the following code:
/* Portuguese initialisation for the jQuery UI date picker plugin. */ /* Based on the Brazilian initialisation */ jQuery(function($){ $.datepicker.regional['pt'] = { closeText: 'Fechar', prevText: '<Anterior', nextText: 'Seguinte', currentText: 'Hoje', monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', 'Jul','Ago','Set','Out','Nov','Dez'], dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'], dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'], weekHeader: 'Sem', dateFormat: 'dd/mm/yy', firstDay: 0, isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; $.datepicker.setDefaults($.datepicker.regional['pt']); });
Attachments (0)
Change History (4)
Changed September 24, 2010 12:59PM UTC by comment:1
milestone: | TBD → 1.9 |
---|---|
resolution: | → fixed |
status: | new → closed |
summary: | Portuguese initialisation for datepicker → Datepicker: Add Portuguese localization |
Changed October 25, 2010 06:58PM UTC by comment:2
milestone: | 1.9 → 1.8.6 |
---|
Fixed in 23b569f.