mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
70dae67b73
Fixes #15393 Closes gh-1958
49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
/* Brazilian initialisation for the jQuery UI date picker plugin. */
|
|
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
|
|
( function( factory ) {
|
|
"use strict";
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
// AMD. Register as an anonymous module.
|
|
define( [ "../widgets/datepicker" ], factory );
|
|
} else {
|
|
|
|
// Browser globals
|
|
factory( jQuery.datepicker );
|
|
}
|
|
} )( function( datepicker ) {
|
|
"use strict";
|
|
|
|
datepicker.regional[ "pt-BR" ] = {
|
|
closeText: "Fechar",
|
|
prevText: "<Anterior",
|
|
nextText: "Próximo>",
|
|
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: "Sm",
|
|
dateFormat: "dd/mm/yy",
|
|
firstDay: 0,
|
|
isRTL: false,
|
|
showMonthAfterYear: false,
|
|
yearSuffix: "" };
|
|
datepicker.setDefaults( datepicker.regional[ "pt-BR" ] );
|
|
|
|
return datepicker.regional[ "pt-BR" ];
|
|
|
|
} );
|