Commit 8237a3289c193ca0df4ca6f369d2a22d0f7b44cc

Authored by Murilo Caixêta
1 parent 82075f53

Substituição dos IDs para os textos das ferramenta por palavras-chave

ferramentas/buffer/dicionario.js
1 1 //+$trad(1,i3GEOF.buffer.dicionario)+
2 2 i3GEOF.buffer.dicionario = {
3   -1: [{
  3 +'descricao': [{
4 4 pt:"O entorno, ou buffer, é um polígono que circunda um elemento geográfico em uma distância fixa.",
5 5 en:"",
6 6 es:""
7 7 }],
8   -2: [{
  8 +'descricao2': [{
9 9 pt:"Para gerar o entorno, você precisa selecionar alguns elementos de um tema. Utilize para isso a opção de seleção ou a tabela de atributos do tema desejado.",
10 10 en:"",
11 11 es:""
12 12 }],
13   -3: [{
  13 +'selecionaTema': [{
14 14 pt:"Tema, com seleção, que será utilizado",
15 15 en:"",
16 16 es:""
17 17 }],
18   -4: [{
  18 +'entorno': [{
19 19 pt:"Distância do entorno em metros:",
20 20 en:"",
21 21 es:""
22 22 }],
23   -5: [{
  23 +'agregaElementos': [{
24 24 pt:"Considerar os elementos selecionados como se fossem um só?",
25 25 en:"",
26 26 es:""
27 27 }],
28   -6: [{
  28 +'adicionaTemaEntorno': [{
29 29 pt:"O tema com o entorno será adicionado ao mapa atual",
30 30 en:"",
31 31 es:""
32 32 }],
33   -7: [{
  33 +'criaEntorno': [{
34 34 pt:"Criar entorno",
35 35 en:"",
36 36 es:""
37 37 }],
38   -8: [{
  38 +'erroTempo': [{
39 39 pt:"Erro. A operação demorou muito",
40 40 en:"",
41 41 es:""
42 42 }],
43   -9: [{
  43 +'erroDistancia': [{
44 44 pt:"Distancia invalida",
45 45 en:"",
46 46 es:""
47 47 }],
48   -10: [{
  48 +'entornoAtributo': [{
49 49 pt:"Ou um item da tabela de atributos que contém as distâncias:",
50 50 en:"",
51 51 es:""
52 52 }],
53   -11: [{
  53 +'multiplica': [{
54 54 pt:"Multiplicado por:",
55 55 en:"",
56 56 es:""
57 57 }]
58   -};
59 58 \ No newline at end of file
  59 +};
... ...
ferramentas/buffer/index.js
... ... @@ -153,32 +153,32 @@ i3GEOF.buffer = {
153 153 t0: function()
154 154 {
155 155 var ins = "<img class=i3GeoExemploImg src='"+i3GEO.configura.locaplic+"/ferramentas/buffer/exemplo.png' />" +
156   - "<p class='paragrafo' >"+$trad(1,i3GEOF.buffer.dicionario) +
157   - "<p class='paragrafo' >"+$trad(2,i3GEOF.buffer.dicionario);
  156 + "<p class='paragrafo' >"+$trad('descricao',i3GEOF.buffer.dicionario) +
  157 + "<p class='paragrafo' >"+$trad('descricao2',i3GEOF.buffer.dicionario);
158 158 i3GEO.util.proximoAnterior("","i3GEOF.buffer.t1()",ins,"i3GEOFgradeDePontost0","i3GEObufferresultado",true,"i3GEOF.buffer_rodape");
159 159 },
160 160 t1: function(){
161   - var ins = "<p class='paragrafo'>"+$trad(3,i3GEOF.buffer.dicionario)+":";
  161 + var ins = "<p class='paragrafo'>"+$trad('selecionaTema',i3GEOF.buffer.dicionario)+":";
162 162 ins += "<div id='i3GEObufferSelTemas' style='text-align:left;font-size:11px'></div>";
163 163 i3GEO.util.proximoAnterior("i3GEOF.buffer.t0()","i3GEOF.buffer.t2()",ins,"i3GEOF.buffer.t1","i3GEObufferresultado",true,"i3GEOF.buffer_rodape");
164 164 i3GEOF.buffer.comboTemasSel();
165 165 },
166 166 t2: function(){
167   - var ins = "<p class='paragrafo'>"+$trad(4,i3GEOF.buffer.dicionario);
  167 + var ins = "<p class='paragrafo'>"+$trad('entorno',i3GEOF.buffer.dicionario);
168 168 ins += "<br><div class=styled-select style='display:block' ><input onclick='javascript:this.select();' id='i3GEObufferd' type=text value='0'/></div>";
169 169  
170   - ins += "<br><p class='paragrafo' >"+$trad(10,i3GEOF.buffer.dicionario);
  170 + ins += "<br><p class='paragrafo' >"+$trad('entornoAtributo',i3GEOF.buffer.dicionario);
171 171 ins += "<br><div id=i3GEObufferondeItens style='text-align:left;display:block' ></div> ";
172 172  
173   - ins += "<br><p class='paragrafo'>"+$trad(5,i3GEOF.buffer.dicionario);
  173 + ins += "<br><p class='paragrafo'>"+$trad('agregaElementos',i3GEOF.buffer.dicionario);
174 174 ins += "<br></p><div class=styled-select ><select id=i3GEObufferunir ><option value=nao selected >"+$trad("x15")+"</option><option value=sim >"+$trad("x14")+"</option></select></div>";
175 175 ins += "<br><br>";
176 176 i3GEO.util.proximoAnterior("i3GEOF.buffer.t1()","i3GEOF.buffer.t3()",ins,"i3GEOF.buffer.t2","i3GEObufferresultado",true,"i3GEOF.buffer_rodape");
177 177 i3GEOF.buffer.comboItens();
178 178 },
179 179 t3: function(){
180   - var ins = "<p class='paragrafo'>"+$trad(6,i3GEOF.buffer.dicionario);
181   - ins += "<br><br><input id=i3GEObufferbotao1 type='button' value='"+$trad(7,i3GEOF.buffer.dicionario)+"' />";
  180 + var ins = "<p class='paragrafo'>"+$trad('adicionaTemaEntorno',i3GEOF.buffer.dicionario);
  181 + ins += "<br><br><input id=i3GEObufferbotao1 type='button' value='"+$trad('criaEntorno',i3GEOF.buffer.dicionario)+"' />";
182 182 i3GEO.util.proximoAnterior("i3GEOF.buffer.t2()","",ins,"i3GEOF.buffer.t3","i3GEObufferresultado",true,"i3GEOF.buffer_rodape");
183 183 new YAHOO.widget.Button(
184 184 "i3GEObufferbotao1",
... ... @@ -210,7 +210,7 @@ i3GEOF.buffer = {
210 210 fim = function(retorno){
211 211 i3GEOF.buffer.aguarde.visibility = "hidden";
212 212 if (retorno.data === undefined )
213   - {$i("i3GEObufferfim").innerHTML = $trad(8,i3GEOF.buffer.dicionario);}
  213 + {$i("i3GEObufferfim").innerHTML = $trad('erroTempo',i3GEOF.buffer.dicionario);}
214 214 else
215 215 {i3GEO.atualiza();}
216 216 };
... ... @@ -225,7 +225,7 @@ i3GEOF.buffer = {
225 225 cp.call(p,"criaBuffer",fim);
226 226 }
227 227 else
228   - {i3GEO.janela.tempoMsg($trad(9,i3GEOF.buffer.dicionario));}
  228 + {i3GEO.janela.tempoMsg($trad('erroDistancia',i3GEOF.buffer.dicionario));}
229 229 }
230 230 catch(e){$i("i3GEObufferfim").innerHTML = "<p class='paragrafo' >Erro. "+e;i3GEO.janela.fechaAguarde();i3GEOF.buffer.aguarde.visibility = "hidden";}
231 231 },
... ... @@ -276,11 +276,11 @@ i3GEOF.buffer = {
276 276 $i("i3GEObuffertemasComSel").value,
277 277 function(retorno){
278 278 $i("i3GEObufferondeItens").innerHTML = "<div class=styled-select >" + retorno.dados + "</div>"
279   - + "<br><br><p class=paragrafo >" + $trad(11,i3GEOF.buffer.dicionario)
  279 + + "<br><br><p class=paragrafo >" + $trad('multiplica',i3GEOF.buffer.dicionario)
280 280 +" <div class=styled-select ><input onclick='javascript:this.select();' id='i3GEObufferdfator' type=text value='1'/></div>";
281 281 $i("i3GEObufferondeItens").style.display = "block";
282 282 },
283 283 "i3GEObufferondeItens"
284 284 );
285 285 }
286   -};
287 286 \ No newline at end of file
  287 +};
... ...