[ 1885094 ] FR - Translation of some english messages

This commit is contained in:
Carlos Ruiz 2008-07-16 03:10:56 +00:00
parent a6345d0702
commit 72e8d9e227
4 changed files with 48 additions and 26 deletions

View File

@ -26,6 +26,8 @@ import java.util.logging.Level;
import org.adempiere.webui.LayoutUtils; import org.adempiere.webui.LayoutUtils;
import org.adempiere.webui.event.ToolbarListener; import org.adempiere.webui.event.ToolbarListener;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
@ -78,110 +80,125 @@ public class CWindowToolbar extends FToolbar implements EventListener
btnIgnore = new ToolBarButton(); btnIgnore = new ToolBarButton();
btnIgnore.setName("btnIgnore"); btnIgnore.setName("btnIgnore");
btnIgnore.setImage("/images/Ignore16.gif"); btnIgnore.setImage("/images/Ignore16.gif");
btnIgnore.setTooltiptext("Ignore Changes"); btnIgnore.setTooltiptext(Msg.getMsg(Env.getCtx(),"Ignore"));
// -- // --
btnHelp = new ToolBarButton(""); btnHelp = new ToolBarButton("");
btnHelp.setName("btnHelp"); btnHelp.setName("btnHelp");
btnHelp.setImage("/images/Help24.gif"); btnHelp.setImage("/images/Help24.gif");
btnHelp.setTooltiptext("Help"); btnHelp.setTooltiptext(Msg.getMsg(Env.getCtx(),"Help"));
btnNew = new ToolBarButton(""); btnNew = new ToolBarButton("");
btnNew.setName("btnNew"); btnNew.setName("btnNew");
btnNew.setImage("/images/New24.gif"); btnNew.setImage("/images/New24.gif");
btnNew.setTooltiptext("New Record"); btnNew.setTooltiptext(Msg.getMsg(Env.getCtx(),"New"));
btnDelete = new ToolBarButton(""); btnDelete = new ToolBarButton("");
btnDelete.setName("btnDelete"); btnDelete.setName("btnDelete");
btnDelete.setImage("/images/Delete24.gif"); btnDelete.setImage("/images/Delete24.gif");
btnDelete.setTooltiptext("Delete current record"); btnDelete.setTooltiptext(Msg.getMsg(Env.getCtx(),"Delete"));
btnSave = new ToolBarButton(""); btnSave = new ToolBarButton("");
btnSave.setName("btnSave"); btnSave.setName("btnSave");
btnSave.setImage("/images/Save24.gif"); btnSave.setImage("/images/Save24.gif");
btnSave.setTooltiptext("Save changes"); btnSave.setTooltiptext(Msg.getMsg(Env.getCtx(),"Save"));
// -- // --
btnRefresh = new ToolBarButton(""); btnRefresh = new ToolBarButton("");
btnRefresh.setName("btnRefresh"); btnRefresh.setName("btnRefresh");
btnRefresh.setImage("/images/Refresh24.gif"); btnRefresh.setImage("/images/Refresh24.gif");
btnRefresh.setTooltiptext("Refresh Data"); btnRefresh.setTooltiptext(Msg.getMsg(Env.getCtx(),"Refresh"));
btnFind = new ToolBarButton(""); btnFind = new ToolBarButton("");
btnFind.setName("btnFind"); btnFind.setName("btnFind");
btnFind.setImage("/images/Find24.gif"); btnFind.setImage("/images/Find24.gif");
btnFind.setTooltiptext("Find Records"); btnFind.setTooltiptext(Msg.getMsg(Env.getCtx(),"Find"));
btnAttachment = new ToolBarButton(""); btnAttachment = new ToolBarButton("");
btnAttachment.setName("btnAttachment"); btnAttachment.setName("btnAttachment");
btnAttachment.setImage("/images/Attachment24.gif"); btnAttachment.setImage("/images/Attachment24.gif");
btnAttachment.setTooltiptext("Attachments"); btnAttachment.setTooltiptext(Msg.getMsg(Env.getCtx(),"Attachment"));
// -- // --
btnGridToggle = new ToolBarButton(""); btnGridToggle = new ToolBarButton("");
btnGridToggle.setName("btnGridToggle"); btnGridToggle.setName("btnGridToggle");
btnGridToggle.setImage("/images/ZoomAcross24.gif"); btnGridToggle.setImage("/images/ZoomAcross24.gif");
btnGridToggle.setTooltiptext("Grid Toggle"); btnGridToggle.setTooltiptext(Msg.getMsg(Env.getCtx(),"Multi"));
btnHistoryRecords = new ToolBarButton(""); btnHistoryRecords = new ToolBarButton("");
btnHistoryRecords.setName("btnHistoryRecords"); btnHistoryRecords.setName("btnHistoryRecords");
btnHistoryRecords.setImage("/images/HistoryX24.gif"); btnHistoryRecords.setImage("/images/HistoryX24.gif");
btnHistoryRecords.setTooltiptext("History Records"); btnHistoryRecords.setTooltiptext(Msg.getMsg(Env.getCtx(),"History"));
btnMenu = new ToolBarButton(""); btnMenu = new ToolBarButton("");
btnMenu.setName("btnHome"); btnMenu.setName("btnHome");
btnMenu.setImage("/images/Home24.gif"); btnMenu.setImage("/images/Home24.gif");
btnMenu.setTooltiptext("Home"); btnMenu.setTooltiptext(Msg.getMsg(Env.getCtx(),"Home"));
btnParentRecord = new ToolBarButton(""); btnParentRecord = new ToolBarButton("");
btnParentRecord.setName("btnParentRecord"); btnParentRecord.setName("btnParentRecord");
btnParentRecord.setImage("/images/Parent24.gif"); btnParentRecord.setImage("/images/Parent24.gif");
btnParentRecord.setTooltip(Msg.getMsg(Env.getCtx(),"Parent"));
btnDetailRecord = new ToolBarButton(""); btnDetailRecord = new ToolBarButton("");
btnDetailRecord.setName("btnDetailRecord"); btnDetailRecord.setName("btnDetailRecord");
btnDetailRecord.setImage("/images/Detail24.gif"); btnDetailRecord.setImage("/images/Detail24.gif");
btnDetailRecord.setTooltip(Msg.getMsg(Env.getCtx(),"Detail"));
// -- // --
btnFirst = new ToolBarButton(""); btnFirst = new ToolBarButton("");
btnFirst.setName("btnFirst"); btnFirst.setName("btnFirst");
btnFirst.setImage("/images/First24.gif"); btnFirst.setImage("/images/First24.gif");
btnFirst.setTooltip(Msg.getMsg(Env.getCtx(),"First"));
btnPrevious = new ToolBarButton(""); btnPrevious = new ToolBarButton("");
btnPrevious.setName("btnPrevious"); btnPrevious.setName("btnPrevious");
btnPrevious.setImage("/images/Previous24.gif"); btnPrevious.setImage("/images/Previous24.gif");
btnPrevious.setTooltip(Msg.getMsg(Env.getCtx(),"Previous"));
btnNext = new ToolBarButton(""); btnNext = new ToolBarButton("");
btnNext.setName("btnNext"); btnNext.setName("btnNext");
btnNext.setImage("/images/Next24.gif"); btnNext.setImage("/images/Next24.gif");
btnNext.setTooltip(Msg.getMsg(Env.getCtx(),"Next"));
btnLast = new ToolBarButton(""); btnLast = new ToolBarButton("");
btnLast.setName("btnLast"); btnLast.setName("btnLast");
btnLast.setImage("/images/Last24.gif"); btnLast.setImage("/images/Last24.gif");
btnLast.setTooltip(Msg.getMsg(Env.getCtx(),"Last"));
// -- // --
btnReport = new ToolBarButton(""); btnReport = new ToolBarButton("");
btnReport.setName("btnReport"); btnReport.setName("btnReport");
btnReport.setImage("/images/Report24.gif"); btnReport.setImage("/images/Report24.gif");
btnReport.setTooltip(Msg.getMsg(Env.getCtx(),"Report"));
btnArchive = new ToolBarButton(""); btnArchive = new ToolBarButton("");
btnArchive.setName("btnArchive"); btnArchive.setName("btnArchive");
btnArchive.setImage("/images/Archive24.gif"); btnArchive.setImage("/images/Archive24.gif");
btnArchive.setTooltip(Msg.getMsg(Env.getCtx(),"Archive"));
btnPrint = new ToolBarButton(""); btnPrint = new ToolBarButton("");
btnPrint.setName("btnPrint"); btnPrint.setName("btnPrint");
btnPrint.setImage("/images/Print24.gif"); btnPrint.setImage("/images/Print24.gif");
btnPrint.setTooltip(Msg.getMsg(Env.getCtx(),"Print"));
// -- // --
btnZoomAcross = new ToolBarButton(""); btnZoomAcross = new ToolBarButton("");
btnZoomAcross.setName("btnZoomAcross"); btnZoomAcross.setName("btnZoomAcross");
btnZoomAcross.setImage("/images/ZoomAcross24.gif"); btnZoomAcross.setImage("/images/ZoomAcross24.gif");
btnZoomAcross.setTooltip(Msg.getMsg(Env.getCtx(),"ZoomAcross"));
btnActiveWorkflows = new ToolBarButton(""); btnActiveWorkflows = new ToolBarButton("");
btnActiveWorkflows.setName("btnActiveWorkflows"); btnActiveWorkflows.setName("btnActiveWorkflows");
btnActiveWorkflows.setImage("/images/WorkFlow24.gif"); btnActiveWorkflows.setImage("/images/WorkFlow24.gif");
btnActiveWorkflows.setTooltip(Msg.getMsg(Env.getCtx(),"WorkFlow"));
btnRequests = new ToolBarButton(""); btnRequests = new ToolBarButton("");
btnRequests.setName("btnRequests"); btnRequests.setName("btnRequests");
btnRequests.setImage("/images/Request24.gif"); btnRequests.setImage("/images/Request24.gif");
btnRequests.setTooltip(Msg.getMsg(Env.getCtx(),"Request"));
btnProductInfo = new ToolBarButton(""); btnProductInfo = new ToolBarButton("");
btnProductInfo.setName("btnProductInfo"); btnProductInfo.setName("btnProductInfo");
btnProductInfo.setImage("/images/Product24.gif"); btnProductInfo.setImage("/images/Product24.gif");
btnProductInfo.setTooltip(Msg.getMsg(Env.getCtx(),"InfoProduct"));
// btnExit = new ToolBarButton(""); // btnExit = new ToolBarButton("");
// btnExit.setName("btnExit"); // btnExit.setName("btnExit");

