From c2b2b7232ad96be44e8a6e32b71b256cc5895149 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 13 May 2011 17:29:30 -0500 Subject: [PATCH] Fix #21 Msg.getMsg: NOT found: SaveCreate http://bitbucket.org/idempiere/idempiere/issue/21 --- .../360lts-release/oracle/795_NewMessages.sql | 37 ++++++++++++++++++ .../postgresql/795_NewMessages.sql | 39 +++++++++++++++++++ .../src/org/compiere/apps/AExport.java | 2 +- .../webui/panel/action/ExportAction.java | 2 +- 4 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 migration/360lts-release/oracle/795_NewMessages.sql create mode 100644 migration/360lts-release/postgresql/795_NewMessages.sql diff --git a/migration/360lts-release/oracle/795_NewMessages.sql b/migration/360lts-release/oracle/795_NewMessages.sql new file mode 100644 index 0000000000..1c3debf57d --- /dev/null +++ b/migration/360lts-release/oracle/795_NewMessages.sql @@ -0,0 +1,37 @@ +-- May 13, 2011 4:56:03 PM COT +-- Some new iDempiere messages +INSERT INTO AD_Message (IsActive,Updated,CreatedBy,MsgType,MsgText,UpdatedBy,AD_Message_ID,EntityType,AD_Message_UU,AD_Client_ID,AD_Org_ID,Created,Value) VALUES ('Y',TO_DATE('2011-05-13 16:56:02','YYYY-MM-DD HH24:MI:SS'),100,'I','Save and Create New',100,53133,'D','70352996-ba6c-4f0e-861f-17507c3bb323',0,0,TO_DATE('2011-05-13 16:56:02','YYYY-MM-DD HH24:MI:SS'),'SaveCreate') +; + +-- May 13, 2011 4:56:03 PM COT +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=53133 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) +; + +-- May 13, 2011 4:56:59 PM COT +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Guardar cambios y crear nuevo',Updated=TO_DATE('2011-05-13 16:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53133 AND AD_Language LIKE 'es_%' +; + +-- May 13, 2011 4:57:59 PM COT +INSERT INTO AD_Message (IsActive,Updated,CreatedBy,MsgType,MsgText,UpdatedBy,AD_Message_ID,EntityType,AD_Message_UU,AD_Client_ID,AD_Org_ID,Created,Value) VALUES ('Y',TO_DATE('2011-05-13 16:57:59','YYYY-MM-DD HH24:MI:SS'),100,'I','zip - 2Pack zip file',100,53134,'D','d749b4aa-3402-49b2-a079-408523aebb83',0,0,TO_DATE('2011-05-13 16:57:59','YYYY-MM-DD HH24:MI:SS'),'File2PackZip') +; + +-- May 13, 2011 4:58:00 PM COT +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=53134 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) +; + +-- May 13, 2011 4:58:15 PM COT +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='zip - Archivo zip 2Pack',Updated=TO_DATE('2011-05-13 16:58:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53134 AND AD_Language LIKE 'es_%' +; + +-- May 13, 2011 5:06:55 PM COT +INSERT INTO AD_Message (IsActive,Updated,CreatedBy,MsgType,MsgText,UpdatedBy,AD_Message_ID,EntityType,AD_Message_UU,AD_Client_ID,AD_Org_ID,Created,Value) VALUES ('Y',TO_DATE('2011-05-13 17:06:54','YYYY-MM-DD HH24:MI:SS'),100,'I','Export current row only?',100,53135,'D','9c5d847e-1d48-4238-826f-987f9d211f7d',0,0,TO_DATE('2011-05-13 17:06:54','YYYY-MM-DD HH24:MI:SS'),'ExportCurrentRowOnly') +; + +-- May 13, 2011 5:06:55 PM COT +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=53135 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) +; + +-- May 13, 2011 5:07:47 PM COT +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='¿Exportar sólo la fila actual?',Updated=TO_DATE('2011-05-13 17:07:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53135 AND AD_Language LIKE 'es_%' +; + diff --git a/migration/360lts-release/postgresql/795_NewMessages.sql b/migration/360lts-release/postgresql/795_NewMessages.sql new file mode 100644 index 0000000000..9a724e9b12 --- /dev/null +++ b/migration/360lts-release/postgresql/795_NewMessages.sql @@ -0,0 +1,39 @@ +SET CLIENT_ENCODING TO 'UTF8'; + +-- May 13, 2011 4:56:03 PM COT +-- Some new iDempiere messages +INSERT INTO AD_Message (IsActive,Updated,CreatedBy,MsgType,MsgText,UpdatedBy,AD_Message_ID,EntityType,AD_Message_UU,AD_Client_ID,AD_Org_ID,Created,Value) VALUES ('Y',TO_TIMESTAMP('2011-05-13 16:56:02','YYYY-MM-DD HH24:MI:SS'),100,'I','Save and Create New',100,53133,'D','70352996-ba6c-4f0e-861f-17507c3bb323',0,0,TO_TIMESTAMP('2011-05-13 16:56:02','YYYY-MM-DD HH24:MI:SS'),'SaveCreate') +; + +-- May 13, 2011 4:56:03 PM COT +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=53133 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) +; + +-- May 13, 2011 4:56:59 PM COT +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Guardar cambios y crear nuevo',Updated=TO_TIMESTAMP('2011-05-13 16:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53133 AND AD_Language LIKE 'es_%' +; + +-- May 13, 2011 4:57:59 PM COT +INSERT INTO AD_Message (IsActive,Updated,CreatedBy,MsgType,MsgText,UpdatedBy,AD_Message_ID,EntityType,AD_Message_UU,AD_Client_ID,AD_Org_ID,Created,Value) VALUES ('Y',TO_TIMESTAMP('2011-05-13 16:57:59','YYYY-MM-DD HH24:MI:SS'),100,'I','zip - 2Pack zip file',100,53134,'D','d749b4aa-3402-49b2-a079-408523aebb83',0,0,TO_TIMESTAMP('2011-05-13 16:57:59','YYYY-MM-DD HH24:MI:SS'),'File2PackZip') +; + +-- May 13, 2011 4:58:00 PM COT +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=53134 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) +; + +-- May 13, 2011 4:58:15 PM COT +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='zip - Archivo zip 2Pack',Updated=TO_TIMESTAMP('2011-05-13 16:58:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53134 AND AD_Language LIKE 'es_%' +; + +-- May 13, 2011 5:06:55 PM COT +INSERT INTO AD_Message (IsActive,Updated,CreatedBy,MsgType,MsgText,UpdatedBy,AD_Message_ID,EntityType,AD_Message_UU,AD_Client_ID,AD_Org_ID,Created,Value) VALUES ('Y',TO_TIMESTAMP('2011-05-13 17:06:54','YYYY-MM-DD HH24:MI:SS'),100,'I','Export current row only?',100,53135,'D','9c5d847e-1d48-4238-826f-987f9d211f7d',0,0,TO_TIMESTAMP('2011-05-13 17:06:54','YYYY-MM-DD HH24:MI:SS'),'ExportCurrentRowOnly') +; + +-- May 13, 2011 5:06:55 PM COT +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=53135 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) +; + +-- May 13, 2011 5:07:47 PM COT +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='¿Exportar sólo la fila actual?',Updated=TO_TIMESTAMP('2011-05-13 17:07:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53135 AND AD_Language LIKE 'es_%' +; + diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AExport.java b/org.adempiere.ui.swing/src/org/compiere/apps/AExport.java index 1ba35c204b..95ed1340fa 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/AExport.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/AExport.java @@ -125,7 +125,7 @@ public class AExport private void export(File outFile, GridTab tab, String extension) throws Exception { - boolean currentRowOnly = ADialog.ask(m_WindowNo, parent, "Export current row only ?"); + boolean currentRowOnly = ADialog.ask(m_WindowNo, parent, "ExportCurrentRowOnly"); IGridTabExporter exporter = exporterMap.get(extension); Set tables = new HashSet(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ExportAction.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ExportAction.java index c97d8d0e09..5a2b20226a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ExportAction.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ExportAction.java @@ -122,7 +122,7 @@ public class ExportAction implements EventListener vb.appendChild(hb); hb = new Hbox(); - chkCurrentRow.setLabel("Export Current Row Only"); + chkCurrentRow.setLabel(Msg.getMsg(Env.getCtx(), "ExportCurrentRowOnly")); chkCurrentRow.setSelected(true); hb.appendChild(chkCurrentRow); vb.appendChild(hb);