Administrator
2022-09-14 58d006e05dcf2a20d0ec5367dd03d66a61db6849
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/**
 * jqGrid Brazilian-Portuguese Translation
 * Sergio Righi sergio.righi@gmail.com
 * http://curve.com.br
 * 
 * Updated by Jonnas Fonini
 * http://fonini.net
 *
 *
 * Updated by Fabio Ferreira da Silva fabio_ferreiradasilva@yahoo.com.br
 * 
 * Updated by Anderson Pimentel anderson.pimentel[at]gmail.com
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
**/
/*global jQuery, define */
(function( factory ) {
    "use strict";
    if ( typeof define === "function" && define.amd ) {
        // AMD. Register as an anonymous module.
        define([
            "jquery",
            "../grid.base"
        ], factory );
    } else {
        // Browser globals
        factory( jQuery );
    }
}(function( $ ) {
 
$.jgrid = $.jgrid || {};
if(!$.jgrid.hasOwnProperty("regional")) {
    $.jgrid.regional = [];
}
$.jgrid.regional["pt-br"] = {
    defaults : {
        recordtext: "Ver {0} - {1} de {2}",
        emptyrecords: "Nenhum registro para visualizar",
        loadtext: "Carregando...",
        pgtext : "Página {0} de {1}",
        savetext: "Salvando...",
        pgfirst : "Primeira Página",
        pglast : "Última Página",
        pgnext : "Próxima Página",
        pgprev : "Página Anterior",
        pgrecs : "Registros por Página",
        showhide: "Mostrar/Ocultar Grid",
        // mobile
        pagerCaption : "Grid::Page Settings",
        pageText : "Page:",
        recordPage : "Records per Page",
        nomorerecs : "No more records...",
        scrollPullup: "Pull up to load more...",
        scrollPulldown : "Pull down to refresh...",
        scrollRefresh : "Release to refresh..."
    },
    search : {
        caption: "Procurar...",
        Find: "Procurar",
        Reset: "Limpar",
        odata: [{ oper:'eq', text:"igual"},{ oper:'ne', text:"diferente"},{ oper:'lt', text:"menor"},{ oper:'le', text:"menor ou igual"},{ oper:'gt', text:"maior"},{ oper:'ge', text:"maior ou igual"},{ oper:'bw', text:"inicia com"},{ oper:'bn', text:"não inicia com"},{ oper:'in', text:"está em"},{ oper:'ni', text:"não está em"},{ oper:'ew', text:"termina com"},{ oper:'en', text:"não termina com"},{ oper:'cn', text:"contém"},{ oper:'nc', text:"não contém"},{ oper:'nu', text:"nulo"},{ oper:'nn', text:"não nulo"}],
        groupOps: [    { op: "AND", text: "todos" },{ op: "OR",  text: "qualquer um" }    ],
        operandTitle : "Clique para escolher a operação de pesquisa.",
        resetTitle : "Limpar valor de pesquisa"
    },
    edit : {
        addCaption: "Incluir",
        editCaption: "Alterar",
        bSubmit: "Enviar",
        bCancel: "Cancelar",
        bClose: "Fechar",
        saveData: "Os dados foram alterados! Salvar alterações?",
        bYes : "Sim",
        bNo : "Não",
        bExit : "Cancelar",
        msg: {
            required:"Campo obrigatório",
            number:"Por favor, informe um número válido",
            minValue:"valor deve ser igual ou maior que ",
            maxValue:"valor deve ser menor ou igual a",
            email: "este e-mail não é válido",
            integer: "Por favor, informe um valor inteiro",
            date: "Por favor, informe uma data válida",
            url: "não é uma URL válida. Prefixo obrigatório ('http://' or 'https://')",
            nodefined : " não está definido!",
            novalue : " um valor de retorno é obrigatório!",
            customarray : "Função customizada deve retornar um array!",
            customfcheck : "Função customizada deve estar presente em caso de validação customizada!"
        }
    },
    view : {
        caption: "Ver Registro",
        bClose: "Fechar"
    },
    del : {
    caption: "Apagar",
        msg: "Apagar registro(s) selecionado(s)?",
        bSubmit: "Apagar",
        bCancel: "Cancelar"
    },
    nav : {
        edittext: " ",
        edittitle: "Alterar registro selecionado",
        addtext:" ",
        addtitle: "Incluir novo registro",
        deltext: " ",
        deltitle: "Apagar registro selecionado",
        searchtext: " ",
        searchtitle: "Procurar registros",
        refreshtext: "",
        refreshtitle: "Recarregar tabela",
        alertcap: "Aviso",
        alerttext: "Por favor, selecione um registro",
        viewtext: "",
        viewtitle: "Ver linha selecionada",
        savetext: "",
        savetitle: "Salvar linha",
        canceltext: "",
        canceltitle : "Cancelar edição da linha",
        selectcaption : "Actions..."
    },
    col : {
        caption: "Mostrar/Esconder Colunas",
        bSubmit: "Enviar",
        bCancel: "Cancelar"
    },
    errors : {
        errcap : "Erro",
        nourl : "Nenhuma URL definida",
        norecords: "Sem registros para exibir",
        model : "Comprimento de colNames <> colModel!"
    },
    formatter : {
        integer : {thousandsSeparator: " ", defaultValue: '0'},
        number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'},
        currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "R$ ", suffix:"", defaultValue: '0,00'},
        date : {
            dayNames:   [
                "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb",
                "Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"
            ],
            monthNames: [
                "Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez",
                "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
            ],
            AmPm : ["am","pm","AM","PM"],
            S: function (j) {return j < 11 || j > 13 ? ['º', 'º', 'º', 'º'][Math.min((j - 1) % 10, 3)] : 'º'},
            srcformat: 'Y-m-d',
            newformat: 'd/m/Y',
            parseRe : /[#%\\\/:_;.,\t\s-]/,
            masks : {
                ISO8601Long:"Y-m-d H:i:s",
                ISO8601Short:"Y-m-d",
                ShortDate: "n/j/Y",
                LongDate: "l, F d, Y",
                FullDateTime: "l, F d, Y g:i:s A",
                MonthDay: "F d",
                ShortTime: "g:i A",
                LongTime: "g:i:s A",
                SortableDateTime: "Y-m-d\\TH:i:s",
                UniversalSortableDateTime: "Y-m-d H:i:sO",
                YearMonth: "F, Y"
            },
            reformatAfterEdit : false,
            userLocalTime : false
        },
        baseLinkUrl: '',
        showAction: '',
        target: '',
        checkbox : {disabled:true},
        idName : 'id'
    }
};
}));