From b954ab2ed20e97dab20eb36e5c9fa926fe4b42f5 Mon Sep 17 00:00:00 2001 From: Fabio Ferreira da Silva Date: Fri, 26 Jun 2020 16:54:21 -0300 Subject: [PATCH] Added thousands separator to pt-br locale --- js/i18n/grid.locale-pt-br.js | 4 ++-- js/i18n/min/grid.locale-pt-br.js | 2 +- js/i18n/min/grid.locale-pt-br.js.map | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/i18n/grid.locale-pt-br.js b/js/i18n/grid.locale-pt-br.js index 861a4e0a4..c2ea8ea32 100755 --- a/js/i18n/grid.locale-pt-br.js +++ b/js/i18n/grid.locale-pt-br.js @@ -163,8 +163,8 @@ var locInfo = { model: "Comprimento de colNames <> colModel!" }, formatter: { - integer: { thousandsSeparator: " ", defaultValue: "0" }, - number: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0,00" }, + 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: [ diff --git a/js/i18n/min/grid.locale-pt-br.js b/js/i18n/min/grid.locale-pt-br.js index 33254f13b..a4d2533bb 100644 --- a/js/i18n/min/grid.locale-pt-br.js +++ b/js/i18n/min/grid.locale-pt-br.js @@ -17,5 +17,5 @@ * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ -!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(e,r){return void 0===r&&(r="undefined"!=typeof window?require("jquery"):require("jquery")(e||window)),a(r),r}:a(jQuery)}(function(e){"use strict";var r={name:"Português (Brasil)",nameEnglish:"Portuguese (Brazil)",isRTL:!1,defaults:{recordtext:"Ver {0} - {1} de {2}",emptyrecords:"Nenhum registro para visualizar",loadtext:"Carregando...",pgtext:"Página {0} de {1}",pgfirst:"Primeira Página",pglast:"Última Página",pgnext:"Próxima Página",pgprev:"Página Anterior",pgrecs:"Registros por Página",showhide:"Exibir/Ocultar Grid",savetext:"Salvando..."},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"}],addGroupTitle:"Add subgroup",deleteGroupTitle:"Delete group",addRuleTitle:"Add rule",deleteRuleTitle:"Delete rule",operandTitle:"Clique para escolher a operação de pesquisa.",resetTitle:"Limpar valor da 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"},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(e){return e<11||13 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",masks:{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",YearMonth:"F, Y"}}}};$.jgrid=$.jgrid||{};$.extend(true,$.jgrid,{defaults:{locale:"pt-BR"},locales:{"pt-BR":locInfo}})}); //# sourceMappingURL=grid.locale-pt-br.js.map \ No newline at end of file diff --git a/js/i18n/min/grid.locale-pt-br.js.map b/js/i18n/min/grid.locale-pt-br.js.map index f9f9e90ea..fb83bb82e 100644 --- a/js/i18n/min/grid.locale-pt-br.js.map +++ b/js/i18n/min/grid.locale-pt-br.js.map @@ -1 +1 @@ -{"version":3,"sources":["../grid.locale-pt-br.js"],"names":["factory","define","amd","module","exports","root","$","undefined","window","require","jQuery","locInfo","name","nameEnglish","isRTL","defaults","recordtext","emptyrecords","loadtext","pgtext","pgfirst","pglast","pgnext","pgprev","pgrecs","showhide","savetext","search","caption","Find","Reset","odata","oper","text","groupOps","op","addGroupTitle","deleteGroupTitle","addRuleTitle","deleteRuleTitle","operandTitle","resetTitle","edit","addCaption","editCaption","bSubmit","bCancel","bClose","saveData","bYes","bNo","bExit","msg","required","number","minValue","maxValue","email","integer","date","url","nodefined","novalue","customarray","customfcheck","view","del","nav","edittext","edittitle","addtext","addtitle","deltext","deltitle","searchtext","searchtitle","refreshtext","refreshtitle","alertcap","alerttext","viewtext","viewtitle","savetitle","canceltext","canceltitle","col","errors","errcap","nourl","norecords","model","formatter","thousandsSeparator","defaultValue","decimalSeparator","decimalPlaces","currency","prefix","suffix","dayNames","monthNames","AmPm","S","j","Math","min","srcformat","newformat","masks","ShortDate","LongDate","FullDateTime","MonthDay","ShortTime","LongTime","YearMonth","jgrid","extend","locale","locales","pt-BR"],"mappings":";;;;;;;;;;;;;;;;;;;CAsBC,SAAUA,GACV,aACsB,mBAAXC,QAAyBA,OAAOC,IAE1CD,OAAO,CAAC,UA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C,KAAM,KAAM,KAAM,MACzBC,EAAG,SAAUC,GACZ,OAAOA,EAAI,IAAU,GAAJA,EAAS,CAAC,IAAK,IAAK,IAAK,KAAKC,KAAKC,KAAKF,EAAI,GAAK,GAAI,IAAM,KAE7EG,UAAW,QACXC,UAAW,QACXC,MAAO,CACNC,UAAW,QACXC,SAAU,YACVC,aAAc,oBACdC,SAAU,MACVC,UAAW,QACXC,SAAU,UACVC,UAAW,WAKf7G,EAAE8G,MAAQ9G,EAAE8G,OAAS,GACrB9G,EAAE+G,QAAO,EAAM/G,EAAE8G,MAAO,CACvBrG,SAAU,CACTuG,OAAQ,SAETC,QAAS,CAMRC,QAAS7G","file":"grid.locale-pt-br.js"} \ No newline at end of file +{"version":3,"file":"grid.locale-pt-br.js","sources":["../grid.locale-pt-br.js"],"names":["factory","define","amd","module","exports","root","$","undefined","window","require","jQuery","locInfo","name","nameEnglish","isRTL","defaults","recordtext","emptyrecords","loadtext","pgtext","pgfirst","pglast","pgnext","pgprev","pgrecs","showhide","savetext","search","caption","Find","Reset","odata","oper","text","groupOps","op","addGroupTitle","deleteGroupTitle","addRuleTitle","deleteRuleTitle","operandTitle","resetTitle","edit","addCaption","editCaption","bSubmit","bCancel","bClose","saveData","bYes","bNo","bExit","msg","required","number","minValue","maxValue","email","integer","date","url","nodefined","novalue","customarray","customfcheck","view","del","nav","edittext","edittitle","addtext","addtitle","deltext","deltitle","searchtext","searchtitle","refreshtext","refreshtitle","alertcap","alerttext","viewtext","viewtitle","savetitle","canceltext","canceltitle","col","errors","errcap","nourl","norecords","model","formatter","thousandsSeparator","defaultValue","decimalSeparator","decimalPlaces","currency","prefix","suffix","dayNames","monthNames","AmPm","S","j","Math","min","srcformat","newformat","masks","ShortDate","LongDate","FullDateTime","MonthDay","ShortTime","LongTime","YearMonth","jgrid","extend","locale","locales","pt-BR"],"mappings":"CAsBC,SAAUA,sBAEV,UAAWC,SAAW,YAAcA,OAAOC,IAAK,CAE/CD,OAAO,CAAC,UAAWD,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