r3618 - in trunk/lima-swing/src/main: java/org/chorem/lima/ui/importexport resources resources/i18n
Author: mallon Date: 2012-08-20 16:04:19 +0200 (Mon, 20 Aug 2012) New Revision: 3618 Url: http://chorem.org/repositories/revision/lima/3618 Log: Correction de l affichage des messages et des clefs d internationalisation, lors des imports pour les plans BCR et TVA. Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties trunk/lima-swing/src/main/resources/log4j.properties Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2012-08-20 13:21:25 UTC (rev 3617) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2012-08-20 14:04:19 UTC (rev 3618) @@ -202,25 +202,39 @@ @Override protected void done() { try { + + if (log.isDebugEnabled()) { + log.debug("importMode : " + importMode); + } + //hidde wait dialog panel waitView.setVisible(false); // display result dialog if (verboseMode) { String result = get(); - if (!result.equals("")) { + if (result.equals("")) { JOptionPane.showMessageDialog(viewComponent, _("lima.ui.importexport.importerror"), _("lima.ui.importexport.importtitle"), JOptionPane.ERROR_MESSAGE); } else { if (importMode) { + if (log.isDebugEnabled()) { + log.debug("importMode"); + } //special message when importing a VAT PDF if (importExportMethodeF.equals(ImportExportEnum.PDF_VAT_IMPORT)) { + if (log.isDebugEnabled()) { + log.debug("PDF_VAT_IMPORT"); + } JOptionPane.showMessageDialog( waitView, _("lima.ui.importexport.import.vatpdfimport"), _("lima.ui.importexport.import"), JOptionPane.INFORMATION_MESSAGE); } else { + if (log.isDebugEnabled()) { + log.debug("import.terminated"); + } JOptionPane.showMessageDialog( waitView, _("lima.ui.importexport.import.terminated"), @@ -228,6 +242,9 @@ JOptionPane.INFORMATION_MESSAGE); } } else { + if (log.isDebugEnabled()) { + log.debug("export.terminated"); + } JOptionPane.showMessageDialog( waitView, _("lima.ui.importexport.export.terminated"), Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties =================================================================== --- trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2012-08-20 13:21:25 UTC (rev 3617) +++ trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2012-08-20 14:04:19 UTC (rev 3618) @@ -326,8 +326,8 @@ lima.ui.importexport.import.vatpdfimport=Le PDF a bien été importé dans le répertoire des ressources de Lima lima.ui.importexport.importcsv=Import/Export CSV lima.ui.importexport.importebp=Import/Export EBP -lima.ui.importexport.importerror= -lima.ui.importexport.importtitle= +lima.ui.importexport.importerror=Echec de l'import +lima.ui.importexport.importtitle=Erreur d'import lima.ui.importexport.vatstatements=Plan TVA lima.ui.importexport.wait=Traitement en cours… lima.ui.importexport.waittitle=Traitement en cours Modified: trunk/lima-swing/src/main/resources/log4j.properties =================================================================== --- trunk/lima-swing/src/main/resources/log4j.properties 2012-08-20 13:21:25 UTC (rev 3617) +++ trunk/lima-swing/src/main/resources/log4j.properties 2012-08-20 14:04:19 UTC (rev 3618) @@ -61,4 +61,5 @@ log4j.logger.org.chorem.lima.ui.accountsreports.AccountsReportsViewHandler=DEBUG log4j.logger.org.chorem.lima.business.ejb.ReportServiceImpl=DEBUG log4j.logger.org.chorem.lima.ui.MainViewHandler=DEBUG -log4j.logger.org.chorem.lima.business.ejb.FinancialStatementServiceImpl=DEBUG \ No newline at end of file +log4j.logger.org.chorem.lima.business.ejb.FinancialStatementServiceImpl=DEBUG +log4j.logger.org.chorem.lima.ui.importexport.ImportExport=DEBUG \ No newline at end of file
participants (1)
-
mallon@users.chorem.org