Implement some incomplete translation on zkwebui

This commit is contained in:
Carlos Ruiz 2011-03-25 23:18:53 -05:00
parent bb55b5582a
commit d37279076f
8 changed files with 83 additions and 56 deletions

View File

@ -0,0 +1,15 @@
-- 11-dic-2010 19:24:42 COT
-- Translate report viewer on zkwebui
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53125,0,TO_DATE('2010-12-11 19:24:41','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Files of Type:','I',TO_DATE('2010-12-11 19:24:41','YYYY-MM-DD HH24:MI:SS'),100,'FilesOfType')
;
-- 11-dic-2010 19:24:42 COT
-- Translate report viewer on zkwebui
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53125 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 11-dic-2010 19:24:54 COT
-- Translate report viewer on zkwebui
UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Archivos de Tipo:',Updated=TO_DATE('2010-12-11 19:24:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53125 AND AD_Language LIKE 'es_%'
;

View File

@ -0,0 +1,15 @@
-- 11-dic-2010 19:24:42 COT
-- Translate report viewer on zkwebui
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53125,0,TO_TIMESTAMP('2010-12-11 19:24:41','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Files of Type:','I',TO_TIMESTAMP('2010-12-11 19:24:41','YYYY-MM-DD HH24:MI:SS'),100,'FilesOfType')
;
-- 11-dic-2010 19:24:42 COT
-- Translate report viewer on zkwebui
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53125 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 11-dic-2010 19:24:54 COT
-- Translate report viewer on zkwebui
UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Archivos de Tipo:',Updated=TO_TIMESTAMP('2010-12-11 19:24:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53125 AND AD_Language LIKE 'es_%'
;

View File

@ -203,7 +203,7 @@ public class ArchiveViewer extends Archive
1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,0,0,0), 0, 0)); 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,0,0,0), 0, 0));
queryPanel.add(createdQTo, new GridBagConstraints(2, line, queryPanel.add(createdQTo, new GridBagConstraints(2, line,
1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,0,0,0), 0, 0)); 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5,0,0,0), 0, 0));
panel.add(queryPanel, "Query"); panel.add(queryPanel, Msg.getMsg(Env.getCtx(), "ViewerQuery"));
// //
// //
line = 0; line = 0;
@ -255,7 +255,7 @@ public class ArchiveViewer extends Archive
viewEnterPanel.setPreferredSize(new Dimension(220,500)); viewEnterPanel.setPreferredSize(new Dimension(220,500));
updateArchive.addActionListener(this); updateArchive.addActionListener(this);
viewPanelSplit.setRightComponent(viewEnterPanel); viewPanelSplit.setRightComponent(viewEnterPanel);
panel.add(viewPanel, "View"); panel.add(viewPanel, Msg.getMsg(Env.getCtx(), "ViewerResult"));
// //
confirmPanel.addActionListener(this); confirmPanel.addActionListener(this);
updateQDisplay(); updateQDisplay();
@ -359,7 +359,7 @@ public class ArchiveViewer extends Archive
return; return;
} }
// //
positionInfo.setText(m_index+1 + " of " + m_archives.length); positionInfo.setText(m_index+1 + " " + Msg.getMsg(Env.getCtx(), "of") + " " + m_archives.length);
MArchive ar = m_archives[m_index]; MArchive ar = m_archives[m_index];
createdByField.setText(ar.getCreatedByName()); createdByField.setText(ar.getCreatedByName());
createdField.setValue(ar.getCreated()); createdField.setValue(ar.getCreated());

View File

