]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Added Portuguese localization. Fixes #6102 - Datepicker: Add Portuguese...
authorScott González <scott.gonzalez@gmail.com>
Fri, 24 Sep 2010 12:58:18 +0000 (08:58 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 24 Sep 2010 12:58:18 +0000 (08:58 -0400)
demos/datepicker/localization.html
demos/index.html
ui/i18n/jquery.ui.datepicker-pt.js [new file with mode: 0644]

index 9b09c9bb60cb35a83edc558d66505cf800a63d75..4e9c8f190f5debd3db571f3bc21b2371929883f9 100644 (file)
@@ -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>
                <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>
index fc7e0915764f82eb8b96fe1e308032705ce66708..9aef6c99fd37ee1fcc6c04e69646ce8ba9322a5b 100644 (file)
@@ -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 (file)
index 0000000..f09f5ae
--- /dev/null
@@ -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']);
+});
\ No newline at end of file