Revision 40951

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/java/org/gvsig/editing/StopEditing.java
321 321
	                        "       " + PluginServices.getText(this, "_Descartar") + "       ",
322 322
	                        PluginServices.getText(this, "_Continuar") };
323 323
	                
324
	                JPanel explanation_panel = getExplanationPanel(layer.getName());
324
	                
325
	                String question = Messages.getText("realmente_desea_guardar_la_capa");
326
	                question = question + " '" + layer.getName() + "'?";
327
	                String firstLabel = Messages.getText("_Guardar");
328
	                String firstDesc = Messages.getText("_Save_changes_performed");
329
	                
330
	                JPanel explanation_panel = getExplanationPanel(
331
	                    question, firstLabel, firstDesc);
325 332

  
326 333
	                resp = JOptionPane
327 334
	                        .showOptionDialog(
......
349 356
	            // ========================================
350 357
	            // Layer cannot save changes:
351 358
	            
352
	            Object[] options = {
353
	                    PluginServices.getText(this, "export"),
354
	                    PluginServices.getText(this,
355
	                            "finish_editing_without_saving_changes"),
356
	                    PluginServices.getText(this, "continue_editing") };
359
                Object[] options = {
360
                    PluginServices.getText(this, "export"),
361
                    "       " + PluginServices.getText(this, "_Descartar") + "       ",
362
                    PluginServices.getText(this, "_Continuar") };
363
                
364
                String question = Messages.getText(
365
                    "no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_que_desea_hacer");
366
                String firstLabel = Messages.getText("export");
367
                String firstDesc = Messages.getText("_Export_to_another_format");
368
                
369
                JPanel explanation_panel = getExplanationPanel(
370
                    question, firstLabel, firstDesc);
357 371

  
358 372
	            resp = JOptionPane
359 373
	                    .showOptionDialog(
360 374
	                            (Component) PluginServices.getMainFrame(),
361
	                            PluginServices
362
	                                    .getText(
363
	                                            this,
364
	                                            "no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_que_desea_hacer")
365
	                                    + " : " + layer.getName(), PluginServices
366
	                                    .getText(this, "stop_edition"),
375
	                            explanation_panel,
376
	                            PluginServices.getText(this, "stop_edition"),
367 377
	                            JOptionPane.YES_NO_CANCEL_OPTION,
368 378
	                            JOptionPane.QUESTION_MESSAGE, null, options,
369 379
	                            options[2]);
......
386 396

  
387 397

  
388 398
    private JPanel getExplanationPanel(
389
        String layer_name) {
399
        String translatedQuestion,
400
        String translatedFirstTag,
401
        String translatedFirstDescription) {
390 402
        
391 403
        JPanel resp = new JPanel(new BorderLayout(10, 10));
392 404
        
393
        String msg = Messages.getText("realmente_desea_guardar_la_capa");
394
        msg = msg + " '" + layer_name + "'?";
395
        JLabel topLabel = new JLabel(msg);
405
        JLabel topLabel = new JLabel(translatedQuestion);
396 406
        
397 407
        JPanel mainPanel = new JPanel(new GridBagLayout());
398 408
        GridBagConstraints cc = new GridBagConstraints();
......
405 415
        
406 416
        Font boldf = mainPanel.getFont().deriveFont(Font.BOLD);
407 417
        
408
        JLabel lbl = new JLabel(Messages.getText("_Guardar"));
418
        JLabel lbl = new JLabel(translatedFirstTag);
409 419
        lbl.setFont(boldf);
410 420
        mainPanel.add(lbl, cc);
411 421
        cc.gridx = 1;
412
        mainPanel.add(new JLabel(Messages.getText("_Save_changes_performed")), cc);
422
        mainPanel.add(new JLabel(translatedFirstDescription), cc);
413 423
        
414 424
        cc.gridx = 0;
415 425
        cc.gridy = 1;
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/resources-plugin/i18n/text.properties
197 197
next_point=Siguiente punto
198 198
no=No
199 199
no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_no_se_guardaran_desea_continuar=No existe writer para este formato de capa o no tiene permisos de escritura. Los datos no se guardaran. \u00c2\u00bfDesea continuar?
200
no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_que_desea_hacer=No existe writer para este formato de capa o no tiene permisos de escritura. \u00bfQu\u00e9 desea hacer?
200
no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_que_desea_hacer=No existe writer para este formato de capa o no tiene permisos de escritura.\n\u00bfQu\u00e9 desea hacer?
201 201
no_puede_continuar=No puede continuar.
202 202
num_lados_insuficiente=N\u00famero de lados insuficiente
203 203
numeric=Num?rico
......
402 402
_Unable_to_save_edits_The_cause_is=No es posible guardar los cambios. La causa es
403 403
_Include_alphanumeric_attributes_Question=?Incluir campos alfanum?ricos?
404 404
_Unable_to_complete_operation_Probably_invalid_polygon=No se pudo realizar la operaci?n. Quiz? se ha digitalizado un pol?gono no v?lido.
405
_Export_to_another_format=Exportar a otro formato
405 406

  
406 407

  
407 408

  
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties
195 195
next_point=Next point
196 196
no=No
197 197
no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_no_se_guardaran_desea_continuar=There are not writer for this layer format or you don't have write permissions
198
no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_que_desea_hacer=There are not writer for this layer format or you don't have write permissions. What do you want to do?
198
no_existe_writer_para_este_formato_de_capa_o_no_tiene_permisos_de_escritura_los_datos_que_desea_hacer=There are not writer for this layer format or you don't have write permissions.\nWhat do you want to do?
199 199
no_puede_continuar=Can't continue
200 200
num_lados_insuficiente=not enough
201 201
numeric=Numeric
......
399 399
_Unable_to_save_edits_The_cause_is=Unable to save edits. The cause is
400 400
_Include_alphanumeric_attributes_Question=Include alphanumeric attributes?
401 401
_Unable_to_complete_operation_Probably_invalid_polygon=Unable to complete operation. Probably due to invalid input polygon.
402
_Export_to_another_format=Export to another format
402 403

  
403 404

  
404 405

  

Also available in: Unified diff