From f1f732d7ae7e6bc5db222106c94e84e232bcdb50 Mon Sep 17 00:00:00 2001 From: tsvikruha Date: Tue, 7 Apr 2015 21:19:48 -0500 Subject: [PATCH] IDEMPIERE-2238 Printformat header not translated (report) --- .../src/org/compiere/print/layout/LayoutEngine.java | 2 +- .../WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java b/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java index 300bfb287e..0008f0985a 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java +++ b/org.adempiere.base/src/org/compiere/print/layout/LayoutEngine.java @@ -265,7 +265,7 @@ public class LayoutEngine implements Pageable, Printable, Doc m_printFont = MPrintFont.get (format.getAD_PrintFont_ID()); // Print Context - Env.setContext(m_printCtx, Page.CONTEXT_REPORTNAME, m_format.getName()); + Env.setContext(m_printCtx, Page.CONTEXT_REPORTNAME, m_format.get_Translation(MPrintFormat.COLUMNNAME_Name)); Env.setContext(m_printCtx, Page.CONTEXT_HEADER, Env.getHeader(m_printCtx, 0)); Env.setContext(m_printCtx, Env.LANGUAGE, m_format.getLanguage().getAD_Language()); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java index 9bd50ab6dc..95b1b339ec 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java @@ -213,7 +213,8 @@ public class ZkReportViewer extends Window implements EventListener, ITab } m_isCanExport = MRole.getDefault().isCanExport(m_AD_Table_ID); - setTitle(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Report") + ": " + m_reportEngine.getName())); + setTitle(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Report") + ": " + + m_reportEngine.getPrintFormat().get_Translation(MPrintFormat.COLUMNNAME_Name))); addEventListener(ON_RENDER_REPORT_EVENT, this); }