Commit 012c14e30c13500d279e6d9b8755c00dad81ec7d
1 parent
fdf3c6b8
Exists in
master
and in
7 other branches
Adaptação para dicionário
Showing
3 changed files
with
83 additions
and
23 deletions
Show diff stats
admin/dicionario/core.js
| @@ -221,13 +221,13 @@ i3GEOadmin.core.dicionario = { | @@ -221,13 +221,13 @@ i3GEOadmin.core.dicionario = { | ||
| 221 | en : "", | 221 | en : "", |
| 222 | es : "" | 222 | es : "" |
| 223 | } ], | 223 | } ], |
| 224 | - '' : [ { | ||
| 225 | - pt : "", | 224 | + 'salva' : [ { |
| 225 | + pt : "Salvar", | ||
| 226 | en : "", | 226 | en : "", |
| 227 | es : "" | 227 | es : "" |
| 228 | } ], | 228 | } ], |
| 229 | - '' : [ { | ||
| 230 | - pt : "", | 229 | + 'remove' : [ { |
| 230 | + pt : "Remover", | ||
| 231 | en : "", | 231 | en : "", |
| 232 | es : "" | 232 | es : "" |
| 233 | } ], | 233 | } ], |
admin/dicionario/editormapfile.js
| @@ -1121,6 +1121,66 @@ i3GEOadmin.editormapfile.dicionario = { | @@ -1121,6 +1121,66 @@ i3GEOadmin.editormapfile.dicionario = { | ||
| 1121 | en : "", | 1121 | en : "", |
| 1122 | es : "" | 1122 | es : "" |
| 1123 | } ], | 1123 | } ], |
| 1124 | + 'conexaoLayer' : [ { | ||
| 1125 | + pt : " Conexão com os dados", | ||
| 1126 | + en : "", | ||
| 1127 | + es : "" | ||
| 1128 | + } ], | ||
| 1129 | + 'tituloLayer' : [ { | ||
| 1130 | + pt : " Título, escala, extensão", | ||
| 1131 | + en : "", | ||
| 1132 | + es : "" | ||
| 1133 | + } ], | ||
| 1134 | + 'editavelLayer' : [ { | ||
| 1135 | + pt : " Editável (define se o tema é editável)", | ||
| 1136 | + en : "", | ||
| 1137 | + es : "" | ||
| 1138 | + } ], | ||
| 1139 | + 'comportamentoLayer' : [ { | ||
| 1140 | + pt : " Comportamento no mapa", | ||
| 1141 | + en : "", | ||
| 1142 | + es : "" | ||
| 1143 | + } ], | ||
| 1144 | + 'disponibLayer' : [ { | ||
| 1145 | + pt : " Disponibilidade (download, wms,...)", | ||
| 1146 | + en : "", | ||
| 1147 | + es : "" | ||
| 1148 | + } ], | ||
| 1149 | + 'miscLayer' : [ { | ||
| 1150 | + pt : " Miscelânea", | ||
| 1151 | + en : "", | ||
| 1152 | + es : "" | ||
| 1153 | + } ], | ||
| 1154 | + 'adicionaClasseLayer' : [ { | ||
| 1155 | + pt : " Adicionar uma classe", | ||
| 1156 | + en : "", | ||
| 1157 | + es : "" | ||
| 1158 | + } ], | ||
| 1159 | + 'criaClassesLayer' : [ { | ||
| 1160 | + pt : " Criar classes automaticamente", | ||
| 1161 | + en : "", | ||
| 1162 | + es : "" | ||
| 1163 | + } ], | ||
| 1164 | + 'testaLayer' : [ { | ||
| 1165 | + pt : " Testar", | ||
| 1166 | + en : "", | ||
| 1167 | + es : "" | ||
| 1168 | + } ], | ||
| 1169 | + 'pluginLayer' : [ { | ||
| 1170 | + pt : "Plugin (só é possível ativar um plugin por LAYER)", | ||
| 1171 | + en : "", | ||
| 1172 | + es : "" | ||
| 1173 | + } ], | ||
| 1174 | + 'msgAdicionaNovoLayer' : [ { | ||
| 1175 | + pt : " adicionando um novo layer", | ||
| 1176 | + en : "", | ||
| 1177 | + es : "" | ||
| 1178 | + } ], | ||
| 1179 | + '' : [ { | ||
| 1180 | + pt : "", | ||
| 1181 | + en : "", | ||
| 1182 | + es : "" | ||
| 1183 | + } ], | ||
| 1124 | '' : [ { | 1184 | '' : [ { |
| 1125 | pt : "", | 1185 | pt : "", |
| 1126 | en : "", | 1186 | en : "", |
admin/js/editormapfile_layer.js
| 1 | function montaNoLayer(codigo,indice){ | 1 | function montaNoLayer(codigo,indice){ |
| 2 | - var conteudo = " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"sobeDesce('sobe','layer','"+codigo+"','"+indice+"')\" title=sobe src=\"../imagens/34.png\" />"; | ||
| 3 | - conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"sobeDesce('desce','layer','"+codigo+"','"+indice+"')\" title=desce src=\"../imagens/33.png\" />"; | ||
| 4 | - conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"excluirLayer('"+codigo+"','"+indice+"')\" title=excluir width='10px' heigth='10px' src=\"../imagens/01.png\" /> <span>"+indice+"</span>"; | 2 | + var conteudo = " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"sobeDesce('sobe','layer','"+codigo+"','"+indice+"')\" title="+ $trad("sobe",i3GEOadmin.core.dicionario) +" src=\"../imagens/34.png\" />"; |
| 3 | + conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"sobeDesce('desce','layer','"+codigo+"','"+indice+"')\" title="+ $trad("desce",i3GEOadmin.core.dicionario) +" src=\"../imagens/33.png\" />"; | ||
| 4 | + conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"excluirLayer('"+codigo+"','"+indice+"')\" title="+ $trad("excluir",i3GEOadmin.core.dicionario) +" width='10px' heigth='10px' src=\"../imagens/01.png\" /> <span>"+indice+"</span>"; | ||
| 5 | var d = {html:conteudo,id:codigo+"_"+indice,codigoMap:codigo,codigoLayer:indice}; | 5 | var d = {html:conteudo,id:codigo+"_"+indice,codigoMap:codigo,codigoLayer:indice}; |
| 6 | return d; | 6 | return d; |
| 7 | } | 7 | } |
| @@ -47,14 +47,14 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -47,14 +47,14 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 47 | d; | 47 | d; |
| 48 | if(!tree.getNodeByProperty("etiquetaDados",id)) | 48 | if(!tree.getNodeByProperty("etiquetaDados",id)) |
| 49 | { | 49 | { |
| 50 | - conteudo = "<span style=cursor:pointer; onclick=\"editorDados('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" /> Conexão com os dados</span>"; | 50 | + conteudo = "<span style=cursor:pointer; onclick=\"editorDados('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" />"+ $trad("conexaoLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 51 | d = {tipo:"etiquetaDados",etiquetaDados:id,html:conteudo}; | 51 | d = {tipo:"etiquetaDados",etiquetaDados:id,html:conteudo}; |
| 52 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); | 52 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 53 | tempNode.isLeaf = true; | 53 | tempNode.isLeaf = true; |
| 54 | } | 54 | } |
| 55 | if(!tree.getNodeByProperty("etiquetaTitulo",id)) | 55 | if(!tree.getNodeByProperty("etiquetaTitulo",id)) |
| 56 | { | 56 | { |
| 57 | - conteudo = "<span style=cursor:pointer; onclick=\"editorTitulo('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" /> Título, escala, extensão</span>"; | 57 | + conteudo = "<span style=cursor:pointer; onclick=\"editorTitulo('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" />"+ $trad("tituloLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 58 | d = {tipo:"etiquetaTitulo",etiquetaTitulo:id,html:conteudo}; | 58 | d = {tipo:"etiquetaTitulo",etiquetaTitulo:id,html:conteudo}; |
| 59 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); | 59 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 60 | tempNode.isLeaf = true; | 60 | tempNode.isLeaf = true; |
| @@ -62,7 +62,7 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -62,7 +62,7 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 62 | } | 62 | } |
| 63 | if(!tree.getNodeByProperty("etiquetaEditavel",id)) | 63 | if(!tree.getNodeByProperty("etiquetaEditavel",id)) |
| 64 | { | 64 | { |
| 65 | - conteudo = "<span style=cursor:pointer; onclick=\"editorEditavel('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" /> Editável (define se o tema é editável)</span>"; | 65 | + conteudo = "<span style=cursor:pointer; onclick=\"editorEditavel('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" />"+ $trad("editavelLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 66 | d = {tipo:"etiquetaEditavel",etiquetaEditavel:id,html:conteudo}; | 66 | d = {tipo:"etiquetaEditavel",etiquetaEditavel:id,html:conteudo}; |
| 67 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); | 67 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 68 | tempNode.isLeaf = true; | 68 | tempNode.isLeaf = true; |
| @@ -70,7 +70,7 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -70,7 +70,7 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 70 | } | 70 | } |
| 71 | if(!tree.getNodeByProperty("etiquetaComport",id)) | 71 | if(!tree.getNodeByProperty("etiquetaComport",id)) |
| 72 | { | 72 | { |
| 73 | - conteudo = "<span style=cursor:pointer; onclick=\"editorComport('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" /> Comportamento no mapa</span>"; | 73 | + conteudo = "<span style=cursor:pointer; onclick=\"editorComport('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" />"+ $trad("comportamentoLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 74 | d = {tipo:"etiquetaComport",etiquetaComport:id,html:conteudo}; | 74 | d = {tipo:"etiquetaComport",etiquetaComport:id,html:conteudo}; |
| 75 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); | 75 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 76 | tempNode.isLeaf = true; | 76 | tempNode.isLeaf = true; |
| @@ -79,7 +79,7 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -79,7 +79,7 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 79 | 79 | ||
| 80 | if(!tree.getNodeByProperty("etiquetaDispo",id)) | 80 | if(!tree.getNodeByProperty("etiquetaDispo",id)) |
| 81 | { | 81 | { |
| 82 | - conteudo = "<span style=cursor:pointer; onclick=\"editorDispo('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" /> Disponibilidade (download, wms,...)</span>"; | 82 | + conteudo = "<span style=cursor:pointer; onclick=\"editorDispo('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='' src=\"../imagens/06.png\" />"+ $trad("disponibLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 83 | d = {tipo:"etiquetaDispo",etiquetaDispo:id,html:conteudo}; | 83 | d = {tipo:"etiquetaDispo",etiquetaDispo:id,html:conteudo}; |
| 84 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); | 84 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 85 | tempNode.isLeaf = true; | 85 | tempNode.isLeaf = true; |
| @@ -88,7 +88,7 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -88,7 +88,7 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 88 | //rever | 88 | //rever |
| 89 | if(!tree.getNodeByProperty("etiquetaMetadados",id)) | 89 | if(!tree.getNodeByProperty("etiquetaMetadados",id)) |
| 90 | { | 90 | { |
| 91 | - conteudo = "<span style=cursor:pointer; onclick=\"editorMetadados('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='edita metadados' src=\"../imagens/06.png\" /> Miscelânea</span>"; | 91 | + conteudo = "<span style=cursor:pointer; onclick=\"editorMetadados('"+codigoMap+"','"+codigoLayer+"')\" ><img width='10px' heigth='10px' style=\"position:relative;top:0px\" title='edita metadados' src=\"../imagens/06.png\" />"+ $trad("miscLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 92 | d = {tipo:"etiquetaMetadados",etiquetaMetadados:id,html:conteudo}; | 92 | d = {tipo:"etiquetaMetadados",etiquetaMetadados:id,html:conteudo}; |
| 93 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); | 93 | tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 94 | tempNode.isLeaf = true; | 94 | tempNode.isLeaf = true; |
| @@ -101,19 +101,19 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -101,19 +101,19 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 101 | tempNodeR.isLeaf = false; | 101 | tempNodeR.isLeaf = false; |
| 102 | tempNodeR.enableHighlight = false; | 102 | tempNodeR.enableHighlight = false; |
| 103 | 103 | ||
| 104 | - conteudo = "<span style='cursor:pointer;' onclick=\"adicionaNovaClasse('"+codigoMap+"','"+codigoLayer+"')\" ><img style='position:relative;top:2px' src=\"../imagens/05.png\" /> Adicionar uma classe</span>"; | 104 | + conteudo = "<span style='cursor:pointer;' onclick=\"adicionaNovaClasse('"+codigoMap+"','"+codigoLayer+"')\" ><img style='position:relative;top:2px' src=\"../imagens/05.png\" />"+ $trad("adicionaClasseLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 105 | d = {html:conteudo}; | 105 | d = {html:conteudo}; |
| 106 | tempNode = new YAHOO.widget.HTMLNode(d, tempNodeR, false,true); | 106 | tempNode = new YAHOO.widget.HTMLNode(d, tempNodeR, false,true); |
| 107 | tempNode.isLeaf = true; | 107 | tempNode.isLeaf = true; |
| 108 | tempNode.enableHighlight = false; | 108 | tempNode.enableHighlight = false; |
| 109 | 109 | ||
| 110 | - conteudo = "<span style='cursor:pointer;' onclick=\"classesAuto('"+codigoMap+"','"+codigoLayer+"')\" ><img style='position:relative;top:2px' src=\"../imagens/classificar.gif\" /> Criar classes automaticamente</span>"; | 110 | + conteudo = "<span style='cursor:pointer;' onclick=\"classesAuto('"+codigoMap+"','"+codigoLayer+"')\" ><img style='position:relative;top:2px' src=\"../imagens/classificar.gif\" />"+ $trad("criaClassesLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 111 | d = {html:conteudo}; | 111 | d = {html:conteudo}; |
| 112 | tempNode = new YAHOO.widget.HTMLNode(d, tempNodeR, false,true); | 112 | tempNode = new YAHOO.widget.HTMLNode(d, tempNodeR, false,true); |
| 113 | tempNode.isLeaf = true; | 113 | tempNode.isLeaf = true; |
| 114 | tempNode.enableHighlight = false; | 114 | tempNode.enableHighlight = false; |
| 115 | 115 | ||
| 116 | - conteudo = "<span style='cursor:pointer;' onclick=\"window.open('../../testamapfile.php?solegenda=sim&map="+no.data.codigoMap+"')\" > <img style='position:relative;top:2px' src=\"../imagens/41.png\" /> Testar</span>"; | 116 | + conteudo = "<span style='cursor:pointer;' onclick=\"window.open('../../testamapfile.php?solegenda=sim&map="+no.data.codigoMap+"')\" > <img style='position:relative;top:2px' src=\"../imagens/41.png\" />"+ $trad("testaLayer",i3GEOadmin.editormapfile.dicionario) +"</span>"; |
| 117 | d = {html:conteudo}; | 117 | d = {html:conteudo}; |
| 118 | tempNode = new YAHOO.widget.HTMLNode(d, tempNodeR, false,true); | 118 | tempNode = new YAHOO.widget.HTMLNode(d, tempNodeR, false,true); |
| 119 | tempNode.isLeaf = true; | 119 | tempNode.isLeaf = true; |
| @@ -132,7 +132,7 @@ function montaParametrosTemas(no,dados,redesenha) | @@ -132,7 +132,7 @@ function montaParametrosTemas(no,dados,redesenha) | ||
| 132 | 132 | ||
| 133 | if(!tree.getNodeByProperty("pluginI3geo",id)) | 133 | if(!tree.getNodeByProperty("pluginI3geo",id)) |
| 134 | { | 134 | { |
| 135 | - d = {id:id,codigoLayer:codigoLayer,tipo:"pluginI3geo",etiquetaPluginI3geo:id,html:"<i> Plugin (só é possível ativar um plugin por LAYER)</i>"}; | 135 | + d = {id:id,codigoLayer:codigoLayer,tipo:"pluginI3geo",etiquetaPluginI3geo:id,html:"<i> "+ $trad("pluginLayer",i3GEOadmin.editormapfile.dicionario) +"</i>"}; |
| 136 | tempNodeR = new YAHOO.widget.HTMLNode(d, no, false,true); | 136 | tempNodeR = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 137 | tempNodeR.isLeaf = false; | 137 | tempNodeR.isLeaf = false; |
| 138 | tempNodeR.enableHighlight = false; | 138 | tempNodeR.enableHighlight = false; |
| @@ -161,8 +161,8 @@ function pegaPluginLayer(plugin,codigoMap,codigoLayer){ | @@ -161,8 +161,8 @@ function pegaPluginLayer(plugin,codigoMap,codigoLayer){ | ||
| 161 | core_montaEditor("","450px","500px","","Plugin",true,false,false); | 161 | core_montaEditor("","450px","500px","","Plugin",true,false,false); |
| 162 | var sUrl = "../php/editormapfile.php?funcao=pegaPlugin&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; | 162 | var sUrl = "../php/editormapfile.php?funcao=pegaPlugin&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; |
| 163 | var montaEditorPlugin = function(retorno){ | 163 | var montaEditorPlugin = function(retorno){ |
| 164 | - var ins = "<input type=button title='Salvar' value='Salvar' id=salvarPlugin />" | ||
| 165 | - + "<input type=button title='Remover' value='Remover' id=removerPlugin />"; | 164 | + var ins = "<input type=button title='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' value='"+ $trad("salva",i3GEOadmin.core.dicionario) +"' id=salvarPlugin />" |
| 165 | + + "<input type=button title='"+ $trad("remove",i3GEOadmin.core.dicionario) +"' value='"+ $trad("remove",i3GEOadmin.core.dicionario) +"' id=removerPlugin />"; | ||
| 166 | //pega os campos do formulario | 166 | //pega os campos do formulario |
| 167 | ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); | 167 | ins += i3GEO.pluginI3geo.formAdmin(plugin,retorno); |
| 168 | var ajuda = "<p>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; | 168 | var ajuda = "<p>Mais informações:<br><a href='"+i3GEO.pluginI3geo.linkAjuda(plugin)+"' target=_blank >" + i3GEO.pluginI3geo.linkAjuda(plugin) + "</a></p>"; |
| @@ -176,7 +176,7 @@ function pegaPluginLayer(plugin,codigoMap,codigoLayer){ | @@ -176,7 +176,7 @@ function pegaPluginLayer(plugin,codigoMap,codigoLayer){ | ||
| 176 | salvarDadosEditorPlugin($i("editor_bd"),"",codigoMap,codigoLayer); | 176 | salvarDadosEditorPlugin($i("editor_bd"),"",codigoMap,codigoLayer); |
| 177 | } }}); | 177 | } }}); |
| 178 | }; | 178 | }; |
| 179 | - core_pegaDados("Obtendo dados...",sUrl,montaEditorPlugin); | 179 | + core_pegaDados($trad("obtemDados",i3GEOadmin.core.dicionario),sUrl,montaEditorPlugin); |
| 180 | } | 180 | } |
| 181 | /* | 181 | /* |
| 182 | Function: adicionaNovoLayer | 182 | Function: adicionaNovoLayer |
| @@ -188,7 +188,7 @@ Adiciona um novo layer | @@ -188,7 +188,7 @@ Adiciona um novo layer | ||
| 188 | function adicionaNovoLayer(codigoMap) | 188 | function adicionaNovoLayer(codigoMap) |
| 189 | { | 189 | { |
| 190 | core_carregando("ativa"); | 190 | core_carregando("ativa"); |
| 191 | - core_carregando(" adicionando um novo layer"); | 191 | + core_carregando($trad("msgAdicionaNovoLayer",i3GEOadmin.editormapfile.dicionario)); |
| 192 | sUrl = "../php/editormapfile.php?funcao=criarNovoLayer&codigoMap="+codigoMap; | 192 | sUrl = "../php/editormapfile.php?funcao=criarNovoLayer&codigoMap="+codigoMap; |
| 193 | var callback = | 193 | var callback = |
| 194 | { | 194 | { |
| @@ -198,7 +198,7 @@ function adicionaNovoLayer(codigoMap) | @@ -198,7 +198,7 @@ function adicionaNovoLayer(codigoMap) | ||
| 198 | { | 198 | { |
| 199 | if(YAHOO.lang.JSON.parse(o.responseText) == "erro") | 199 | if(YAHOO.lang.JSON.parse(o.responseText) == "erro") |
| 200 | { | 200 | { |
| 201 | - core_carregando("<span style=color:red >Erro</span>"); | 201 | + core_carregando("<span style=color:red >"+ $trad("erro",i3GEOadmin.core.dicionario) +"</span>"); |
| 202 | setTimeout("core_carregando('desativa')",3000); | 202 | setTimeout("core_carregando('desativa')",3000); |
| 203 | } | 203 | } |
| 204 | else | 204 | else |
| @@ -231,7 +231,7 @@ Exclui um layer | @@ -231,7 +231,7 @@ Exclui um layer | ||
| 231 | */ | 231 | */ |
| 232 | function excluirLayer(codigoMap,codigoLayer) | 232 | function excluirLayer(codigoMap,codigoLayer) |
| 233 | { | 233 | { |
| 234 | - var mensagem = " excluindo "+codigoLayer; | 234 | + var mensagem = $trad("msgExcluiMap",i3GEOadmin.core.dicionario)+codigoLayer; |
| 235 | var no = tree.getNodeByProperty("id",codigoMap+"_"+codigoLayer); | 235 | var no = tree.getNodeByProperty("id",codigoMap+"_"+codigoLayer); |
| 236 | var sUrl = "../php/editormapfile.php?funcao=excluirLayer&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; | 236 | var sUrl = "../php/editormapfile.php?funcao=excluirLayer&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; |
| 237 | core_excluiNoTree(sUrl,no,mensagem,codigoLayer); | 237 | core_excluiNoTree(sUrl,no,mensagem,codigoLayer); |