@ -30,6 +30,7 @@ import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.Checkbox; import org.adempiere.webui.component.Checkbox;
import org.adempiere.webui.component.ConfirmPanel; import org.adempiere.webui.component.ConfirmPanel;
import org.adempiere.webui.component.Datebox; import org.adempiere.webui.component.Datebox;
import org.adempiere.webui.component.DatetimeBox;
import org.adempiere.webui.component.Grid; import org.adempiere.webui.component.Grid;
import org.adempiere.webui.component.Label; import org.adempiere.webui.component.Label;
import org.adempiere.webui.component.ListItem; import org.adempiere.webui.component.ListItem;
@ -72,11 +73,6 @@ import org.zkoss.zul.Iframe;
public class WArchiveViewer extends Archive implements IFormController, EventListener public class WArchiveViewer extends Archive implements IFormController, EventListener
{ {
/**
*
*/
private static final long serialVersionUID = 1861963456140146011L;
private CustomForm form = new CustomForm(); private CustomForm form = new CustomForm();
// private Vbox queryPanel = new Vbox(); // private Vbox queryPanel = new Vbox();
@ -105,7 +101,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
private Label positionInfo = new Label("."); private Label positionInfo = new Label(".");
private Label createdByLabel = new Label(Msg.translate(Env.getCtx(), "CreatedBy")); private Label createdByLabel = new Label(Msg.translate(Env.getCtx(), "CreatedBy"));
private Textbox createdByField = new Textbox(); private Textbox createdByField = new Textbox();
private Datebox createdField = new Datebox(); private DatetimeBox createdField = new DatetimeBox();
private Label nameLabel = new Label(Msg.translate(Env.getCtx(), "Name")); private Label nameLabel = new Label(Msg.translate(Env.getCtx(), "Name"));
private Textbox nameField = new Textbox(); private Textbox nameField = new Textbox();
@ -195,19 +191,19 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
createdByQField.setRows(1); createdByQField.setRows(1);
updateArchive.setImage("/images/Ok24.png"); updateArchive.setImage("/images/Ok24.png");
updateArchive.setTooltiptext("Save Archive"); updateArchive.setTooltiptext(Msg.getMsg(Env.getCtx(), "Update"));
updateArchive.addEventListener(Events.ON_CLICK, this); updateArchive.addEventListener(Events.ON_CLICK, this);
bRefresh.setImage("/images/Refresh24.png"); bRefresh.setImage("/images/Refresh24.png");
bRefresh.setTooltiptext("Refresh"); bRefresh.setTooltiptext(Msg.getMsg(Env.getCtx(), "Refresh"));
bRefresh.addEventListener(Events.ON_CLICK, this); bRefresh.addEventListener(Events.ON_CLICK, this);
bBack.setImage("/images/Parent24.png"); bBack.setImage("/images/Parent24.png");
bBack.setTooltiptext("Back"); bBack.setTooltiptext(Msg.getMsg(Env.getCtx(), "Previous"));
bBack.addEventListener(Events.ON_CLICK, this); bBack.addEventListener(Events.ON_CLICK, this);
bNext.setImage("/images/Detail24.png"); bNext.setImage("/images/Detail24.png");
bNext.setTooltiptext("Next"); bNext.setTooltiptext(Msg.getMsg(Env.getCtx(), "Next"));
bNext.addEventListener(Events.ON_CLICK, this); bNext.addEventListener(Events.ON_CLICK, this);
nameField.addEventListener(Events.ON_CHANGE, this); nameField.addEventListener(Events.ON_CHANGE, this);
@ -319,7 +315,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
Tabpanel tabQueryPanel = new Tabpanel(); Tabpanel tabQueryPanel = new Tabpanel();
tabQueryPanel.appendChild(div); tabQueryPanel.appendChild(div);
Tab tabQuery = new Tab("Query"); Tab tabQuery = new Tab(Msg.getMsg(Env.getCtx(), "ViewerQuery"));
tabpanels.appendChild(tabQueryPanel); tabpanels.appendChild(tabQueryPanel);
tabs.appendChild(tabQuery); tabs.appendChild(tabQuery);
@ -415,10 +411,11 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
div.appendChild(updateArchive); div.appendChild(updateArchive);
row.appendChild(div); row.appendChild(div);
createdByField.setEnabled(false); createdByField.setReadonly(true);
createdField.setEnabled(false); createdField.getDatebox().setReadonly(true);
createdField.getTimebox().setReadonly(true);
Tab tabView = new Tab("View"); Tab tabView = new Tab(Msg.getMsg(Env.getCtx(), "ViewerResult"));
Tabpanel tabViewPanel = new Tabpanel(); Tabpanel tabViewPanel = new Tabpanel();
Hbox boxViewSeparator = new Hbox(); Hbox boxViewSeparator = new Hbox();
@ -547,7 +544,7 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
return; return;
} }
positionInfo.setValue(m_index+1 + " of " + m_archives.length); positionInfo.setValue(m_index+1 + " " + Msg.getMsg(Env.getCtx(), "of") + " " + m_archives.length);
MArchive ar = m_archives[m_index]; MArchive ar = m_archives[m_index];
createdByField.setText(ar.getCreatedByName()); createdByField.setText(ar.getCreatedByName());
createdField.setValue(ar.getCreated()); createdField.setValue(ar.getCreated());

