From 6b5527bd196416bfd14699b7061636d246914af3 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 24 Jul 2013 21:27:15 +0000 Subject: [PATCH] Separação dos textos para tradução. Correção no gráfico de perfis --- ferramentas/googlemaps1/index.js | 7 +++++-- ferramentas/graficointerativo/index.js | 7 ++++++- ferramentas/opcoes_legenda/dicionario.js | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------- ferramentas/opcoes_legenda/index.js | 44 ++++++++++++++++++++++---------------------- ferramentas/opcoes_querymap/dicionario.js | 66 ++++++------------------------------------------------------------ ferramentas/opcoes_querymap/index.js | 6 +++--- ferramentas/opcoes_tamanho/dicionario.js | 90 ++++++++++++++++++++++++++++++------------------------------------------------------------ ferramentas/opcoes_tamanho/index.js | 12 ++++++------ ferramentas/perfil/index.js | 22 ++++++++++++++-------- interface/openlayersdebug.htm | 2 +- 10 files changed, 157 insertions(+), 173 deletions(-) diff --git a/ferramentas/googlemaps1/index.js b/ferramentas/googlemaps1/index.js index a411fb6..5632a7e 100644 --- a/ferramentas/googlemaps1/index.js +++ b/ferramentas/googlemaps1/index.js @@ -482,7 +482,10 @@ function adicionaMarcasMapa(coordenadas){ for(i=0;iInclui no corpo do mapa?:' + + ''+$trad(2,i3GEOF.opcoesLegenda.dicionario)+':' + ' ' + '' + ' ' + - 'Cor do fundo:' + + ''+$trad(3,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendaimagecolor","",12,"") + 'aquarela.gif' + '' + ' ' + - 'Contorno dos símbolos:' + + ''+$trad(4,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendaoutlinecolor","",12,"") + 'aquarela.gif' + '' + ' ' + - 'Posição:' + + ''+$trad(5,i3GEOF.opcoesLegenda.dicionario)+':' + ' ' + '' + ' ' + - 'Espaçamento em Y:' + + ''+$trad(12,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendakeyspacingy","",4,"") + '' + ' ' + - 'Espaçamento em X:' + + ''+$trad(13,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendakeyspacingx","",4,"") + '' + ' ' + - 'Tamanho do símb. Y:' + + ''+$trad(14,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendakeysizey","",4,"") + '' + ' ' + - 'Tamanho do símb. X:' + + ''+$trad(15,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendakeysizex","",4,"") + '' + ' ' + - 'Tamanho do texto:' + + ''+$trad(16,i3GEOF.opcoesLegenda.dicionario)+':' + $inputText("","","i3GEOopcoesLegendalabelsize","",4,"") + '' + ' ' + - 'Fonte: (teste a fonte mais adequada para apresentação correta da acentuação)' + + ''+$trad(17,i3GEOF.opcoesLegenda.dicionario)+'' + ' aguarde...' + '
'+ '

' + - '' + - '' + + '' + + '' + '


'; return ins; }, @@ -323,4 +323,4 @@ i3GEOF.opcoesLegenda = { cp.set_response_type("JSON"); cp.call(p,"testaLegenda",temp); } -}; +}; \ No newline at end of file diff --git a/ferramentas/opcoes_querymap/dicionario.js b/ferramentas/opcoes_querymap/dicionario.js index ee07484..28979b3 100644 --- a/ferramentas/opcoes_querymap/dicionario.js +++ b/ferramentas/opcoes_querymap/dicionario.js @@ -1,63 +1,9 @@ //+$trad(1,i3GEOF.opcoesQuery.dicionario)+ i3GEOF.opcoesQuery.dicionario = { -1: [{ -pt:"", -en:"", -es:"", -it:"" -}], -2: [{ -pt:"", -en:"", -es:"", -it:"" -}], -3: [{ -pt:"", -en:"", -es:"", -it:"" -}], -4: [{ -pt:"", -en:"", -es:"", -it:"" -}], -5: [{ -pt:"", -en:"", -es:"", -it:"" -}], -6: [{ -pt:"", -en:"", -es:"", -it:"" -}], -7: [{ -pt:"", -en:"", -es:"", -it:"" -}], -8: [{ -pt:"", -en:"", -es:"", -it:"" -}], -9: [{ -pt:"", -en:"", -es:"", -it:"" -}], -10: [{ -pt:"", -en:"", -es:"", -it:"" -}] + 1: [{ + pt:"Aplica", + en:"", + es:"", + it:"" + }] }; \ No newline at end of file diff --git a/ferramentas/opcoes_querymap/index.js b/ferramentas/opcoes_querymap/index.js index 0dd33ca..a05005a 100644 --- a/ferramentas/opcoes_querymap/index.js +++ b/ferramentas/opcoes_querymap/index.js @@ -65,7 +65,7 @@ i3GEOF.opcoesQuery = { iniciaDicionario: function(){ if(typeof(i3GEOF.opcoesQuery.dicionario) === 'undefined'){ i3GEO.util.scriptTag( - i3GEO.configura.locaplic+"/ferramentas/opcoes_query/dicionario.js", + i3GEO.configura.locaplic+"/ferramentas/opcoes_querymap/dicionario.js", "i3GEOF.opcoesQuery.iniciaJanelaFlutuante()", "i3GEOF.opcoesQuery.dicionario_script" ); @@ -95,7 +95,7 @@ i3GEOF.opcoesQuery = { cp = new cpaint(), retorno = function(retorno){ i3GEOF.opcoesQuery.aguarde.visibility = "hidden"; - if(retorno.data.erro){i3GEO.janela.tempoMsg("Ocorreu um erro");return;} + if(retorno.data.erro){i3GEO.janela.tempoMsg("Erro");return;} $i("i3GEOopcoesQuerycor").value = retorno.data; }; cp.set_response_type("JSON"); @@ -116,7 +116,7 @@ i3GEOF.opcoesQuery = { var ins = $inputText("","","i3GEOopcoesQuerycor","",12,"") + 'aquarela.gif ' + - '

'; + '

'; return ins; }, /* diff --git a/ferramentas/opcoes_tamanho/dicionario.js b/ferramentas/opcoes_tamanho/dicionario.js index a99aef3..ffd4f37 100644 --- a/ferramentas/opcoes_tamanho/dicionario.js +++ b/ferramentas/opcoes_tamanho/dicionario.js @@ -1,63 +1,33 @@ //+$trad(1,i3GEOF.opcoesTamanho.dicionario)+ i3GEOF.opcoesTamanho.dicionario = { -1: [{ -pt:"", -en:"", -es:"", -it:"" -}], -2: [{ -pt:"", -en:"", -es:"", -it:"" -}], -3: [{ -pt:"", -en:"", -es:"", -it:"" -}], -4: [{ -pt:"", -en:"", -es:"", -it:"" -}], -5: [{ -pt:"", -en:"", -es:"", -it:"" -}], -6: [{ -pt:"", -en:"", -es:"", -it:"" -}], -7: [{ -pt:"", -en:"", -es:"", -it:"" -}], -8: [{ -pt:"", -en:"", -es:"", -it:"" -}], -9: [{ -pt:"", -en:"", -es:"", -it:"" -}], -10: [{ -pt:"", -en:"", -es:"", -it:"" -}] + 1: [{ + pt:"Largura", + en:"", + es:"", + it:"" + }], + 2: [{ + pt:"Altura", + en:"", + es:"", + it:"" + }], + 3: [{ + pt:"Valores em pixels", + en:"", + es:"", + it:"" + }], + 4: [{ + pt:"Testa", + en:"", + es:"", + it:"" + }], + 5: [{ + pt:"Aplicar", + en:"", + es:"", + it:"" + }] }; \ No newline at end of file diff --git a/ferramentas/opcoes_tamanho/index.js b/ferramentas/opcoes_tamanho/index.js index 2dc06dd..8c6640e 100644 --- a/ferramentas/opcoes_tamanho/index.js +++ b/ferramentas/opcoes_tamanho/index.js @@ -117,16 +117,16 @@ i3GEOF.opcoesTamanho = { html:function(){ var ins = '' + '
'+ - ' '+ - ' '+ '
Largura:' + + '
'+$trad(1,i3GEOF.opcoesTamanho.dicionario)+':' + $inputText("","","i3GEOopcoesTamanhol","",4,i3GEO.parametros.w) + '
 
Altura:' + + '
'+$trad(2,i3GEOF.opcoesTamanho.dicionario)+':' + $inputText("","","i3GEOopcoesTamanhoa","",4,i3GEO.parametros.h) + '
 
' + - '

Valores em pixels.

' + - '

' + - ''; + '

'+$trad(3,i3GEOF.opcoesTamanho.dicionario)+'

' + + '

' + + ''; return ins; }, /* @@ -232,4 +232,4 @@ i3GEOF.opcoesTamanho = { box.style.height = a+"px"; } -}; +}; \ No newline at end of file diff --git a/ferramentas/perfil/index.js b/ferramentas/perfil/index.js index 1fe890a..cecd52f 100644 --- a/ferramentas/perfil/index.js +++ b/ferramentas/perfil/index.js @@ -64,7 +64,8 @@ i3GEOF.perfil = { /* Para efeitos de compatibilidade antes da versão 4.7 que não tinha dicionário */ - criaJanelaFlutuante: function(){ + criaJanelaFlutuante: function(pontos){ + i3GEOF.perfil.pontos = pontos; i3GEOF.perfil.iniciaDicionario(); }, /* @@ -74,7 +75,7 @@ i3GEOF.perfil = { O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script */ - iniciaDicionario: function(){ + iniciaDicionario: function(pontos){ if(typeof(i3GEOF.perfil.dicionario) === 'undefined'){ i3GEO.util.scriptTag( i3GEO.configura.locaplic+"/ferramentas/perfil/dicionario.js", @@ -139,7 +140,9 @@ i3GEOF.perfil = { */ iniciaJanelaFlutuante: function(pontos){ var minimiza,cabecalho,janela,divid,titulo; - i3GEOF.perfil.pontos = pontos; + if(pontos){ + i3GEOF.perfil.pontos = pontos; + } //cria a janela flutuante titulo = $trad("x54")+"    "; cabecalho = function(){}; @@ -185,13 +188,17 @@ i3GEOF.perfil = { {$i("i3GEOperfilfim").innerHTML = "Erro ao acessar o serviço de fornecimento dos dados";return;} i3GEOF.perfil.converteDados(retorno.data.results); if(!$i("i3GEOF.graficointerativo_script")){ - var js = i3GEO.configura.locaplic+"/ferramentas/graficointerativo/index.js.php"; + var js = i3GEO.configura.locaplic+"/ferramentas/graficointerativo/index.js"; i3GEO.util.scriptTag(js,"i3GEOF.perfil.iniciaGrafico()","i3GEOF.graficointerativo_script"); } + else{ + i3GEOF.perfil.iniciaGrafico(); + } //é obrigado mostrar o mapa do google quando o perfil usa o google if($i("i3GEOFperfilFonteGoogle").checked === true && i3GEO.Interface.ATUAL !== "googlemaps"){ i3GEO.navega.dialogo.google(i3GEOF.perfil.listaPontos(true).split(",")); } + } }; if($i("i3GEOFperfilFonteGoogle").checked === true){ @@ -247,7 +254,7 @@ i3GEOF.perfil = { for(i=0;i --> -

+ -- libgit2 0.21.2