Skip to content
Permalink
Browse files

Datepicker: Added Portuguese localization. Fixes #6102 - Datepicker: …

…Add Portuguese localization.
  • Loading branch information
scottgonzalez committed Sep 24, 2010
1 parent 3f9b953 commit 23b569f46ec7472d4baec7486d27ddbe5aaa8518
Showing with 25 additions and 0 deletions.
  1. +2 −0 demos/datepicker/localization.html
  2. +1 −0 demos/index.html
  3. +22 −0 ui/i18n/jquery.ui.datepicker-pt.js
@@ -45,6 +45,7 @@
<script src="../../ui/i18n/jquery.ui.datepicker-nl.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-no.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-pl.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-pt.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-ro.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-ru.js"></script>
@@ -120,6 +121,7 @@
<option value="ms">Malaysian (Bahasa Malaysia)</option>
<option value="no">Norwegian (Norsk)</option>
<option value="pl">Polish (Polski)</option>
<option value="pt">Portuguese (Portugu&ecirc;s)</option>
<option value="pt-BR">Portuguese/Brazilian (Portugu&ecirc;s)</option>
<option value="ro">Romanian (Rom&acirc;n&#259;)</option>
<option value="ru">Russian (&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;)</option>
@@ -75,6 +75,7 @@
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-nl.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-no.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-pl.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-pt.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ro.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ru.js"></script>
@@ -0,0 +1,22 @@
/* Portuguese initialisation for the jQuery UI date picker plugin. */
jQuery(function($){
$.datepicker.regional['pt'] = {
closeText: 'Fechar',
prevText: '&#x3c;Anterior',
nextText: 'Seguinte',
currentText: 'Hoje',
monthNames: ['Janeiro','Fevereiro','Mar&ccedil;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&ccedil;a-feira','Quarta-feira','Quinta-feira','Sexta-feira','S&aacute;bado'],
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
weekHeader: 'Sem',
dateFormat: 'dd/mm/yy',
firstDay: 0,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['pt']);
});

0 comments on commit 23b569f

Please sign in to comment.
You can’t perform that action at this time.