View File

@ -105,7 +105,7 @@ public class WEditorPopupMenu extends Menupopup implements EventListener
{ {
requeryItem = new Menuitem(); requeryItem = new Menuitem();
requeryItem.setAttribute(EVENT_ATTRIBUTE, REQUERY_EVENT); requeryItem.setAttribute(EVENT_ATTRIBUTE, REQUERY_EVENT);
requeryItem.setLabel("ReQuery"); requeryItem.setLabel(Msg.getMsg(Env.getCtx(), "Refresh"));
requeryItem.setImage("/images/Refresh16.png"); requeryItem.setImage("/images/Refresh16.png");
requeryItem.addEventListener(Events.ON_CLICK, this); requeryItem.addEventListener(Events.ON_CLICK, this);
this.appendChild(requeryItem); this.appendChild(requeryItem);
@ -125,7 +125,7 @@ public class WEditorPopupMenu extends Menupopup implements EventListener
{ {
newItem = new Menuitem(); newItem = new Menuitem();
newItem.setAttribute(EVENT_ATTRIBUTE, NEW_EVENT); newItem.setAttribute(EVENT_ATTRIBUTE, NEW_EVENT);
newItem.setLabel(Msg.getMsg(Env.getCtx(), "NewRecord")); newItem.setLabel(Msg.getMsg(Env.getCtx(), "New"));
newItem.setImage("/images/New16.png"); newItem.setImage("/images/New16.png");
newItem.addEventListener(Events.ON_CLICK, this); newItem.addEventListener(Events.ON_CLICK, this);
this.appendChild(newItem); this.appendChild(newItem);
@ -136,7 +136,7 @@ public class WEditorPopupMenu extends Menupopup implements EventListener
{ {
updateItem = new Menuitem(); updateItem = new Menuitem();
updateItem.setAttribute(EVENT_ATTRIBUTE, UPDATE_EVENT); updateItem.setAttribute(EVENT_ATTRIBUTE, UPDATE_EVENT);
updateItem.setLabel("Update Record"); updateItem.setLabel(Msg.getMsg(Env.getCtx(), "Update"));
updateItem.setImage("/images/InfoBPartner16.png"); updateItem.setImage("/images/InfoBPartner16.png");
updateItem.addEventListener(Events.ON_CLICK, this); updateItem.addEventListener(Events.ON_CLICK, this);
this.appendChild(updateItem); this.appendChild(updateItem);

View File

@ -76,6 +76,7 @@ import org.compiere.util.DB;
import org.compiere.util.DisplayType; import org.compiere.util.DisplayType;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
import org.compiere.util.Util;
import org.compiere.util.WebDoc; import org.compiere.util.WebDoc;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.Executions;
@ -1702,7 +1703,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
div.appendChild(hbox); div.appendChild(hbox);
Button btnOk = new Button(); Button btnOk = new Button();
btnOk.setLabel("OK"); btnOk.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "OK")));
btnOk.setImage("/images/Ok16.png"); btnOk.setImage("/images/Ok16.png");
btnOk.addEventListener(Events.ON_CLICK, new EventListener() btnOk.addEventListener(Events.ON_CLICK, new EventListener()
{ {
@ -1745,7 +1746,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
hbox.appendChild(btnOk); hbox.appendChild(btnOk);
Button btnCancel = new Button(); Button btnCancel = new Button();
btnCancel.setLabel("Cancel"); btnCancel.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Cancel")));
btnCancel.setImage("/images/Cancel16.png"); btnCancel.setImage("/images/Cancel16.png");
btnCancel.addEventListener(Events.ON_CLICK, new EventListener() btnCancel.addEventListener(Events.ON_CLICK, new EventListener()
{ {

View File

@ -137,14 +137,12 @@ public class WLocatorDialog extends Window implements EventListener
private void initComponents() private void initComponents()
{ {
txtWarehouse.setEnabled(false); lblLocator.setValue(Msg.translate(Env.getCtx(), "M_Locator_ID"));
lblWarehouse.setValue(Msg.translate(Env.getCtx(), "M_Warehouse_ID"));
lblLocator.setValue("Locator"); lblAisleX.setValue(Msg.getElement(Env.getCtx(), "X"));
lblWarehouse.setValue("Warehouse"); lblBinY.setValue(Msg.getElement(Env.getCtx(), "Y"));
lblAisleX.setValue("Aisle (X)"); lblLevelZ.setValue(Msg.getElement(Env.getCtx(), "Z"));
lblBinY.setValue("Bin (Y)"); lblKey.setValue(Msg.translate(Env.getCtx(), "Value"));
lblLevelZ.setValue("Level (Z)");
lblKey.setValue("Key");
Hbox boxLocator = new Hbox(); Hbox boxLocator = new Hbox();
boxLocator.setWidth("100%"); boxLocator.setWidth("100%");
@ -162,7 +160,7 @@ public class WLocatorDialog extends Window implements EventListener
boxCheckbox.setWidths("30%, 70%"); boxCheckbox.setWidths("30%, 70%");
boxCheckbox.setStyle("text-align:left"); boxCheckbox.setStyle("text-align:left");
chkCreateNew.setLabel(Msg.getMsg(Env.getCtx(), "Create New Record")); chkCreateNew.setLabel(Msg.getMsg(Env.getCtx(), "CreateNew"));
boxCheckbox.appendChild(new Label()); boxCheckbox.appendChild(new Label());
boxCheckbox.appendChild(chkCreateNew); boxCheckbox.appendChild(chkCreateNew);
@ -368,6 +366,7 @@ public class WLocatorDialog extends Window implements EventListener
//lWarehouseInfo.setVisible(!sel); //lWarehouseInfo.setVisible(!sel);
txtWarehouse.setVisible(!sel); txtWarehouse.setVisible(!sel);
txtWarehouse.setReadonly(true);
txtAisleX.setReadonly(!sel); txtAisleX.setReadonly(!sel);
txtBinY.setReadonly(!sel); txtBinY.setReadonly(!sel);
txtLevelZ.setReadonly(!sel); txtLevelZ.setReadonly(!sel);

View File

@ -201,48 +201,48 @@ public class ZkReportViewer extends Window implements EventListener {
previewType.setSelectedIndex(0); //fallback to PDF previewType.setSelectedIndex(0); //fallback to PDF
labelDrill.setValue(Msg.getMsg(m_ctx, "Drill") + ": "); labelDrill.setValue(Msg.getMsg(Env.getCtx(), "Drill") + ": ");
toolBar.appendChild(labelDrill); toolBar.appendChild(labelDrill);
comboDrill.setMold("select"); comboDrill.setMold("select");
comboDrill.setTooltiptext(Msg.getMsg(m_ctx, "Drill")); comboDrill.setTooltiptext(Msg.getMsg(Env.getCtx(), "Drill"));
toolBar.appendChild(comboDrill); toolBar.appendChild(comboDrill);
toolBar.appendChild(new Separator("vertical")); toolBar.appendChild(new Separator("vertical"));
comboReport.setMold("select"); comboReport.setMold("select");
comboReport.setTooltiptext(Msg.translate(m_ctx, "AD_PrintFormat_ID")); comboReport.setTooltiptext(Msg.translate(Env.getCtx(), "AD_PrintFormat_ID"));
toolBar.appendChild(comboReport); toolBar.appendChild(comboReport);
summary.setText(Msg.getMsg(m_ctx, "Summary")); summary.setText(Msg.getMsg(Env.getCtx(), "Summary"));
toolBar.appendChild(summary); toolBar.appendChild(summary);
bCustomize.setImage("/images/Preference24.png"); bCustomize.setImage("/images/Preference24.png");
bCustomize.setTooltiptext("Customize Report"); bCustomize.setTooltiptext(Msg.getMsg(Env.getCtx(), "PrintCustomize"));
toolBar.appendChild(bCustomize); toolBar.appendChild(bCustomize);
bCustomize.addEventListener(Events.ON_CLICK, this); bCustomize.addEventListener(Events.ON_CLICK, this);
bFind.setImage("/images/Find24.png"); bFind.setImage("/images/Find24.png");
bFind.setTooltiptext("Lookup Record"); bFind.setTooltiptext(Msg.getMsg(Env.getCtx(), "Find"));
toolBar.appendChild(bFind); toolBar.appendChild(bFind);
bFind.addEventListener(Events.ON_CLICK, this); bFind.addEventListener(Events.ON_CLICK, this);
toolBar.appendChild(new Separator("vertical")); toolBar.appendChild(new Separator("vertical"));
bSendMail.setImage("/images/SendMail24.png"); bSendMail.setImage("/images/SendMail24.png");
bSendMail.setTooltiptext("Send Mail"); bSendMail.setTooltiptext(Msg.getMsg(Env.getCtx(), "SendMail"));
toolBar.appendChild(bSendMail); toolBar.appendChild(bSendMail);
bSendMail.addEventListener(Events.ON_CLICK, this); bSendMail.addEventListener(Events.ON_CLICK, this);
bArchive.setImage("/images/Archive24.png"); bArchive.setImage("/images/Archive24.png");
bArchive.setTooltiptext("Archived Documents/Reports"); bArchive.setTooltiptext(Msg.getMsg(Env.getCtx(), "Archive"));
toolBar.appendChild(bArchive); toolBar.appendChild(bArchive);
bArchive.addEventListener(Events.ON_CLICK, this); bArchive.addEventListener(Events.ON_CLICK, this);
if (m_isCanExport) if (m_isCanExport)
{ {
bExport.setImage("/images/ExportX24.png"); bExport.setImage("/images/ExportX24.png");
bExport.setTooltiptext("Export"); bExport.setTooltiptext(Msg.getMsg(Env.getCtx(), "Export"));
toolBar.appendChild(bExport); toolBar.appendChild(bExport);
bExport.addEventListener(Events.ON_CLICK, this); bExport.addEventListener(Events.ON_CLICK, this);
} }
@ -250,7 +250,7 @@ public class ZkReportViewer extends Window implements EventListener {
toolBar.appendChild(new Separator("vertical")); toolBar.appendChild(new Separator("vertical"));
bRefresh.setImage("/images/Refresh24.png"); bRefresh.setImage("/images/Refresh24.png");
bRefresh.setTooltiptext("Refresh"); bRefresh.setTooltiptext(Msg.getMsg(Env.getCtx(), "Refresh"));
toolBar.appendChild(bRefresh); toolBar.appendChild(bRefresh);
bRefresh.addEventListener(Events.ON_CLICK, this); bRefresh.addEventListener(Events.ON_CLICK, this);
@ -485,7 +485,7 @@ public class ZkReportViewer extends Window implements EventListener {
{ {
log.log(Level.SEVERE, sql, e); log.log(Level.SEVERE, sql, e);
} }
StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(m_ctx, "NewReport")).append(" **"); StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(Env.getCtx(), "NewReport")).append(" **");
KeyNamePair pp = new KeyNamePair(-1, sb.toString()); KeyNamePair pp = new KeyNamePair(-1, sb.toString());
comboReport.appendItem(pp.getName(), pp.getKey()); comboReport.appendItem(pp.getName(), pp.getKey());
comboReport.addEventListener(Events.ON_SELECT, this); comboReport.addEventListener(Events.ON_SELECT, this);
@ -497,11 +497,11 @@ public class ZkReportViewer extends Window implements EventListener {
private void revalidate() private void revalidate()
{ {
// Report Info // Report Info
setTitle(Msg.getMsg(m_ctx, "Report") + ": " + m_reportEngine.getName() + " " + Env.getHeader(m_ctx, 0)); setTitle(Msg.getMsg(Env.getCtx(), "Report") + ": " + m_reportEngine.getName() + " " + Env.getHeader(Env.getCtx(), 0));
StringBuffer sb = new StringBuffer (); StringBuffer sb = new StringBuffer ();
sb.append(Msg.getMsg(m_ctx, "DataCols")).append("=") sb.append(Msg.getMsg(Env.getCtx(), "DataCols")).append("=")
.append(m_reportEngine.getColumnCount()) .append(m_reportEngine.getColumnCount())
.append(", ").append(Msg.getMsg(m_ctx, "DataRows")).append("=") .append(", ").append(Msg.getMsg(Env.getCtx(), "DataRows")).append("=")
.append(m_reportEngine.getRowCount()); .append(m_reportEngine.getRowCount());
statusBar.setStatusLine(sb.toString()); statusBar.setStatusLine(sb.toString());
// //
@ -662,7 +662,7 @@ public class ZkReportViewer extends Window implements EventListener {
if(winExportFile == null) if(winExportFile == null)
{ {
winExportFile = new Window(); winExportFile = new Window();
winExportFile.setTitle(Msg.getMsg(m_ctx, "Export") + ": " + getTitle()); winExportFile.setTitle(Msg.getMsg(Env.getCtx(), "Export") + ": " + getTitle());
winExportFile.setWidth("450px"); winExportFile.setWidth("450px");
winExportFile.setClosable(true); winExportFile.setClosable(true);
winExportFile.setBorder("normal"); winExportFile.setBorder("normal");
@ -671,20 +671,20 @@ public class ZkReportViewer extends Window implements EventListener {
cboType.setMold("select"); cboType.setMold("select");
cboType.getItems().clear(); cboType.getItems().clear();
cboType.appendItem("ps" + " - " + Msg.getMsg(m_ctx, "FilePS"), "ps"); cboType.appendItem("ps" + " - " + Msg.getMsg(Env.getCtx(), "FilePS"), "ps");
cboType.appendItem("xml" + " - " + Msg.getMsg(m_ctx, "FileXML"), "xml"); cboType.appendItem("xml" + " - " + Msg.getMsg(Env.getCtx(), "FileXML"), "xml");
ListItem li = cboType.appendItem("pdf" + " - " + Msg.getMsg(m_ctx, "FilePDF"), "pdf"); ListItem li = cboType.appendItem("pdf" + " - " + Msg.getMsg(Env.getCtx(), "FilePDF"), "pdf");
cboType.appendItem("html" + " - " + Msg.getMsg(m_ctx, "FileHTML"), "html"); cboType.appendItem("html" + " - " + Msg.getMsg(Env.getCtx(), "FileHTML"), "html");
cboType.appendItem("txt" + " - " + Msg.getMsg(m_ctx, "FileTXT"), "txt"); cboType.appendItem("txt" + " - " + Msg.getMsg(Env.getCtx(), "FileTXT"), "txt");
cboType.appendItem("ssv" + " - " + Msg.getMsg(m_ctx, "FileSSV"), "ssv"); cboType.appendItem("ssv" + " - " + Msg.getMsg(Env.getCtx(), "FileSSV"), "ssv");
cboType.appendItem("csv" + " - " + Msg.getMsg(m_ctx, "FileCSV"), "csv"); cboType.appendItem("csv" + " - " + Msg.getMsg(Env.getCtx(), "FileCSV"), "csv");
cboType.appendItem("xls" + " - " + Msg.getMsg(m_ctx, "FileXLS"), "xls"); cboType.appendItem("xls" + " - " + Msg.getMsg(Env.getCtx(), "FileXLS"), "xls");
cboType.setSelectedItem(li); cboType.setSelectedItem(li);
Hbox hb = new Hbox(); Hbox hb = new Hbox();
Div div = new Div(); Div div = new Div();
div.setAlign("right"); div.setAlign("right");
div.appendChild(new Label("Files of Type: ")); div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
hb.appendChild(div); hb.appendChild(div);
hb.appendChild(cboType); hb.appendChild(cboType);
cboType.setWidth("100%"); cboType.setWidth("100%");