diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-09-24 08:58:18 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-24 08:58:18 -0400 |
commit | 23b569f46ec7472d4baec7486d27ddbe5aaa8518 (patch) | |
tree | 173cfa2184e08eb52ac49a4cac5916d9733596be | |
parent | 3f9b9531178b618c5702ece30e5126dfe98dea7c (diff) | |
download | jquery-ui-23b569f46ec7472d4baec7486d27ddbe5aaa8518.tar.gz jquery-ui-23b569f46ec7472d4baec7486d27ddbe5aaa8518.zip |
Datepicker: Added Portuguese localization. Fixes #6102 - Datepicker: Add Portuguese localization.
-rw-r--r-- | demos/datepicker/localization.html | 2 | ||||
-rw-r--r-- | demos/index.html | 1 | ||||
-rw-r--r-- | ui/i18n/jquery.ui.datepicker-pt.js | 22 |
3 files changed, 25 insertions, 0 deletions
diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 9b09c9bb6..4e9c8f190 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -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ês)</option> <option value="pt-BR">Portuguese/Brazilian (Português)</option> <option value="ro">Romanian (Română)</option> <option value="ru">Russian (Русский)</option> diff --git a/demos/index.html b/demos/index.html index fc7e09157..9aef6c99f 100644 --- a/demos/index.html +++ b/demos/index.html @@ -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> diff --git a/ui/i18n/jquery.ui.datepicker-pt.js b/ui/i18n/jquery.ui.datepicker-pt.js new file mode 100644 index 000000000..f09f5aeb0 --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-pt.js @@ -0,0 +1,22 @@ +/* Portuguese initialisation for the jQuery UI date picker plugin. */ +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']); +});
\ No newline at end of file |