From ce3406650e9e6cb4a62e885b0c27ae89b9c78af6 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 18 Jul 2014 19:10:31 -0500 Subject: [PATCH] IDEMPIERE-2079 2Pack problem exporting/importing translation tabs --- .../pipo2/handler/GenericPOElementHandler.java | 14 ++++++++++---- .../org/adempiere/pipo2/GridTab2PackExporter.java | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/GenericPOElementHandler.java b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/GenericPOElementHandler.java index 7eebb5f8d5..ed61cc9148 100644 --- a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/GenericPOElementHandler.java +++ b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/GenericPOElementHandler.java @@ -53,13 +53,13 @@ import org.xml.sax.helpers.AttributesImpl; */ public class GenericPOElementHandler extends AbstractElementHandler { - private String tableName; + private String m_tableName; public GenericPOElementHandler() { } public GenericPOElementHandler(String tableName) { - this.tableName = tableName; + this.m_tableName = tableName; } public void startElement(PIPOContext ctx, Element element) throws SAXException { @@ -223,6 +223,12 @@ public class GenericPOElementHandler extends AbstractElementHandler { document.startElement("", "", tables[index], atts); PoExporter filler = new PoExporter(ctx, document, po); filler.export(excludes, true); + ctx.packOut.getCtx().ctx.put("Table_Name",tables[index]); + try { + new CommonTranslationHandler().packOut(ctx.packOut,document,null,po.get_ID()); + } catch(Exception e) { + if (log.isLoggable(Level.INFO)) log.info(e.toString()); + } } } for (int i=index+1; i gridTab.getTabLevel()+1) { sql = sql.append(">").append(child.getTableName()); } else {