View File

@ -22,6 +22,8 @@ import java.util.TreeMap;
import org.adempiere.webui.component.AutoComplete; import org.adempiere.webui.component.AutoComplete;
import org.adempiere.webui.component.Label; import org.adempiere.webui.component.Label;
import org.adempiere.webui.component.Panel; import org.adempiere.webui.component.Panel;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.event.Events;
@ -58,7 +60,7 @@ public class MenuSearchPanel extends Panel implements EventListener
private void init() private void init()
{ {
lblSearch = new Label(); lblSearch = new Label();
lblSearch.setValue("Search:"); lblSearch.setValue(Msg.getMsg(Env.getCtx(),"Lookup") + ":");
cmbSearch = new AutoComplete(); cmbSearch = new AutoComplete();
cmbSearch.setAutodrop(true); cmbSearch.setAutodrop(true);

View File

@ -23,8 +23,10 @@ import org.adempiere.webui.component.WConfirmPanel;
import org.adempiere.webui.component.Window; import org.adempiere.webui.component.Window;
import org.adempiere.webui.exception.ApplicationException; import org.adempiere.webui.exception.ApplicationException;
import org.adempiere.webui.window.LoginWindow; import org.adempiere.webui.window.LoginWindow;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair; import org.compiere.util.KeyNamePair;
import org.compiere.util.Login; import org.compiere.util.Login;
import org.compiere.util.Msg;
import org.zkoss.zk.au.out.AuFocus; import org.zkoss.zk.au.out.AuFocus;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
@ -141,19 +143,19 @@ public class RolePanel extends Window implements EventListener
lblRole = new Label(); lblRole = new Label();
lblRole.setId("lblRole"); lblRole.setId("lblRole");
lblRole.setValue("Role: "); lblRole.setValue(Msg.getMsg(Env.getCtx(),"Role")+ ":");
lblClient = new Label(); lblClient = new Label();
lblClient.setId("lblClient"); lblClient.setId("lblClient");
lblClient.setValue("Client: "); lblClient.setValue(Msg.getMsg(Env.getCtx(),"Client")+ ":");
lblOrganisation = new Label(); lblOrganisation = new Label();
lblOrganisation.setId("lblOrganisation"); lblOrganisation.setId("lblOrganisation");
lblOrganisation.setValue("Organisation: "); lblOrganisation.setValue(Msg.getMsg(Env.getCtx(),"Organization")+ " :");
lblWarehouse = new Label(); lblWarehouse = new Label();
lblWarehouse.setId("lblWarehouse"); lblWarehouse.setId("lblWarehouse");
lblWarehouse.setValue("Warehouse: "); lblWarehouse.setValue(Msg.getMsg(Env.getCtx(),"Warehouse")+ " :");
lstRole = new Listbox(); lstRole = new Listbox();
lstRole.setId("lstRole"); lstRole.setId("lstRole");

View File

@ -29,6 +29,7 @@ import org.compiere.model.MOrg;
import org.compiere.model.MRole; import org.compiere.model.MRole;
import org.compiere.model.MUser; import org.compiere.model.MUser;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.event.Events;
@ -81,7 +82,7 @@ public class UserPanel extends Vbox implements EventListener
sep.setBar(true); sep.setBar(true);
sep.setParent(hbox); sep.setParent(hbox);
logout.setLabel("Logout"); logout.setLabel(Msg.getMsg(Env.getCtx(),"Logout"));
logout.addEventListener(Events.ON_CLICK, this); logout.addEventListener(Events.ON_CLICK, this);
logout.setStyle("text-align:right"); logout.setStyle("text-align:right");
logout.setSclass("headerFont"); logout.setSclass("headerFont");